Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.