• 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: NSFontPanel act on it's own accessory view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFontPanel act on it's own accessory view?


  • Subject: Re: NSFontPanel act on it's own accessory view?
  • From: Glen Low <email@hidden>
  • Date: Fri, 28 May 2004 22:29:14 +0800

On 28/05/2004, at 10:55 AM, Nik Sands wrote:

Thanks Glen,

Your #2 option looks like it's close to the mark, but I still cannot get it to work. Your example appears to be very different to my case... I don't think you're using an accessoryView in the NSFontPanel, as I'm trying to do.

Ie, The text view for which I want to manage fonts/sizes/etc is actually added to the sharedFontPanel window (as it's accessoryView). So I have only one window on screen, which includes the normal NSFontPanel content, PLUS the additiona text view(s) that I've added to it.

That might be contrary to the usual user expectations. The font panel normally controls some other UI object on the screen.

So I then want to be able to select some text from the added text view, and choose a different font/size/etc, and have the text view updated as I do so. Currently this does not work, because as soon as I click on a font/size/etc from the panel, the clicked object, etc becomes the window's first responder, and the message never gets to the text view.

In theory, your suggestion should work around this. I've tried changing the NSFontManager's action to a custom action in my application delegate ("changeFontForAccessoryView"), but that action never get's called (I've got an NSLog there to check).

Hmmm... did you use @selector(changeFontForAccessoryView:) -- remembering the : ? Does your changeFontForAccessoryView: method have a single param of type id (sender)? Any else intercepting the message?

Just to see what's happening, put up a window with a delegate that handles the message to see if it can intercept it.

Other than that, I can't think of anything.


Cheers, Glen Low


---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSFontPanel act on it's own accessory view? (From: Glen Low <email@hidden>)
 >Re: NSFontPanel act on it's own accessory view? (From: Nik Sands <email@hidden>)

  • Prev by Date: Re: Style management in NSTextView
  • Next by Date: KVO and bindings question
  • Previous by thread: Re: NSFontPanel act on it's own accessory view?
  • Next by thread: Distant object on server thread
  • Index(es):
    • Date
    • Thread