• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't get System prefPane to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Can't get System prefPane to work (From: Trygve Inda <email@hidden>)

  • Prev by Date: ANN: StepTalk on OS X - with test application
  • Next by Date: Re: Accessing 8-bit bytes from a file using Cocoa
  • Previous by thread: Can't get System prefPane to work
  • Next by thread: Re: Can't get System prefPane to work
  • Index(es):
    • Date
    • Thread