Return to Snippet

Revision: 22335
at January 9, 2010 17:24 by Carter


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

Initial URL


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

Initial Title
Exit PreferencePane Plugin

Initial Tags
plugin, mac

Initial Language
Objective C