Re: NSPreferencePane question
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