Re: NSOpenPanel problem
Re: NSOpenPanel problem
- Subject: Re: NSOpenPanel problem
- From: Ken Thomases <email@hidden>
- Date: Sun, 22 Jan 2012 22:17:06 -0600
On Jan 22, 2012, at 1:24 PM, Jan E. Schotsman wrote:
> Suppose I want to display a modeless choose file dialog with the beginWithCompletionHandler method.
> How can I pass some context info to the handler?
Blocks capture whatever local variables you reference within them. If you reference instance variables, they capture "self" and then access the ivars from that. Just use whatever value you want, directly. That's the great thing about blocks.
Cheers,
Ken
_______________________________________________
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