Alexander Ljungberg
3592fd8dae
Whitespace cleanup.
2011-10-06 01:59:48 +01:00
Alexander Ljungberg
b159815349
Suppress binding updates support.
2011-06-04 00:57:57 -04:00
Alexander Ljungberg
3d1638c780
Fixed: remove unused var block.
2011-05-30 16:56:24 -04:00
Alexander Ljungberg
110d75b1e5
Text field support for CPContinuouslyUpdatesValueBindingOption.
2011-03-28 18:20:19 -04:00
Alexander Ljungberg
79ec12e2a2
Added support for the CPNullPlaceholderBindingOption for bound text fields.
2011-03-28 18:02:52 -04:00
Tobias M. Bölz and Ross Boucher
49707af1ba
Fixed binding name constants
2011-03-02 13:17:44 -08:00
Klaas Pieter Annema
3d5232b308
give objects a chance to change their binder class
...
- make every object calling getBinding:forObject: aware of this change
- implement _CPCheckBoxValueBinder to handle binding to the value of a checkbox Closes : #1083
- re-implement CPTextField's behavior for controller markers using the new binder class
- disabled some tests that are not compliant with Cocoa
2011-01-07 14:14:19 +01:00
cncolder
3e9e0802f6
Show null placeholder when the value is CPNull.
2010-12-22 15:15:05 +08:00
Ross Boucher
3f2dd34ee5
We should be using UID not hash
2010-12-08 16:43:45 -08:00
cacaodev
5bec411bdc
Fix for nib2cibing bindings options.
2010-11-23 19:38:03 +01:00
Klaas Pieter Annema
221fad6c3e
improve _setCurrentValueIsPlaceholder logic
2010-11-23 12:03:00 +01:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Joachim Garth and Ross Boucher
834480ff68
Fixed a bug in reverseTransformValue: that caused transformedValue: to be called instead of reverseTransformedValue:
2010-10-18 10:46:13 -07:00
Klaas Pieter Annema
afc5b72092
made setting binding placeholder values slightly less hacky
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
14f494a25d
Properly set multiple value placeholders on textfields.
...
Previously CPKeyValueBinding would just set the binding marker placeholder values as the stringValue of the textfield. This commit fixes that and properly sets those values as the placeholder value.
2010-09-23 10:35:41 +02:00
Alexander Ljungberg
494f39dd86
Closes #752 . Removed some debug code which snuck in with the merge of fix-752-CPValueTransformerNameBindingOption.
2010-08-12 23:37:53 -04:00
Klaas Pieter Annema
914175de70
If CPValueTransformerNameBindingOption contains an existing class, allocate and use it in CPKeyValueBinding
2010-07-12 15:41:00 +02:00
Nicholas Small
6a689dc3df
Fix for asking the wrong object for -_replacementKeyPathForBinding: when creating a new binding.
2010-06-30 12:00:20 -04:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05: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
218919a8ba
Fixed: exposed bindings on CPObject would not appear in CPObject subclasses.
2010-05-26 19:48:27 -04:00
Alexander Ljungberg
79ed04e403
Fixed: including CPValueTransformer.j causes an infinite loop due to the recent Objective-J (mis?) behavior that every class has to inherit from CPObject. Also, the transformer map failed to initialize properly with the existing setup code for reasons which were not immediately clear. Moving the initialization to a regular + initialize method eliminated the problem.
...
Fixed: CPKeyValueBinding.j would throw an exception if a named value transformer option was specified, due to CPValueTransformer.j not being imported.
2010-05-26 19:47:45 -04:00
Ross Boucher
3635d0ec26
Bindings Checkpoint.
2009-09-21 13:27:50 -07:00
Ross Boucher
b63e50dacb
Fix for the objectValue/value thing in bindings. Removed unnecessary code in CPControl
2009-09-20 19:33:03 -07:00
Francisco Ryan Tolmasky I
08ed16c493
Made CPObjectController's contentObject binding bidirectional.
...
Reviewed by me.
2009-07-22 23:54:38 -07:00
Ross Boucher
9bbe51fa64
CPArrayController works simply with bindings and arrangedObjects
2009-02-19 01:29:39 -08:00
Ross Boucher
4de3a34a3e
CPObjectController now works, as do bindings and CPControls.
2009-02-16 00:37:50 -08:00
Ross Boucher
c028425f14
More bindings fixes.
2009-02-09 17:35:25 -08:00
Ross Boucher
1b8aca26a3
In progress work on bindings.
2009-02-07 12:55:15 -07:00
Ross Boucher
1acb130be1
Add preliminary support for Key Value Bindings to Cappuccino.
2009-02-07 12:54:59 -07:00