Re: NSTextView actions
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