Re: Close System Preferences programmatically
Re: Close System Preferences programmatically
- Subject: Re: Close System Preferences programmatically
- From: Murat Konar <email@hidden>
- Date: Tue, 4 Jan 2011 13:21:47 -0800
Since you can't reload bundles, you might need to quit System Preferences as part of a preference pane's self-updating scheme.
But it's probably better to just ask the user to do it.
_murat
On Jan 4, 2011, at 1:08 PM, Nick Zitzmann wrote:
>
> On Jan 4, 2011, at 1:56 PM, eveningnick eveningnick wrote:
>
>> Is it possible to close System Preferences programmatically from
>> within a custom preference pane?
>
> Yes.
>
>> What would be the correct way?
>
> You could just call -[NSApplication terminate:], though I'm wondering why you'd want to programmatically quit System Preferences, since that seems like an odd thing to do unless an unrecoverable error occurred or something like that.
_______________________________________________
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