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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to