windowWillResize:toSize: and windowDidResize: are not paired
windowWillResize:toSize: and windowDidResize: are not paired
- Subject: windowWillResize:toSize: and windowDidResize: are not paired
- From: "Sean McBride" <email@hidden>
- Date: Wed, 9 Mar 2005 17:24:22 -0500
- Organization: Rogue Research
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.
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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