Re: NSPanel and NSWindowController
Re: NSPanel and NSWindowController
- Subject: Re: NSPanel and NSWindowController
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 24 Jun 2010 16:56:05 -0600
On Jun 24, 2010, at 4:31 PM, Daniel Káčer wrote:
> i have created NSPanel in NIB file, for controlling this NSPanel i have also controller and i need in this controller handling close event this NSPanel. Which method is for this thing usable
Make your controller the window's delegate if you haven't already, and then implement -windowWillClose: in the controller, which is part of the NSWindowDelegate protocol. See the documentation for NSWindowDelegate for more details.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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