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

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.

  • Prev by Date: Re: Loading nibs in plugins
  • Next by Date: Re: How to load a nib from a path
  • Previous by thread: Re: iCal.app database backend
  • Next by thread: SFAuthorizationView
  • Index(es):
    • Date
    • Thread