Re: Problem sending notification from C callback function
Re: Problem sending notification from C callback function
- Subject: Re: Problem sending notification from C callback function
- From: "Sean McBride" <email@hidden>
- Date: Thu, 8 Jan 2009 21:45:08 -0500
Sandro Noel (email@hidden) on 2009-01-08 8:57 PM said:
>DARegisterDiskDisappearedCallback(daSession, NULL,
>&DiskDisappearedCallback, (void *)self);
Is your application garbage collected? If so, passing self as the
context could be problematic. See:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
GarbageCollection/Articles/gcUsing.html#//apple_ref/doc/uid/TP40008006-SW4>
Sean
_______________________________________________
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