Re: How to catch [NSEvent dealloc]?
Re: How to catch [NSEvent dealloc]?
- Subject: Re: How to catch [NSEvent dealloc]?
- From: "Paul Sanders" <email@hidden>
- Date: Wed, 7 Jul 2010 23:34:53 +0100
> If you can require 10.6 (or iOS 4, maybe?) then you can use the new
> associated object API. Use objc_setAssociatedObject to attach your
> object to the NSEvent object, and the runtime will automatically take
> care of destroying it for you when the NSEvent is destroyed.
Sadly (and possibly mistakenly), I'm still supporting 10.4. I think I need to review this policy! Good idea though.
Regards,
Paul Sanders.
_______________________________________________
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