Re: Launching System Prefs
Re: Launching System Prefs
- Subject: Re: Launching System Prefs
- From: Douglas Davidson <email@hidden>
- Date: Thu, 11 Nov 2004 11:36:27 -0800
On Nov 11, 2004, at 11:20 AM, Kodex wrote:
I am attempting to launch a specfic pref pane,
http://cocoa.mamasam.com/COCOADEV/2002/03/1/27430.php
I am working off of that posting.
Maybe something like this:
NSArray *paths =
NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
NSSystemDomainMask, YES);
if ([paths count] > 0) {
NSString *path = [[paths objectAtIndex:0]
stringByAppendingPathComponent:@"PreferencePanes/Mac.prefPane"];
[[NSWorkspace sharedWorkspace] openFile:path];
}
Douglas Davidson
_______________________________________________
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