• 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: Adding text attributes to current cursor position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding text attributes to current cursor position


  • Subject: Re: Adding text attributes to current cursor position
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 24 Feb 2003 09:47:18 -0800

On Friday, February 21, 2003, at 9:04 PM, Edwin Zacharias wrote:

I'm trying to add and remove attributes that will be
set to the text typed in a text view. Usually this it
is set to the attributes of the preceeding character,
but it's possible to change things like the font or
color for the insertion point. Is there an easy way
to do this with other attributes, suck as
NSLinkAttributeName?

You are speaking of the typingAttributes, which are maintained by the text view but can be set programmatically. I'm not sure whether it would be convenient to add NSLinkAttributeName this way, though, since it usually has a single attribute applied to a determinate range of characters, somewhat in contrast to other attributes such as colors, underlines, etc.

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: 
 >Adding text attributes to current cursor position (From: Edwin Zacharias <email@hidden>)

  • Prev by Date: Re: New to Cocoa
  • Next by Date: Re: Change a NSToolbarItem appearence
  • Previous by thread: Adding text attributes to current cursor position
  • Next by thread: Drag and drop with tables, changing the cursor, more
  • Index(es):
    • Date
    • Thread