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.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to