Dan Rosenstark
Dan Rosenstark

Reputation: 69787

Did Objective-C get more liberal? Dot notation for non properties

I've noticed that I can use dot notation in iOS 5 beta/XCode 4.2 beta, even for methods that are not properties, like Singleton.instance when the method signature is merely + (Singleton*) instance. If I recall correctly, I couldn't do this in XCode 4.1.

  1. Has this really changed, or have I gone mad?
  2. If it has changed, where's the change documented?

Upvotes: 1

Views: 263

Answers (1)

Lily Ballard
Lily Ballard

Reputation: 185831

Nothing has changed except Xcode's code completion. The compiler always allowed you to use dot-notation for methods, only Xcode wouldn't offer methods as code completion suggestions for dot notation. Xcode 4.2 seems to have changed that behavior.

Upvotes: 6

Related Questions