• 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
Under what circumstances does the fontSize binding of NSTableView have an effect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Under what circumstances does the fontSize binding of NSTableView have an effect?


  • Subject: Under what circumstances does the fontSize binding of NSTableView have an effect?
  • From: Chris Miner <email@hidden>
  • Date: Sun, 27 Jan 2008 01:10:11 +0100

Hi All,

Earlier today I did the following under 10.4.11:
0. Created new empty Application
1. Opened the main nib.
2. dragged out a table view. Set its row colors to alternate.
3. dragged out a slider
4. bound the slider's "value" to a shared defaults 'fontSize' model key path
5. bound the tableview's "fontSize" to the same shared defaults 'fontSize' model key path
6. Switched to test mode


Moving the slider changed the size of the rows in the table view. This was expected.

I saved the nib, compiled and ran the App. After the app started and the main window appeared, moving the slider did not change the size of the rows in the table view. This was not expected.

Another difference was that the table view in IB test mode has a font, while the table view in my running application did not. (ie it was nil).

Can anyone explain:
1. Why the outcomes are different?
2. How one is meant to use the fontSize NSTableView binding? (or the other font related NSTableView bindings for that matter)


Cheers,
Chris

_______________________________________________

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: Re: NSViews resizeSubviewsWithOldSize is not called on resize
  • Next by Date: how to programmatically popup NSComboBox menu?
  • Previous by thread: NSStatusItem menu items and custom views
  • Next by thread: how to programmatically popup NSComboBox menu?
  • Index(es):
    • Date
    • Thread