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

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

References: 
 >windowWillResize:toSize: and windowDidResize: are not paired (From: "Sean McBride" <email@hidden>)

  • Prev by Date: windowWillResize:toSize: and windowDidResize: are not paired
  • Next by Date: objective-c categories and static libraries?
  • Previous by thread: windowWillResize:toSize: and windowDidResize: are not paired
  • Next by thread: Re: windowWillResize:toSize: and windowDidResize: are not paired
  • Index(es):
    • Date
    • Thread