• 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
NSTableColumn's 'fontSize' Binding: Just Doesn't Work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableColumn's 'fontSize' Binding: Just Doesn't Work?


  • Subject: NSTableColumn's 'fontSize' Binding: Just Doesn't Work?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 18 Feb 2010 16:29:44 -0800

I know how to control the font size in a table -- the hard way -- by subclassing NSTableColumn and overriding -dataCellForRow.  Hoping for an easy way, I noticed that NSTableView has a 'fontSize' binding...

fontSize.  An integer value that determines the size, in points, of the font used to display the NSTableView.  If fontSize is bound, the font binding is disabled.

Whoopee!  So, in Interface Builder, I leave 'font' unbound, and bind thus:

fontSize
  Bind to: Shared User Defaults Controller
  Controller Key: values
  Model Key Path: myFontSize

myFontSize is a key in my user defaults.

Result: It just doesn't work.  Silently ignores the value in user defaults, both upon awaking and when it is changed.

This was reported also by Chris Miner two years ago:

http://www.cocoabuilder.com/archive/cocoa/197369-under-what-circumstances-does-the-fontsize-binding-of-nstableview-have-an-effect.html?q=NSTableView+fontSize+binding#197369

I understand that NSUserDefaults bindings do not issue an error if Model Key Path does not exist.  But I checked the spelling three times.

Has anyone ever seen this binding work?

Jerry Krinock



_______________________________________________

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: NSTableColumn's 'fontSize' Binding: Just Doesn't Work?
      • From: Keary Suska <email@hidden>
    • Re: [SOLVED] NSTableColumn's 'fontSize' Binding: Just Doesn't Work?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Hillegass printing challenge
  • Next by Date: Re: [SOLVED] NSTableColumn's 'fontSize' Binding: Just Doesn't Work?
  • Previous by thread: Re: NSTableView with PopUpButtonCell column with different content per row
  • Next by thread: Re: [SOLVED] NSTableColumn's 'fontSize' Binding: Just Doesn't Work?
  • Index(es):
    • Date
    • Thread