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

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.


References: 
 >Re: Customized NSTextView drawing (From: Mark Alldritt <email@hidden>)

  • Prev by Date: Get a user friendly device name
  • Next by Date: ExceptionInInitializerError Exception while invoking NSRuntime in an signed applet...Please help..
  • Previous by thread: Re: Customized NSTextView drawing
  • Next by thread: loading content for NSTextView
  • Index(es):
    • Date
    • Thread