• 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: Hidden System Preferences doesn't send didUnselect message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hidden System Preferences doesn't send didUnselect message


  • Subject: Re: Hidden System Preferences doesn't send didUnselect message
  • From: Keith Duncan <email@hidden>
  • Date: Sun, 21 Jan 2007 20:21:34 +0000

Hi,

In my preference panes I use the NSApplication notification to save the settings:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(saveChanges:) name:NSApplicationWillTerminateNotification object:nil];

This will work when the app is hidden without having to rely on the selection methods.

- Keith


On 17 Jan 2007, at 09:43, Marco Damaschi wrote:

Hi all,

I'm experiencing a problem with a System Preference pane. If I hide System Preferences and quit it without making it activate (e.g. using the Quit menu in the Dock), my NSPreferencePane subclass doesn't receive the shouldUnselect, willUnselect and didUnselect messages.

To make sure that the problem didn't depend on my pane, I checked with the Network preference pane: if I add a new Location, hide System Preferences and quit it from the Dock, System Preferences quits without asking me whether I want to save the new location and loses the change.

Someone else noticed the problem and knows a workaround for it?

TIA,

Marco

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Hidden System Preferences doesn't send didUnselect message (From: Marco Damaschi <email@hidden>)

  • Prev by Date: Re: Can't release a NSWindowController when a window close
  • Next by Date: Re: credits.rtf problem
  • Previous by thread: Hidden System Preferences doesn't send didUnselect message
  • Next by thread: cloning an NSTableView
  • Index(es):
    • Date
    • Thread