Re: NSTextView font for inserted text
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