FROM : Satoshi Matsumoto
DATE : Mon Apr 04 00:43:50 2005
on 05.4.4 4:27 AM, Roland Silver at <email_removed> 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$B!G(Bs 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_removed>>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
DATE : Mon Apr 04 00:43:50 2005
on 05.4.4 4:27 AM, Roland Silver at <email_removed> 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$B!G(Bs 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_removed>>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
| Related mails | Author | Date |
|---|---|---|
| Roland Silver | Apr 3, 21:27 | |
| Satoshi Matsumoto | Apr 4, 00:43 | |
| Douglas Davidson | Apr 4, 17:40 |






Cocoa mail archive

