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 (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