• 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: Need help setting font of NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help setting font of NSTextView


  • Subject: Re: Need help setting font of NSTextView
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 11 Jan 2002 09:45:32 -0800

On Thursday, January 10, 2002, at 08:52 PM, Doug Brown wrote:

I'm confused again - I don't understand the Cocoa docs. I looked at the TextEdit Preferences.m file, but I'm still confused. I think I have implemented the Font panel, but I don't understand what I'm supposed to be doing in the -changeFont: method. Also, I don't understand how to use -convertFont:

When something changes in the font panel, the font manager calls changeFont:. Your changeFont: method then takes whatever existing font(s) you have, calls convertFont:myExistingFont on the font manager for each one of those, and replaces myExistingFont in your document with the result of that call. The idea is that convertFont: applies the change the user specified in the font panel to the font you supply to it.

Douglas Davidson


References: 
 >Re: Need help setting font of NSTextView (From: Doug Brown <email@hidden>)

  • Prev by Date: Re: always-on computing (Easiest way to delete a file)
  • Next by Date: Opening Web Browser
  • Previous by thread: Re: Need help setting font of NSTextView
  • Next by thread: NSMenu and NSMenuItem help
  • Index(es):
    • Date
    • Thread