• 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: Need help : Multiple views in NSDrawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Programmatic mount of AFP volumes?
  • Next by Date: Re: Setting focus to NSTextField
  • Previous by thread: Need help : Multiple views in NSDrawer
  • Next by thread: Manual layout of controls?
  • Index(es):
    • Date
    • Thread