• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Notification when window is closing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Notification when window is closing?
      • From: Rob Keniger <email@hidden>
    • Re: Notification when window is closing?
      • From: Jean-Nicolas Jolivet <email@hidden>
    • Re: Notification when window is closing?
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Notification when window is closing?
      • From: Andy Lee <email@hidden>
References: 
 >Notification when window is closing? (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Notification when window is closing? (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: Notification when window is closing?
  • Next by Date: Re: A finished moving notification for a window?
  • Previous by thread: Re: Notification when window is closing?
  • Next by thread: Re: Notification when window is closing?
  • Index(es):
    • Date
    • Thread