Posted By

Carter on 01/09/10

Tagged

plugin mac

Viewed 1 times

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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.