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

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

  • Prev by Date: Re: [OT] 2GB file limit
  • Next by Date: ANN: Emacs on Aqua 8.0-rc2
  • Previous by thread: Re: current font
  • Next by thread: ANN: Emacs on Aqua 8.0-rc2
  • Index(es):
    • Date
    • Thread