• 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
How to differentiate between sources for a live resize...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to differentiate between sources for a live resize...


  • Subject: How to differentiate between sources for a live resize...
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 2 May 2006 08:34:01 -0700

I have the desire to optimize the way I do drawing in an NSView
subclass based not only on if the view is undergoing a live resize
(-[NSView inLiveResize]) but also based on the source or reason for
the live resize. I basically want to know if the live resize is a
result of the user dragging the resize widget in the lower right
corner of the window or it is a result resize animation triggered say
by something like -[NSWindow setFrame:display:animate:].

I believe I have access (in my code) to all the
setFrame:display:animate: calls so I could record some state
information (or subclass NSWindow to override setFrame: so it
maintains state, etc.)... but I wonder if better way exists that I am
just over looking.

Any suggestions on a good way to go about doing that?

-Shawn
_______________________________________________
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


  • Prev by Date: Conditionally setting a table column cell to be editable, based on another column's value?
  • Next by Date: Activating SearchField Filter
  • Previous by thread: Re: Conditionally setting a table column cell to be editable, based on another column's value?
  • Next by thread: Activating SearchField Filter
  • Index(es):
    • Date
    • Thread