• 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: Another NSText... problem: a sticky attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another NSText... problem: a sticky attribute


  • Subject: Re: Another NSText... problem: a sticky attribute
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 5 May 2004 16:44:40 -0700

On May 5, 2004, at 4:23 PM, Ondra Cada wrote:

I've checked both NSTextView/NSText and NSTextStorage for some methods which would control this "empty selection temporary attribute" (or what is the proper way to call it), but found nothing. May I please ask for a pointer where this is documented, or at least an advice how to change the above code so that, when typing into the text view, the newly typed text does *not* have the link attribute?

We call it the "typing attributes". You could remove the link attribute from the typing attributes by hand, but the easiest fix here probably would be to just change the order of your operations. The typing attributes are set when the selection changes, so try simply removing the link attribute from the space before changing the selection. Alternatively, you could insert the space as an attributed string with the attributes for the previous text, minus the link.

Douglas Davidson
_______________________________________________
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.


References: 
 >Another NSText... problem: a sticky attribute (From: Ondra Cada <email@hidden>)

  • Prev by Date: Another NSText... problem: a sticky attribute
  • Next by Date: Array operators (was: Custom canRemove binding)
  • Previous by thread: Another NSText... problem: a sticky attribute
  • Next by thread: Array operators (was: Custom canRemove binding)
  • Index(es):
    • Date
    • Thread