• 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: Peter Lübke <email@hidden>
  • Date: Tue, 4 Jan 2011 23:11:16 +0100

Though almost everybody seems to disagree you should do something like this here some ideas:

- If you want to press the "Show All"- or "Back"- button, you could do this using the Accessibility API; take a look at Apple's "Accessibility Inspector" app.

- If you really want System Preferences to quit, you could use NSAppleScript and do something like:
tell application "System Preferences" to quit
You can do the same using AppleEvents.


If your app didn't open System Preferences programmatically before, I'd strongly suggest you ask the user if quitting is ok.

Peter

Am 04.01.2011 um 22:20 schrieb eveningnick eveningnick:

Hi Nick
Thank you
I've an unusual application that is mainly located in System
Preferences (its gui part), and which can be uninstalled by clicking a
button "Uninstall" in that prefpane

better solution would be to programmatically press "Show All" button
("back" in System Preferences), but that seems impossible because
PrefPane reference doesnt mention have to do that.

if someone knows there is a way to click "Show All" from a preference
pane programmatically, i'd be thankful

_______________________________________________

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>
    • Re: Close System Preferences programmatically
      • From: Dave DeLong <email@hidden>
References: 
 >Close System Preferences programmatically (From: eveningnick eveningnick <email@hidden>)
 >Re: Close System Preferences programmatically (From: Nick Zitzmann <email@hidden>)
 >Re: Close System Preferences programmatically (From: eveningnick eveningnick <email@hidden>)

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