Re: IB Woes
Re: IB Woes
- Subject: Re: IB Woes
- From: Brock Brandenberg <email@hidden>
- Date: Thu, 07 Aug 2003 18:33:15 -0500
>
I have a window-bottom drawer in my document's nib that doesn't have an
>
associated view. In code, I load that view and tell the drawer that
>
that is it's contentView. But the drawer stubbornly refuses to resize
>
vertically, instead always snapping to 200 px, even when I tell the
>
drawer that it's 'Content Size' and it's 'Max Content Size' are over
>
this (in the thousands range, just to check).
How big is your parent window? You may not be able to set the height of the
drawer any taller than the parent window to which it is attached. I don't
recall the details off the top of my head, but there are issues with a
drawer sticking out from beyond the other side of the window at the end of
its close animation. I think IB tries to prevent the mismatched sizes when
you code things in the nib, but you *may* be able to override this at
runtime if you're clever with the parent window size and drawer content size
settings. Just be prepared to see the drawer hang out the other side at the
end of the animation until it's ordered out if you get it taller than the
parent window.
And for reference, as someone has previously mentioned, there is a known bug
in IB that causes the drawer size inspector values to ask strangely. I have
reported this (Problem ID: 3148320), as have several other developers. When
it happens in IB, you can try detaching the drawer from the window and
reattaching it and the fields in the inspector *may* behave properly again
afterwards. I have had some luck doing this in the past.
Brock Brandenberg
----- industrial design @ www.bergdesign.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.