Klaas Pieter Annema
de1ebe6319
add test case for previous fix
2010-12-22 10:49:02 +01:00
Klaas Pieter Annema
221fad6c3e
improve _setCurrentValueIsPlaceholder logic
2010-11-23 12:03:00 +01:00
Alexander Ljungberg
16e9fce5b5
Unit test exposing a new bug: setting a binding on a text field causes it to lose its placeholder string.
2010-10-02 14:38:34 -04:00
Klaas Pieter Annema
8fe67b73da
implement _setCurrentValueIsPlaceholder in CPTextField
...
CPKeyValueBinding will sent _setCurrentValueIsPlaceholder: to indicate to an object that current value is a placeholder and should be displayed as such. This commit implements the method for CPTextField and adds a unit test to test the behavior.
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
2fba03dc75
fix style issues in CPTextField and CPKeyValueBindingTest
2010-09-23 10:35:41 +02:00
Ross Boucher
8fd564b034
Minor cleanup to the current test cases.
2010-05-28 10:54:45 -07:00
Alexander Ljungberg
45a2bcb71a
Fixed bindings problems where 'nil' would be transformed into @"". Also, CPIsNilTransformerName and its inverse couldn't work because any nil value was immediately returned without transformations being applied. Full complement of unit tests included, based on Cocoa empirical testing.
...
Fixed with CPKeyValueBinding: the CPValueTransformerNameBindingOption option would cause an exception due a missing import.
2010-05-26 19:50:35 -04:00
Alexander Ljungberg
8b2350fb22
Optimized table data loading when using bindings for the cell values. A special code path in the CPTableColumn's prepareDataView:forRow: method turns a O(n) operation into O(1) where n is the number of items in the model array.
2010-05-26 19:42:59 -04:00
Ross Boucher
1acb130be1
Add preliminary support for Key Value Bindings to Cappuccino.
2009-02-07 12:54:59 -07:00