• 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: Keeping a drawer to a fixed size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Keeping a drawer to a fixed size
      • From: Jeffrey Drake <email@hidden>
References: 
 >Keeping a drawer to a fixed size (From: Jeffrey Drake <email@hidden>)

  • Prev by Date: Keeping a drawer to a fixed size
  • Next by Date: Beep when click on a character of borderless window
  • Previous by thread: Keeping a drawer to a fixed size
  • Next by thread: Re: Keeping a drawer to a fixed size
  • Index(es):
    • Date
    • Thread