• 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: Resizing a Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing a Window


  • Subject: Re: Resizing a Window
  • From: Yann Bizeul <email@hidden>
  • Date: Thu, 24 Jun 2004 23:35:40 +0200

You should be able to set only inside springs set, then top, left,
right and bottom of your view should be anchored.

Is this what you tried ?

Le 24 juin 04, ` 18:46, Mark Thomas a icrit :

> I played with this some more, and with trying didn't variations of the
> springs layout managed to get one which kept the control and the title
> top/left, by switch on springs within the box both up&down.
>
> Are these documented any where, so I can get a full understanding of
> these,
> as I see half a sentence here and there and looking into the Building
> Cocoa
> Application from ADC doesn't really explain them.
>
> Thanks
> Mark.
>
> -----------------------------------------------------------
>
> Ok confused now, as in IB it say the top,left is (0,0), and the
> control is
> tight at the title bar which is why I thought that's where the origin
> was.
>
> If I take out my setOrigin I'm back to where the control is at left=0,
> but
> seems to be about 1/3 of the way down.
>
> Anybody have any ideas
> Thanks
> Mark.
>
>> Don't forget NSView's frame origin is bottom left, so according to
>> your
>> example, I expect your view to stick at 50 pixel from the window's
>> bottom.
>>
>> Did I miss something ?
>>
>>> e.g. One window has the Safari control in it, when I designed it in
>>> IB, so
>>> it top,left are 0,0 (locked it), and it right and bottom 800,600, and
>>> window
>>> has a size of 50,50. I call setFrame of a larger size and when I
>>> open
>>> the
>>> window, the control isn't at the top,left of 0,0, but half way down
>>> the
>>> window.
>
>
>
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
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.


References: 
 >Re: Resizing a Window (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Resizing a Window
  • Next by Date: Re: memory leaks
  • Previous by thread: Re: Resizing a Window
  • Next by thread: FW: Modal control
  • Index(es):
    • Date
    • Thread