Re: windowWillResize:toSize: and windowDidResize: are not paired
Re: windowWillResize:toSize: and windowDidResize: are not paired
- Subject: Re: windowWillResize:toSize: and windowDidResize: are not paired
- From: Kevin Ballard <email@hidden>
- Date: Wed, 9 Mar 2005 17:37:49 -0500
Why not just remember what the size was in an ivar?
On Mar 9, 2005, at 5:24 PM, Sean McBride wrote:
Hi,
I have a window where I need to do some special handling of resizing.
A
(simplified) example: if I widen the window by 50 pixels, I need to
widen
one view by 20 and another by 30.
I am using windowWillResize:toSize: and windowDidResize: and it works
fairly well except that these two notifications do not always come in
pairs (for example if I zoom the window).
The only reason I need windowWillResize: is to know by how much the
window will resize. I store that info in my object instance and use
it
in windowDidResize:.
It seems that if I'm in windowDidResize: I know that the window
resized
but I have no way to know by how much. Is that so? If there was a
way
to know at that point, I could adjust my 2 views then and I'd be fine.
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden