• 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
changeFont in custom view in custom IB palette!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changeFont in custom view in custom IB palette!


  • Subject: changeFont in custom view in custom IB palette!
  • From: Mads Bakholt <email@hidden>
  • Date: Thu, 16 Aug 2007 01:04:21 +0200

Hi there,

I'm going crazy... For the last two days I've been googling for a solution to my problem with a custom IB palette and change of font - here we go:

I've created a custom IB palette consisting of a single custom view (NSView). The view draws a bezierpath and some text within and the view gets its color settings, width settings, etc. from the provided inspector with relevant controls for controlling those attributes.

The ONLY thing left is change of font for my view(the text string) - I can simply not get a simple message or get changeFont: called for my view when IB's font panel changes font/size.
I've tried virtually everything as advised on the net: implemented acceptsFirstResponder, changeFont, even [[self window] makeFirstResponder:self] - the latter doesn't even force a call to acceptsFirstResponder! :(


So my question is: how can a custom view in a custom IB palette get notified/respond to font changes made through IB's font panel?

Please, please, please help me out on this issue - it's the only thing left for 100% success with custom palettes in IB.


Kind regards,

Mads

P.S: Please notice that the text drawn in the custom view is NOT done through a NSTextField or similar....

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Prev by Date: NSColorPanel magnifying glass behavior
  • Next by Date: Copyright Info from InfoPlist.strings
  • Previous by thread: NSColorPanel magnifying glass behavior
  • Next by thread: Copyright Info from InfoPlist.strings
  • Index(es):
    • Date
    • Thread