• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: coding NSNumber in NSArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: coding NSNumber in NSArray?
      • From: Kyle Sluder <email@hidden>
References: 
 >coding NSNumber in NSArray? (From: jon <email@hidden>)
 >Re: coding NSNumber in NSArray? (From: Randall Meadows <email@hidden>)
 >Re: coding NSNumber in NSArray? (From: jon <email@hidden>)
 >Re: coding NSNumber in NSArray? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: coding NSNumber in NSArray?
  • Next by Date: authorization services
  • Previous by thread: Re: coding NSNumber in NSArray?
  • Next by thread: Re: coding NSNumber in NSArray?
  • Index(es):
    • Date
    • Thread