Re: clang 1.5 and property syntax?
Re: clang 1.5 and property syntax?
- Subject: Re: clang 1.5 and property syntax?
- From: Rick Mann <email@hidden>
- Date: Fri, 3 Sep 2010 09:29:51 -0700
On Sep 3, 2010, at 02:01:14, Chris Hanson wrote:
> On Sep 2, 2010, at 2:56 PM, Rick Mann wrote:
>
>> Note that the autoresizingMask property* of NSView does not exhibit this behavior. Also note that the code completion doesn't work for the dot-syntax version of either property, but does work for the message-passing syntax.
>
> Xcode intentionally only offers completions for properties declared @property when using dot syntax.
>
> There would otherwise be a great many non-property framework methods offered as completions as well. (Examples are -init, -retain, -copy which should never be used via dot syntax, as they represent an object’s behavior rather than its state.)
Agreed, although it's probably not too hard to look for both -foo and -setFoo: and only offer that one.
> If there’s a class or framework that’s not using @property to declare the API for its state, please file a bug on it. Thanks.
Oh gosh, there are hundreds of classes. Basically any class written before the property syntax was introduced. Can I lump many into one bug report?
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden