• 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
Changing fonts in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing fonts in an NSTableView


  • Subject: Changing fonts in an NSTableView
  • From: Julian Barkway <email@hidden>
  • Date: Sun, 7 Apr 2002 20:58:20 +0200

I would like to provide the facility of changing the font for my table view using the fonts panel but I seem to have run into a problem... According to the documentation, all I need to do is set up my app to be font-aware in IB and then make sure my view object responds to 'changeFont: sender'. However, although I can get the font panel to appear, nothing I try will get it to send 'changeFont:' to my view. I've tried explicitly making my view firstResponder and setting it as the fontManager's delegate but nothing works. This has me completely stumped. Not even the example code for TextEdit is any use as this, apparently, has the required behaviour happening 'automagically'.

I can set the default font from within the tableView:willDisplayCell:... delegate method without a problem using a hard-coded font-name - it's just the font panel that has me stumped. And, yes, I have RTFM!

Any help gratefully received!

Cheers,
Julian Barkway
_______________________________________________
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.

  • Prev by Date: Re: Mutable copy of a character set is different?
  • Next by Date: Re: Several questions on Objective C
  • Previous by thread: Re: Mutable copy of a character set is different?
  • Next by thread: Re: Several questions on Objective C
  • Index(es):
    • Date
    • Thread