• 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: Detecting a resize window event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting a resize window event?


  • Subject: Re: Detecting a resize window event?
  • From: Scott Andrew <email@hidden>
  • Date: Sun, 25 May 2008 16:14:21 -0700

For a window:

If you are registered as the delegate you can handle the windowWillResize:toSize: call to get called just before the reisize. Or, If you want the message after the resize, you can handle the windowDidResize: call.

For a view:

You can register to receive the NSViewFrameDidChangeNotification notification. This is called after the frame of the view has been changed. I don't know of a message to track it real time.

Scott

On May 25, 2008, at 4:00 PM, Graham Reitz wrote:

How do you detect a resize event?

I can see that lockFocus and drawRect are getting called.

Is there a method to help determine if the user is resizing the window?

thanks,
graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting a resize window event?
      • From: Graham Reitz <email@hidden>
References: 
 >Detecting a resize window event? (From: Graham Reitz <email@hidden>)

  • Prev by Date: Re: Scope in an interface?
  • Next by Date: Re: Detecting a resize window event?
  • Previous by thread: Re: Detecting a resize window event?
  • Next by thread: Re: Detecting a resize window event?
  • Index(es):
    • Date
    • Thread