Customized NSTextView drawing
Customized NSTextView drawing
- Subject: Customized NSTextView drawing
- From: Mark Alldritt <email@hidden>
- Date: Mon, 10 May 2004 09:03:42 -0700
Hi,
I have some Carbon/WASTE code that does syntax highlighting that I want to
port to Cocoa. The approach I use is to hook into WASTE's drawing code to
syntax color "on-the-fly". This avoids the overheads and delays of having
to style all the text as the user types.
How would one go about this with Cocoa's NSTextView/NSTextStorage
combination? I've poked around in the documentation, but I cannot find a
method that I need to override that delivers styled text runs to NSTextView
for rendering. Where should I be looking?
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9
AIM: markalldritt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.