• 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: Close System Preferences programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Close System Preferences programmatically


  • Subject: Re: Close System Preferences programmatically
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 4 Jan 2011 14:08:00 -0700

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 (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: Close System Preferences programmatically
      • From: Murat Konar <email@hidden>
    • Re: Close System Preferences programmatically
      • From: eveningnick eveningnick <email@hidden>
References: 
 >Close System Preferences programmatically (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Close System Preferences programmatically
  • Next by Date: Re: Close System Preferences programmatically
  • Previous by thread: Close System Preferences programmatically
  • Next by thread: Re: Close System Preferences programmatically
  • Index(es):
    • Date
    • Thread