Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CustomView and nib file



Le lundi 29 septembre 2003, Amul Goswamy disait :

>That outlet is now a pointer to your custom view, you can now pass that
>pointer when you call setContentView: on your NSWindow.

Wonderful, it's works :-)

I saw the MultiNibTabView a sample code of that.

I have another problem and I saw nothing in NSView or NSWindow to help
me.

My application is a window, with a four NSTabview.
For the first 3 tabs the controls are in MainNib. For the 4th I have
only a popup menu. Depending the value of this menu I load a different
nib file.

But, after loading and displaying one of this nib file, if I use the
first tab, there is on my window the loaded controls AND the controls
for the first tab.

How can I "erase" the "old" controls ? Is it possible or must I make a
nib file for each tab with something like that ?

Tab 1 -> nib file 1
Tab 2 -> nib file 2
Tab 3 -> nib file 3
Tab 4 -> nib file 4 with my popup menu
item 1 -> nib menu 1
item 2 -> nib menu 2
....

Thanks again for your help.

Jacques
--
LANGUE : organe sexuel dont certains diginiris se servent pour parler.
P. Desproges
_______________________________________________
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.

References: 
 >Re: CustomView and nib file (From: Amul Goswamy <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.