• 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
Subclassing NSTextStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclassing NSTextStorage


  • Subject: Subclassing NSTextStorage
  • From: Dominik Wagner <email@hidden>
  • Date: Sat, 7 Feb 2004 12:16:10 +0100

Hi all,
but especially Doug Davidson :-)

if I do a subclass of NSTextStorage to add non-attribute things like
say caching the line numbers, what's my best choice to use as a storage
for filling the primitive methods described in:

http://developer.apple.com/documentation/Cocoa/Conceptual/
TextStorageLayer/Tasks/Subclassing.html

NSMutableAttributedString or NSTextStorage? Are there performance
differences?
Are there any other methods that I should override to go directly to
the storage to increase performance (like e.g.
attributesAtIndex:longestEffectiveRange:inRange:) or so?

Regards,
dom

--
Dominik Wagner Mail: email@hidden
TheCodingMonkeys http://www.codingmonkeys.de/

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

  • Prev by Date: NSDictionary fast search
  • Next by Date: Re: are there any custom IB Palettes?
  • Previous by thread: Re: NSDictionary fast search
  • Next by thread: colored text in an NSTextView
  • Index(es):
    • Date
    • Thread