Re: Problem sending notification from C callback function

2009-01-09 Thread Sandro Noel
Ken thank you. the problem was elsewhere in a dictionary key name... thank you for your help!!! Sandro Noel. On 9-Jan-09, at 2:09 AM, Ken Thomases wrote: On Jan 8, 2009, at 7:57 PM, Sandro Noel wrote: I have this callback from DiskArbritation framework and I would like to send a notificati

Re: Problem sending notification from C callback function

2009-01-08 Thread Ken Thomases
On Jan 8, 2009, at 7:57 PM, Sandro Noel wrote: I have this callback from DiskArbritation framework and I would like to send a notification to my app. but it does not seem to work. Does not seem to work in what way? Are you getting compiler errors or warnings? Crashes at runtime? What?

Re: Problem sending notification from C callback function

2009-01-08 Thread Sean McBride
Sandro Noel (sandro.n...@mac.com) 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:

Problem sending notification from C callback function

2009-01-08 Thread Sandro Noel
Greetings. I'm having a little problem due to lack of knowledge here. I have this callback from DiskArbritation framework and I would like to send a notification to my app. but it does not seem to work. the callback is registered like this. daSession = DASessionCreate(kCFAllocatorSystemDefault