• 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
multiple NIB Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: multiple NIB Question
      • From: Amul Goswamy <email@hidden>
    • Re: multiple NIB Question
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: Peer To Peer Design
  • Next by Date: Re: DSP framework for Cocoa
  • Previous by thread: Re: Editable Cell in TableView
  • Next by thread: Re: multiple NIB Question
  • Index(es):
    • Date
    • Thread