Posted By

Carter on 01/09/10


show plugin mac system all preferences prefpane

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Exit PreferencePane Plugin

 / Published in: Objective C

If you're writing a preference pane and you'd like to exit back to the main System Preferences view, just use this code.

  1. NSAppleScript *script = [[NSAppleScript alloc] initWithSource:@"tell application \"System Preferences\" to set show all to true"];
  2. [script executeAndReturnError:nil];

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Carter on January 9, 2010

As a aside, you can also accomplish this by using the objective-c scripting bridge, but that requires linking to another framework as well as creating a .h file for the scripting definition library. Both of those make this solution more attractive, due to simplicity.

Posted By: Jacky888 on August 3, 2018

root logicom l ement 403 bestandroidtoroot

You need to login to post a comment.