• 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
Separating Attributes from Text in NSTextStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Separating Attributes from Text in NSTextStorage


  • Subject: Separating Attributes from Text in NSTextStorage
  • From: Jonathan Hendry <email@hidden>
  • Date: Sat, 24 Jan 2004 03:35:18 -0500

I'd like to be able to save the attributes of an NSTextStorage separately
from the text the attributes are associated with.

The text would come from large, possibly read-only ascii files. I'd
like to read that into the NSTextStorage, allow the user to modify
various attributes, then save the attributes to a different file,
without duplicating the original text in the attributes file.

Next time the user opens the text file, the attribute file would
be read in and the attributes applied to the text.

Is there a simple way to do this? The AttributedStrings aren't
really set up for this, it seems.


Thanks,

JH
_______________________________________________
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: Separating Attributes from Text in NSTextStorage
      • From: Jonathan Jackel <email@hidden>
  • Prev by Date: Re: Any new/updated Cocoa books soon?
  • Next by Date: Re: Any new/updated Cocoa books soon?
  • Previous by thread: Scaling Custom Toolbar Items
  • Next by thread: Re: Separating Attributes from Text in NSTextStorage
  • Index(es):
    • Date
    • Thread