• 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: Fastest way to build an attributed string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest way to build an attributed string


  • Subject: Re: Fastest way to build an attributed string
  • From: "Martin" <email@hidden>
  • Date: Fri, 14 Jan 2005 17:48:33 -0800

You want to wrap your entire building phase with begin/end editing calls. Eg:

    [textStorage beginEditing];
    // lots of appendString: and setAttributes:inRange: calls
    [textStorage endEditing];

This will delay attribute fixing for the whole storage until you are done making all your changes.

~Martin


>On Jan 14, 2005, at 5:26 AM, Fabian Lidman wrote:
>
>> Hello,
>> Q: What is the fastest way to create an attributed string from a
>> sequence of string/dictionary pairs?


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Fastest way to build an attributed string
      • From: Fabian Lidman <email@hidden>
  • Prev by Date: Re: Zip-files
  • Next by Date: Re: Adding an undo method in textView:shouldChangeTextInRange:...
  • Previous by thread: Re: Fastest way to build an attributed string
  • Next by thread: Re: Fastest way to build an attributed string
  • Index(es):
    • Date
    • Thread