• 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: NSTextView actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView actions


  • Subject: Re: NSTextView actions
  • From: Randall Meadows <email@hidden>
  • Date: Sat, 1 Nov 2008 12:00:15 -0600

On Oct 31, 2008, at 12:48 PM, Michael Ash wrote:

So rather than this, just get notified when the text view *actually*
redraws. There's no built-in way to do this (that I can think of right
now), but it's easy with a simple subclass. Subclass NSTextView, and
override -viewWillDraw, and have your override do whatever
notification you need.

Note that this requires 10.5. On 10.4 and under, you should be able to
accomplish the same thing with a -drawRect: override.

Works like a charm. Thanks for this tip! _______________________________________________

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


  • Prev by Date: Need help to make this method prettier
  • Next by Date: Re: Simple Flipbook Animation?
  • Previous by thread: Re: Need help to make this method prettier
  • Next by thread: [Q] Buttons with Menus
  • Index(es):
    • Date
    • Thread