Re: What to use observeValueForKeyPath: context
Re: What to use observeValueForKeyPath: context
- Subject: Re: What to use observeValueForKeyPath: context
- From: Phil <email@hidden>
- Date: Sat, 30 Aug 2008 03:03:53 +1200
On Sat, Aug 30, 2008 at 2:56 AM, Dave Dribin <email@hidden> wrote:
> Is there some benefit to using number values over string constants, or is it
> just stylistic differences?
>
Using NSStrings (or any other object) will work fine, but comparing
two primitive numbers is a lot faster than comparing to strings.
Personally, I wouldn't use arbitary numbers for any pointer value
(even a context variable like this), but that's just my stylistic
difference.
Phil
_______________________________________________
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