• 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
Using NSFontPanel with NSControl subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSFontPanel with NSControl subclasses


  • Subject: Using NSFontPanel with NSControl subclasses
  • From: Eric Brunstad <email@hidden>
  • Date: Fri, 29 Jul 2005 19:42:54 -0400

Hi,

In my current project, I have a custom class, METextObject, which inherits from NSControl. It uses a NSTextFieldCell to draw and edit text. However, I need it to interact with a NSFontPanel so the user can change the font. I have tried implementing -changeFont: and - usesFontPanel, but this does not work. How should I do this?

Note: Subclassing NSTextField and using that instead is not an option for my program.


Eric Brunstad Mind Sprockets Software eric (at) mindsprockets (dot) com www.mindsprockets.com

_______________________________________________
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


  • Follow-Ups:
    • Re: Using NSFontPanel with NSControl subclasses
      • From: Eric Brunstad <email@hidden>
  • Prev by Date: Re: NSTreeController ChildKeyPath
  • Next by Date: change in model not reflected in interface
  • Previous by thread: Re: transparency and beyond.
  • Next by thread: Re: Using NSFontPanel with NSControl subclasses
  • Index(es):
    • Date
    • Thread