Files
cappuccino/AppKit
Aparajita Fishman 918f6fbb8f CPFormatter support, bug fixes...
- Test application.

CPControl
---------
- Moved _formatter declaration up next to value, it was in the Target-Action Support section before.

- sendAction:to: should return a BOOL.

- Support for CPFormatter -editingStringForObjectValue.

- If a nil string is passed to -setStringValue in Cocoa, it raises an invalid parameter assertion and does nothing.

- Per Cocoa, if setting a string value fails, it tries again with an empty string.

- Removed a few extra blank lines.

- Changed NULL to nil.

CPTextField
-----------
- The string value is now cached in _stringValue to avoid constant calls to the formatter.

- There were several places where references to _inputElement were not wrapped with #if PLATFORM(DOM).

- When resigning first responder, if there is a formatter and formatting fails, reject the resignation and keep focus. Also, if the delegate responds to control:didFailToFormatString:errorDescription:, invoke it.

- _willBecomeFirstResponderByClick was not being set to NO when resigning. As a result, if you clicked in a field, tabbed to another field, and tabbed back to the original field, it would not select the text because it thought there was a mouse click.

- Don't send _sendStringValue: in keyUp: if the value has not changed. Previously it would do that for non-printing keys like navigation keys.

- insertNewLine: validates the string the same way resigning does.

- insertNewLine: would not send textDidEndEditing: if the field had no action, but it should.

- insertNewLine: should select all text (per Cocoa).

- insertNewLineIgnoringFieldEditor: and insertTabIgnoringFieldEditor: were not replacing the selection, Cocoa docs say they should.

- Per Cocoa, when setting an object value and there is a formatter, the value is first formatted as a string. If that fails, an object value for an empty string is attempted.

CPFormatter
-----------
- Fixed up the docs to match the method signatures.

- Indicated with "Ref" in argument types if the argument is pass by reference.

- isPartialStringValid:newEditingString:errorDescription: has a default implementation in Cocoa that nils the return values and returns YES.

- Fixed the name of isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:

- isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription: has a default implementation in Cocoa that invokes isPartialStringValid:newEditingString:errorDescription:
2011-07-09 17:05:23 -07:00
..
2011-07-07 20:40:22 +02:00
2011-05-26 23:59:49 -04:00
2011-05-18 19:30:16 +02:00
2011-05-30 21:03:44 -04:00
2011-01-24 11:05:48 +02:00
2011-01-24 11:05:48 +02:00
2011-01-23 08:43:46 -08:00
2011-01-24 11:05:48 +02:00
2011-03-02 12:36:44 -08:00
2010-10-09 22:07:57 -04:00
2011-07-09 17:05:23 -07:00
2011-02-28 23:48:34 -03:00
2011-01-24 11:05:48 +02:00
2011-01-24 13:43:55 -03:00
2010-12-09 13:00:52 -08:00
2011-04-03 00:56:28 -04:00
2010-12-06 14:05:18 -05:00
2010-12-01 11:04:17 -08:00
2011-02-27 10:01:16 -08:00
2010-12-01 11:04:17 -08:00
2011-03-25 22:52:57 -04:00
2011-01-14 12:16:51 -03:00
2010-12-01 11:04:17 -08:00
2011-02-16 17:39:06 +01:00
2011-03-25 22:52:57 -04:00
2011-04-03 17:45:53 -04:00
2011-05-17 10:54:52 -07:00
2011-03-17 03:03:51 -04:00
2011-01-24 11:05:48 +02:00
2011-03-10 17:39:39 -05:00
2011-01-24 11:05:48 +02:00
2011-04-03 17:56:31 -04:00
2011-01-24 11:05:48 +02:00
2010-10-05 15:54:25 -07:00
2011-01-24 11:05:48 +02:00
2010-11-13 12:41:31 -08:00
2011-05-15 22:14:44 +02:00
2011-01-24 14:00:15 -03:00
2011-04-03 17:45:53 -04:00
2009-11-02 15:59:42 -08:00