OK ...I got a little further. Turns out the resize of the window should be enough. The size of the tabView should get adjusted automatically because of the autosize settings.

   - (void) showDetails:(BOOL)show animate:(BOOL)animate
   {
       NSSize fullSize = NSMakeSize(455, 302);

       NSRect windowFrame = [[self window] frame];

       if (show) {

           windowFrame.origin.y -= fullSize.height;
           windowFrame.size.height += fullSize.height;
           [[self window] setFrame: windowFrame
                           display: YES
                           animate: animate];

       } else {
           windowFrame.origin.y += fullSize.height;
           windowFrame.size.height -= fullSize.height;
           [[self window] setFrame: windowFrame
                           display: YES
                           animate: animate];

       }
   }

BUT ...I so don't get the autosize behavior!! Check out this little screencast

 http://vafer.org/pub/autosize.mov

The first part is as expected. But once the height of the NSTabView has been zero - it's getting ugly.

Seems like I am not alone on this

 http://katidev.com/blog/2008/02/12/why-i-say-no-to-autoresizing/

What's the best way around this for my case? I just want to show/hide the NSTabView.

cheers
--
Torsten
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to