multiple NIB Question
multiple NIB Question
- Subject: multiple NIB Question
- From: Peter Fischer <email@hidden>
- Date: Fri, 24 Jan 2003 06:58:06 -0500
Hello-
I'm somewhat of a Newbie, but am working on an application that is
to contain multiple NIBS. I'm having trouble figuring out how to get
data shared/visible between NIBS. For example:
Say I have MainMenu.nib in my project, and a "controller" class
called ApplicationController that is instantiated within this nib, so a
blue cube, for ApplicationController is visible, and both the .m & .h
files are created in my project.
I also have another NIB called Preferences, and Preferences contains
its own "controller" class called PrefencesController.
PreferencesController is created by the ApplicationController code, so
the owner of PreferencesController points back to Application
controller.
My big question is, how can I see data declared in
ApplicationController, from inside of PreferencesController, or in
other words, I need to see parent data. If I have an NSUserDefaults
object declared within ApplicationController:
@interface ApplicationController : NSObject
{
NSUserDefaults preferencesData;
}
Is it possible for PreferencesController to get visibility to this
preferencesPane object, or am I declaring this in an incorrect spot?
Does this need to be declared in a more global namespace?
Thanks for any help you guys can give me.
--Pete
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.