mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
New: CPTextField now supports the CPEditorRegistrationProtocol (#2169)
This commit is contained in:
@@ -609,6 +609,25 @@
|
||||
|
||||
return YES;
|
||||
}
|
||||
- (void)_selectionWillChange
|
||||
{
|
||||
// Push back all data from the dirty editors before it is too late.
|
||||
|
||||
var editorsCount = [_editors count];
|
||||
|
||||
while (editorsCount--)
|
||||
{
|
||||
var allBindings = [CPBinder allBindingsForObject:_editors[editorsCount]],
|
||||
allKeys = [allBindings allKeys],
|
||||
keysCount = allKeys.length;
|
||||
|
||||
while (keysCount--)
|
||||
[[allBindings objectForKey:allKeys[keysCount]] reverseSetValueFor:allKeys[keysCount]];
|
||||
}
|
||||
|
||||
[super _selectionWillChange];
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Returns an array of the selected objects.
|
||||
|
||||
Reference in New Issue
Block a user