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

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.


  • Follow-Ups:
    • Re: Customized NSTextView drawing
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: use of c select() style events with the objc run loop
  • Next by Date: Re: window with a lot of controllers
  • Previous by thread: Re: use of c select() style events with the objc run loop
  • Next by thread: Re: Customized NSTextView drawing
  • Index(es):
    • Date
    • Thread