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