Re: current font
Re: current font
- Subject: Re: current font
- From: Satoshi Matsumoto <email@hidden>
- Date: Mon, 04 Apr 2005 07:43:50 +0900
on 05.4.4 4:27 AM, Roland Silver at email@hidden wrote:
> In my program, the cursor is positioned between two characters in a
> text view. How can I determine the current font?
To get the typing font
- (NSDictionary *)typingAttributes
Returns the current typing attributes.
To set a typing font
- (void)setTypingAttributes:(NSDictionary *)attributes
Sets the receiver’s typing attributes to attributes. Typing attributes are
reset automatically whenever the selection changes. If you add any user
actions that change text attributes, you should use this method to apply
those attributes to a zero-length selection.
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden