Re: Hidden System Preferences doesn't send didUnselect message
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