NSTextStorage attribute runs
NSTextStorage attribute runs
- Subject: NSTextStorage attribute runs
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 20 Feb 2004 17:53:48 +0000
Can someone explain to me the purpose of NSTextStorage's -attributeRuns
and -setAttributeRuns: methods? Do they have any inherent limitations?
The documentation gives the following encyclopedically informative
definitions:
attributeRuns - Returns an array of the receivers attribute runs.
setAttributeRuns: - Sets the NSTextStorages attribute runs according
to the attributeRuns array.
Thinking they'd be useful, I tried using these methods with a text
storage object, storing the array as archived data in user defaults.
The attribute runs saved and loaded okay (according to a description
output to the log) but -setAttributeRuns: completely fails to apply
them to the text. (The string the attribute runs are taken from is
identical to the one I'm trying to apply them to, in case that's
important.)
-Jeremy
========================================
email@hidden
theLocustFarm.net:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.