• 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: NSTextView and limiting text attributes via delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView and limiting text attributes via delegate


  • Subject: Re: NSTextView and limiting text attributes via delegate
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 6 Feb 2006 15:32:27 -0800


On Feb 4, 2006, at 2:14 PM, Scott Lehman wrote:

Is there any particular reason to override the
fixAttributes method versus the setAttributes:range:?
In my testing, I do see that the former seems to be
called just once for a range containing differing
attributes unlike the latter, but I would have to
divide it into the different attribute runs anyway.


The intent is that fixAttributes is the point for doing this sort of thing. Depending on implementation, you could do it the other way, but fixAttributes is designed for it--you can take advantage of things like lazy fixing and the kit's calling of fixAttributes at the appropriate points.


Douglas Davidson

_______________________________________________
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


References: 
 >Re: NSTextView and limiting text attributes via delegate (From: Scott Lehman <email@hidden>)

  • Prev by Date: Re: problem with [NSData bytes] on Intel
  • Next by Date: Custom NSComboBox lists
  • Previous by thread: Re: NSTextView and limiting text attributes via delegate
  • Next by thread: creating a preference window safari style
  • Index(es):
    • Date
    • Thread