• 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
Can I "share" a view between nibs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I "share" a view between nibs?


  • Subject: Can I "share" a view between nibs?
  • From: Michael Norris <email@hidden>
  • Date: Thu, 3 Jul 2003 10:52:50 +1200

Knowing Cocoa, I'm sure there's an easy and elegant solution to the following problem. I would appreciate any pointers in the right direction.

I'm working on a project with multiple nibs. Many of these nibs are "variations on a theme": there are some controllers which have nib-specific functionality and some which are the same for every nib.

It would be nice if I could create a single view in MainMenu.nib for the "generic" controllers, and then have all my auxiliary nibs use that view alongside the controllers that are specific to each nib. Rather than recreating the 7 or 8 controllers for each nib, like I'm doing now. I'd also need to be able to wire the individual controllers to outlets and actions in IB.

The advantage of this approach, if it's possible, is that if I decide to change the core functionality at any stage, I can simply change the view in one place, and it would (ideally) update in all my other nibs.

So, is there any way I can get a view to be shared between nibs?

Cheers
-----------------------
Michael Norris
Composer/Programmer
8 Bidwill St
Mt Cook
Wellington 6002
NEW ZEALAND
-----------------------

Ph: +64 4 803 3644
Web: http://mnorris.wellington.net.nz
Stroma: http://stroma.wellington.net.nz
_______________________________________________
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: Can I "share" a view between nibs?
      • From: Shaun Wexler <email@hidden>
    • Re: Can I "share" a view between nibs?
      • From: The Amazing Llama <email@hidden>
  • Prev by Date: Re: Suggesting an initial filename with document-based app?
  • Next by Date: Re: EOF undead?
  • Previous by thread: Re: Suggesting an initial filename with document-based app?
  • Next by thread: Re: Can I "share" a view between nibs?
  • Index(es):
    • Date
    • Thread