Re: What to use observeValueForKeyPath: context
Re: What to use observeValueForKeyPath: context
- Subject: Re: What to use observeValueForKeyPath: context
- From: mmalc crawford <email@hidden>
- Date: Fri, 29 Aug 2008 09:52:47 -0700
On Aug 29, 2008, at 7:56 AM, Dave Dribin wrote:
Since context is a void *, it also seems best practice to just use
some unique pointer values. For example, mmalc's Graphics Bindings
sample does this:
static void *PropertyObservationContext = (void *)1091;
static void *GraphicsObservationContext = (void *)1092;
static void *SelectionIndexesObservationContext = (void *)1093;
Sorry about that -- I think I put them in there originally when I was
testing things, and they stuck.
Fixing them now...
mmalc
_______________________________________________
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