Re: Open System Preferences?
Re: Open System Preferences?
- Subject: Re: Open System Preferences?
- From: Brian Ganninger <email@hidden>
- Date: Sun, 16 Apr 2006 00:47:32 -0500
The simplest method IMHO is AppleScript. I use the following myself
(this example opens the .Mac preference pane):
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.internet"
end tell
I keep this in a .applescript in my Resources that I open with:
NSString *sourceString = [[NSString alloc]
initWithContentsOfFile:[[NSBundle mainBundle]
pathForResource:@"macprefs" ofType:@"applescript"]];
NSAppleScript *aScript = [[NSAppleScript alloc]
initWithSource:sourceString];
[aScript executeAndReturnError:nil];
On Apr 15, 2006, at 10:07 PM, d2kagw wrote:
Hey All !
Just wondering if anyone knows of a way to open the system
preferences and activate a specific preference pane?
The application im building has a preference pane within sys
preferences to manage the prefs, and I was hoping that when the
user selects preferences from the application menu that I could
open the sys preferences...
Cheers !
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden