Alexander Ljungberg
11ab9a77ad
Minor performance improvement to CPContinuouslyUpdatesValueBindingOption.
2011-03-28 20:12:32 -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
Klaas Pieter Annema
cc5e8c3f34
fix textfield cut and paste notifications
...
Closes #555 #1001
2011-02-21 10:26:58 +01:00
Klaas Pieter Annema
85e80a62a3
remove old '_currentValueIsPlaceholder' code
2011-02-21 10:26:58 +01:00
Klaas Pieter Annema
133dd39485
don't blur input element more than once
2011-01-26 11:03:09 +01:00
Randall Luecke
71de04787d
Fix backspace issue with textfield. Closes #1107 . Thanks to Jukart for the patch.
2011-01-24 18:25:18 -05:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Alexander Ljungberg
ef326dbbb4
Fix an accidental global, whitespace.
2011-01-20 22:33:42 -03:00
Klaas Pieter Annema
4e1ecbef72
Merge branch 'CPTextField-InterpretKeyEvents' of https://github.com/luuse/cappuccino into luuse-CPTextField-InterpretKeyEvents
...
Conflicts:
AppKit/CPSearchField.j
AppKit/CPTextField.j
2011-01-18 10:07:16 +01:00
Randall Luecke
bf4724d401
Fix for textfield jumping when textfield wasn't the right size or the vertical alignment was something other than center.
2011-01-15 23:15:55 -05: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
Klaas Pieter Annema
eee1dcef13
restore the original placeholder when unbinding
2011-01-07 14:14:19 +01:00
Alexander Ljungberg
4445f752f3
Avoid usage of [event keyCode].
...
Key codes have platform and browser specific behaviours.
2011-01-02 13:15:38 -03:00
Alexander Ljungberg
c0af2af7e7
Merge branch 'master' of https://github.com/Kentzo/cappuccino into Kentzo-master
2010-12-31 15:12:35 -03:00
Alexander Ljungberg
fa3df44535
Fixed: the text field selectText: message worked significantly differently in unit tests than in the browser.
...
The message normally makes the text field the first responder, but this did not happen outside of the DOM platform.
Also documented the first responder side effect.
2010-12-31 14:49:03 -03:00
Ilya Kulakov
044fc3af69
Refs issue #1607 . Make CPTableView the first responder after user is done editing dataview.
2010-12-31 12:07:42 +06:00
Ross Boucher
68a15c5c7c
Be more lenient in documents about strings versus URLs.
...
Fix a typo in CPTextField.
2010-12-16 17:22:32 -08:00
Klaas Pieter Annema
221fad6c3e
improve _setCurrentValueIsPlaceholder logic
2010-11-23 12:03:00 +01:00
Andreas Falk
a302fdfb8f
CPTextField should not bother with handling tab to go to the next key
...
view, CPWindow does that for us.
2010-11-15 19:44:02 +01:00
Andreas
9b7f8ec31e
Add -insertTabIgnoringFieldEditor: and -insertNewlineIgnoringFieldEditor:
2010-11-13 15:16:25 +01:00
Andreas
17b40fcb9d
Adapt CPTextField to use interpretKeyEvents and actions instead of directly reading from keyDown
2010-11-13 15:14:09 +01:00
Randall Luecke
c52b40657a
Removed frame resizing in the textfield's initWithCoder:
2010-11-03 22:54:09 -04: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
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02:00
Randall Luecke
00e638f406
initWithCoder on CPTextField should respect the larger height value if it's set.
2010-10-18 01:30:25 -04:00
Klaas Pieter Annema
802d7d53b0
fix multiline bezeled textfields being sized when initialized from coder
2010-10-12 11:26:28 +02:00
Aparajita Fishman
ab430b3574
Forgot to update sizeToFit documentation.
2010-10-08 10:18:38 -04:00
Aparajita Fishman
b8ae14d3a8
Fixes and more tests:
...
- Fixed _minimumFrameSize to take into account bezel and line break mode.
- Added test to show how sizeToFit was broken for multi-line labels in the old code.
- Added test to verify that behavior is correct for single-line labels.
2010-10-08 10:17:12 -04:00
Aparajita Fishman
b6491f7bb8
CPTextField -initWithCoder was not ensuring the frame size was high enough. The default label height in IB is 17px, which unmodified was cutting off the bottom pixel of labels in Cappuccino.
2010-10-06 08:43:21 -04:00
Alexander Ljungberg
ed4235d2f9
Fixed: setting any binding on a text field - even on an attribute like 'hidden' - would clear its placeholder string.
2010-10-02 14:42:06 -04:00
Klaas Pieter Annema
4211abd0b0
handle tab key as early as possible in CPWindow sendEvent:
2010-09-27 11:53:07 +02:00
Klaas Pieter Annema
d8c0d2da8e
don't reverse set binding if textfield is showing a bindings placeholder
2010-09-23 10:35:42 +02:00
Klaas Pieter Annema
e59f20668b
don't set objectValue in resignFirstResponder if it didn't change
...
This change makes sure that the textfield doesn't sent change notifications if the value didn't actually changed when resigning first responder.
2010-09-23 10:35:41 +02: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
Blair Duncan and Randall Luecke
b27560c51e
Fix for issue 841 where the edit cursor would not always flash
2010-08-27 19:46:55 -04:00
Aparajita Fishman and Alexander Ljungberg
0b1b1bbe0b
Fix for issue #817 (Support for alignment and line break mode in NSTextField/CPTextField)
2010-08-11 23:53:34 -04:00
Alexander Ljungberg
e4c79d2101
Closes #809 . End editing of a text field if it is disabled or made uneditable. Manual test included.
2010-08-02 23:13:06 -04:00
Ross Boucher
7c5a07f709
Fix the issue where CPSecureTextField would sometimes cause all other text fields to go crazy afterwards.
2010-06-23 19:58:43 -07:00
Randall Luecke
39ba9b9a4f
setSeletable now works in CPTextField. Closes #690
2010-06-06 16:26:51 -05:00
Francisco Ryan Tolmasky I
ae47509aa7
Add convinience methods for dealing with multiple objects and controls.
...
Reviewed by me.
2010-04-27 01:04:46 -07:00
Alexander Ljungberg and Ross Boucher
a7021e6b66
Fixed a parameter type typo.
2010-04-21 15:48:47 -07:00
Scott Kyle and Ross Boucher
5d3eae9022
deleteBackwards: => deleteBackward:
2010-03-22 14:30:48 -07:00
Randall Luecke
119c950b53
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-05 23:39:31 -05:00
saikat and Ross Boucher
9537a62ab1
Fixes calling selectText in the text field's delegate's controlTextDidFocus: method.
2010-03-05 10:49:23 -08:00
klaaspieter and Randall Luecke
440eed77cf
Merge commit 'klaaspieter/outlineview' into outlineview
...
Conflicts:
AppKit/CPDragServer.j
AppKit/CPTableView.j
Tests/Manual/TableTest/AppController.j
2010-03-05 02:40:47 -05:00
Ross Boucher
1328bc732f
Move around some imports and constant declarations.
2010-02-17 16:29:57 -08:00
Francisco Ryan Tolmasky I
bc53288fca
Fix for failing CPAttributedString test.
...
Reviewed by me.
2010-02-13 16:14:18 -08:00
Ross Boucher
0e558d54e5
Move CPControl constants to that file (from CPTextField).
...
Respect line break mode in NSControl nib2cib.
Closes #420 .
2010-02-12 21:16:44 -08:00