Re: dot syntax issue? (Newb Question?)
Re: dot syntax issue? (Newb Question?)
- Subject: Re: dot syntax issue? (Newb Question?)
- From: John Stiles <email@hidden>
- Date: Thu, 8 Nov 2007 09:40:06 -0800
On Nov 8, 2007, at 9:33 AM, mmalc crawford wrote:
On Nov 8, 2007, at 9:28 AM, John Stiles wrote:
Just a random hypothetical: if one were to add a category on
NSStatusItem and implement -enabled (and have it call through to -
isEnabled), would that enable dot-syntax for the enabled property?
Why would you do that rather than using properties directly?
@interface NSStatusItem (PropertySupport)
@property (getter=isEnabled) BOOL enabled;
@end
Err, why not? Whatever gets the job done :)
Anyway, this looks like a good solution. Why didn't you suggest this
in the beginning?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden