Re: coding NSNumber in NSArray?
Re: coding NSNumber in NSArray?
- Subject: Re: coding NSNumber in NSArray?
- From: Jens Alfke <email@hidden>
- Date: Mon, 14 Sep 2009 12:45:49 -0700
On Sep 14, 2009, at 12:33 PM, Kyle Sluder wrote:
This is how how you should be implementing this setter. In
particular, the !typeOfLeaf condition shouldn't be there.
Why not? It looks harmless.
I think there are nearly as many favorite ways to write accessor
methods as there are Cocoa programmers :-/
In any case, it would probably be best to change the type of the
property to int (or some enum) which makes the accessors much simpler
and faster.
—Jens_______________________________________________
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