• 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
windowWillResize:toSize: and windowDidResize: are not paired
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: windowWillResize:toSize: and windowDidResize: are not paired
      • From: Ricky Sharp <email@hidden>
    • Re: windowWillResize:toSize: and windowDidResize: are not paired
      • From: Kevin Ballard <email@hidden>
  • Prev by Date: Re: key command mapping?
  • Next by Date: Re: windowWillResize:toSize: and windowDidResize: are not paired
  • Previous by thread: Re: key command mapping?
  • Next by thread: Re: windowWillResize:toSize: and windowDidResize: are not paired
  • Index(es):
    • Date
    • Thread