Re: C callbacks with NSNotificationCenter?
Re: C callbacks with NSNotificationCenter?
- Subject: Re: C callbacks with NSNotificationCenter?
- From: Graham Cox <email@hidden>
- Date: Thu, 08 Sep 2016 08:47:12 +1000
> On 8 Sep 2016, at 3:44 AM, Andreas Falkenhahn <email@hidden> wrote:
>
> How can I access "IMPORTANT_DATA_PTR" from within the block above?
You already did it. Variables are captured from the scope where the block is declared and “magically” get referenced within the block. So what you’ve written should work.
Have you tried it?
(You might want to more strongly type your parameters though, void* is a nasty idea).
—Graham
_______________________________________________
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