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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to