• 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: Capture the Window resize event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capture the Window resize event


  • Subject: Re: Capture the Window resize event
  • From: Nathan Vander Wilt <email@hidden>
  • Date: Thu, 31 Jan 2008 11:33:07 -0600 (CST)

> I am intended to write some code when the users
> resize a Window. Then
> how to accomplish this?

Looks like you can use a delegate on NSWindow to
respond to the windowWillResize:toSize: message.

In a subclass of NSView, you can use
-viewWillStartLiveResize and -viewDidEndLiveResize to
set/unset any flags or caching you would want your
-drawRect: to use. Note that these are not called when
the window is resized via the zoom button, only when
dragging the lower-right corner.

-natevw


      ____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
_______________________________________________

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: Capture the Window resize event
      • From: j o a r <email@hidden>
References: 
 >Capture the Window resize event (From: Walter Yetta <email@hidden>)

  • Prev by Date: Qt & NSWorkspace bug
  • Next by Date: Re: Qt & NSWorkspace bug
  • Previous by thread: Re: Capture the Window resize event
  • Next by thread: Re: Capture the Window resize event
  • Index(es):
    • Date
    • Thread