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

Re: NSPreferencePane question


  • Subject: Re: NSPreferencePane question
  • From: David Remahl <email@hidden>
  • Date: Thu, 01 Nov 2001 13:54:37 +0100

> 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/PreferenceP
> anes/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
> _______________________________________________
> cocoa-dev mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev

Did you read the ObjectiveC book? It discusses the Model View Controller
architecture in some depth...

/ david


References: 
 >NSPreferencePane question (From: "Kevin Bohan" <email@hidden>)

  • Prev by Date: Re: Book
  • Next by Date: EXC_BAD_ACCESS in dragImage:
  • Previous by thread: NSPreferencePane question
  • Next by thread: RE: NSPreferencePane question
  • Index(es):
    • Date
    • Thread