• 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
NSPreferencePane question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPreferencePane question


  • Subject: NSPreferencePane question
  • From: "Kevin Bohan" <email@hidden>
  • Date: Thu, 01 Nov 2001 12:44:08 +0000

Hi,

I am new to Cocoa, and I am trying to develop a Preference pane. I am a little confued about who the Controller is. In an article I read in TechPubs it says the following:

"...NSPreferencePane subclass (the preference pane object) assumes the central role as Controller..."

Here's the link:

<http://developer.apple.com/techpubs/macosx/AdditionalTechnologies/PreferencePanes/Concepts/Architecture.html#BAJECHGA>

After creating a new PreferencePane project, when I look in PB I see that there is a class defined as a subclass of NSPreferencePane, say myPane. However, when I then look in IB in the Classes pane I don't see this new class. It doesn't appear as a sub-class of NSPreferencePane. Also there is no Controller called myPane instantiated in the Instances pane of IB.

Do I need to sub-class NSPreferencePane manually in IB giving it the same name as the class defined in PB, myPane, and then instantiate it in IB myself? How does this then relate to the prefPane window instantiated in IB?

Thanks,
Kirby

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


  • Follow-Ups:
    • RE: NSPreferencePane question
      • From: "Yves Peneveyre" <email@hidden>
    • Re: NSPreferencePane question
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: Right way to get system preference values
  • Next by Date: Re: Book
  • Previous by thread: Re: Right way to get system preference values
  • Next by thread: Re: NSPreferencePane question
  • Index(es):
    • Date
    • Thread