Re: Customized NSTextView drawing
Re: Customized NSTextView drawing
- Subject: Re: Customized NSTextView drawing
- From: Satoshi Matsumoto <email@hidden>
- Date: Wed, 12 May 2004 03:30:56 +0900
Hi Mark,
on 04.5.12 1:22 AM, Mark Alldritt at email@hidden wrote:
>
I would like to experiment with altering attributes other than color and
>
underlining. To do this, I think I need to override NSTextStorage's
>
attributesAtIndex:effectiveRange:. I presume there is some notification I
>
need to generate letting the layout manager that it must re-layout a range
>
of text. Are there any good code examples showing how to subclass
>
NSTextStorage? My attempts so far have come to nothing.
Subclassing NSTextStorge is a little tricky because
NSTextStorage isn9t a fully concrete class.
Refer the document "Creating a Subclass of NSTextStorage"
ADC Home > Documentation > Cocoa > Text & International > Text System
Architecture > Text System Storage Layer
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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.