• 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: Bug with -changeAttributes: in NSFontManager/Font Panel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug with -changeAttributes: in NSFontManager/Font Panel?


  • Subject: Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 17 Sep 2008 09:50:26 +1000


On 17 Sep 2008, at 4:46 am, Preston Jackson wrote:

[[NSFontManager sharedFontManager] setTarget:self] only sets the target to the changeFont: method. Alternatively, you can put changeFont: in the responder chain it will get called without having to explicitly set the target of the shared NSFontManager.

I'm receiving changeFont: messages fine, and that works no problem.

The changeAttributes: method is called on the NSTextView (or your sublcass of it). I believe this message will also be passed up the responder chain if the NSTextView doesn't consume it.


I'm not using a text view directly, but I do have attributed text that could take advantage of the Font Panel's UI if this worked. Since I'm trying to receive this in a dialog that has text fields, I wonder if the message is being consumed by the field editor or one of my fields. That's still a bug! What would seem to make sense is that setTarget on NSFontManager should set the target for all changexxx messages it sends.

Anyway I filed a bug report, let's see if that gets any response.


Graham _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
      • From: "Kyle Sluder" <email@hidden>
References: 
 >Bug with -changeAttributes: in NSFontManager/Font Panel? (From: Graham Cox <email@hidden>)
 >Re: Bug with -changeAttributes: in NSFontManager/Font Panel? (From: Graham Cox <email@hidden>)
 >Re: Bug with -changeAttributes: in NSFontManager/Font Panel? (From: Preston Jackson <email@hidden>)

  • Prev by Date: Re: NSOutlineView: Which row is selected.
  • Next by Date: Re: Dealing with encoding in XML parsing
  • Previous by thread: Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
  • Next by thread: Re: Bug with -changeAttributes: in NSFontManager/Font Panel?
  • Index(es):
    • Date
    • Thread