Re: Keeping a drawer to a fixed size
Re: Keeping a drawer to a fixed size
- Subject: Re: Keeping a drawer to a fixed size
- From: Rakesh Pandey <email@hidden>
- Date: Mon, 16 Dec 2002 14:12:46 +0530
You will have to calculate the offsets for the drawer. The drawer size is
detrmined byt its offsets from the top and bottom of window. As the window
is growing calculate and adjust the offsets fro the drawer. Hope it works.
//-----------------PART of code from my application ------------//
unsigned int halfHeight = frameSize.height / 2, remainder =
frameSize.height - 2 * halfHeight;
[notesDrawer setLeadingOffset:0];
[notesDrawer setTrailingOffset:halfHeight];
[notesDrawer setMinContentSize:NSMakeSize(250, 350)];
[notesDrawer setMaxContentSize:NSMakeSize(250, 350)];
//-------------------------------------------------------------//
Regards
Rakesh
On 16/12/02 1:44 PM, "Jeffrey Drake" <email@hidden> wrote:
>
I am trying to make a drawer that is on the left or right side that
>
keeps its hieght fixed, instead of automatically growing and shrinking.
>
I have tried a few of the resize delegates on the window and on the
>
drawer and trying to setContentSize, but not working. I am thinking it
>
is that content size isn't the drawer size. I have run out of ideas
>
though.
>
>
The reason is the data is not potentially bottomless, but more like a
>
fixed dialog would be. I am not using a panel because I want this to be
>
attached to the window.
>
>
Any help would be appreciated,
>
Jeffrey Drake
>
_______________________________________________
>
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.
_______________________________________________
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.