• 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
Can't get System prefPane to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't get System prefPane to work


  • Subject: Can't get System prefPane to work
  • From: Trygve Inda <email@hidden>
  • Date: Mon, 01 May 2006 14:05:21 +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


 _______________________________________________
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

  • Follow-Ups:
    • Re: Can't get System prefPane to work
      • From: Trygve Inda <email@hidden>
  • Prev by Date: Re: Is there a z-index for overlapping NSViews?
  • Next by Date: ANN: StepTalk on OS X - with test application
  • Previous by thread: Re: Accessing 8-bit bytes from a file using Cocoa
  • Next by thread: Re: Can't get System prefPane to work
  • Index(es):
    • Date
    • Thread