• 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: "Sean McBride" <email@hidden>
  • Date: Thu, 10 Mar 2005 12:07:37 -0500
  • Organization: Rogue Research

On 2005-03-09 16:48, Ricky Sharp said:

>Remove your handler for windowWillResize and inside of windowDidResize,
>do something like this:
>
>* obtain new size from the given notification's object (the NSWindow)
>* obtain old size and resize your views accordingly
>* set the old size to the new size

Thanks Ricky, Jim, and Kevin

I was hoping I simply overlooked a way to get the change in size from the
windowDidResize notification.  I think I'll file a bug requesting it.

I'll try your suggestion, as it seems like it should work.

>I do have to ask though why you're not setting up your views to be
>automatically resized.  Was that not possible to do for your situation?

Alas, no.  My example was simplified, my real app has 4 views that all
have to maintain 4 different aspect ratios.  The autoresizing won't help. :(

But now I have a new problem, which I'll start a new thread about.

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

References: 
 >Re: windowWillResize:toSize: and windowDidResize: are not paired (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: NSPopUpButton question (newbie)
  • Next by Date: Re: Drag&Drop NSTextView not working?
  • Previous by thread: Re: windowWillResize:toSize: and windowDidResize: are not paired
  • Next by thread: objective-c categories and static libraries?
  • Index(es):
    • Date
    • Thread