Re: Can't get System prefPane to work
Re: Can't get System prefPane to work
- Subject: Re: Can't get System prefPane to work
- From: Trygve Inda <email@hidden>
- Date: Mon, 01 May 2006 14:15:14 +0000
- Thread-topic: Can't get System prefPane to work
> I create a new project (Preference Pane) in Xcode 2.2.1
>
> In the window I place a button.
>
> I set the File Owner to a class of TestPref which is a subclass of
> NSPreferencePane, and it has one action clickTest
>
> I control-Drag the button to the File Owner and set its action to clickTest.
>
> In my clickTest function I try to do:
>
> [[NSWorkspace sharedWorkspace] launchApplication:@"TextEdit"];
>
> This works fine when I build a normal Cocoa app, but does not work as a
> System Pref Pane - I don't think my function is even being called.
>
> Any ideas?
>
> Trygve
PS: - (void) mainViewDidLoad is being called, but not clickTest
_______________________________________________
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