Re: Notification when window is closing?
Re: Notification when window is closing?
- Subject: Re: Notification when window is closing?
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Fri, 07 Nov 2008 12:57:18 -0500
Thanks! working like a charm! :)
Oh while I'm on the preference panel subject... I notice that a lot of
applications (Adium, Safari, TextMate etc.. comes to mind) are using
what looks like a fancy version of tabs in their preference...
Basically it looks like tabs, but instead of actual tabs, the "panels"
are controlled by what looks like a toolbar... (so basically, click on a
toolbar button to change the active panel...) a bit hard to explain but
it's very easy to understand (just look at Safari's preference window
for example)...
Is this done with standard controls or is this a custom control?? I'm
asking because I see a lot of apps with a similar style of preferene
pane and it looks good! :)
Jean-Nicolas Jolivet
Randall Meadows wrote:
On Nov 7, 2008, at 10:27 AM, Jean-Nicolas Jolivet wrote:
I'm working on my App's preference window... To populate the window's
control with the UserDefaults, I use the windowDidLoad method, grab
the defaults and populate my fields/controls (I'm doing this in my
PreferenceController, which is a subclass of NSWindowController)
I was wondering if there is a similar method I can override when the
window is closing so that I can save the user's change in the
defaults???
NSWindow -windowShouldClose: and -windowWillClose: delegate methods
_______________________________________________
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