• 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 font for inserted text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView font for inserted text


  • Subject: Re: NSTextView font for inserted text
  • From: Sherm Pendley <email@hidden>
  • Date: Sat, 3 Feb 2007 05:03:54 -0500

On Feb 3, 2007, at 4:08 AM, Caleb Cannon wrote:

How can I determine the font of text a user is typing into an NSTextView?

Assuming that theView is an instance of NSTextView:

NSFont *theFont = [[theView typingAttributes] objectForKey:NSFontAttributeName];

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTextView font for inserted text (From: Caleb Cannon <email@hidden>)

  • Prev by Date: NSTextView font for inserted text
  • Next by Date: Hi
  • Previous by thread: NSTextView font for inserted text
  • Next by thread: Re: NSTextView font for inserted text
  • Index(es):
    • Date
    • Thread