Re: Need help : Multiple views in NSDrawer
Re: Need help : Multiple views in NSDrawer
- Subject: Re: Need help : Multiple views in NSDrawer
- From: Matt Neuburg <email@hidden>
- Date: Wed, 24 Jul 2002 07:19:30 -0700
On Tue, 23 Jul 2002 00:19:48 +0200, kubernan <email@hidden> said:
>
The content of the drawer can have different views
>
What i decided to do is to create 3 subclasses view
>
viewX = [[IBView alloc] initWithFrame:[[myDrawer contentView] frame]];
>
[myDrawer setContentView:viewX];
>
[myDrawer open];
Should work, so the problem is presumably elsewhere. Perhaps your custom
IBView has no drawing code? Or perhaps you're confusing yourself in some
other way. A more satisfactory approach might be to have the 3 NSViews
exist right in your nib file and then just swap them in and out of the
drawer, rather than creating them from scratch with alloc init every time.
m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.