• 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
Re: One window, multiple nibs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One window, multiple nibs?


  • Subject: Re: One window, multiple nibs?
  • From: Dominik Pich <email@hidden>
  • Date: Mon, 3 Dec 2007 13:27:05 +0100

Hi,
maybe this bit of pseudo code helps.
else.... look at the preferences controllr sample, maybe

controller {

init {
	loadNib(afile); //aWindow iboutlet
	loadNib(bfile); //bCustomView outlet
	loadNib(cfile); //cCustomView outlet
}

windowWillLoad {
	//set contentView
	window.contentView = bCustomView; // or cView
}

}

Regards,
Dominik

Am Dec 3, 2007 um 1:05 PM schrieb Tim Perrett:

Hey All

I appreciate this question must come up all the time, but im struggling to find an answer to it (with an example of code too)

I want to have a single window, but break parts out into separate nib files to keep things tidy. I presume that I just drop down a custom view in IB, then I need to link it up to the controller in which is calls the nib somehow?

If someone could perhaps drop a small sample onto the list that would be awesome, or link to somewhere on the net where there is such a thing. People seem to talk about the powergurdian MDI example, but there site seems to no longer be there?

Any help would be much appreciated

Cheers

Tim


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >One window, multiple nibs? (From: Tim Perrett <email@hidden>)

  • Prev by Date: One window, multiple nibs?
  • Next by Date: Re: One window, multiple nibs?
  • Previous by thread: One window, multiple nibs?
  • Next by thread: Re: One window, multiple nibs?
  • Index(es):
    • Date
    • Thread