• 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: typingAttributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: typingAttributes?


  • Subject: Re: typingAttributes?
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 5 Jun 2003 09:24:05 -0700

On Thursday, June 5, 2003, at 5:38 AM, Matthew Weinstein wrote:

I'm trying to find some documentation on setTypingAttributes in NSTextView. My program inserts text, colorizes it, but then I want to set the insertion point and make sure that the color of the text that will be typed will be the same. I think the above method is the one I want, but whoa! no docs.

The typing attributes are just an attribute dictionary like that you would set on a range of characters in an attributed string. They contain the attributes that should be applied to the next typed character. NSTextView has to maintain these separately from the attributes on existing text; for example, if there is a zero-length selection, and the user chooses "Bold", then no text changes, but the typing attributes do, so that the next typed character will be bold.

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: 
 >typingAttributes? (From: Matthew Weinstein <email@hidden>)

  • Prev by Date: Re: Force Finder to update *All* files within a folder (Slightly Off Topic)
  • Next by Date: Select a carbon window within a Cocoa application
  • Previous by thread: Re: typingAttributes?
  • Next by thread: Trimming text in a tableview
  • Index(es):
    • Date
    • Thread