Alexander Ljungberg
1c0f679f50
Refs #1245 . Fixed: setToolTip: belongs in CPView, not CPControl.
2011-05-11 21:36:49 -04:00
Alexander Ljungberg
345d48e224
Refs #1245 . Make CPToolTip and CPAttachedWindow internal since they're not part of the Cocoa API. Refactored some code from CPControl to CPToolTip.
2011-05-11 20:35:13 -04:00
Alexander Ljungberg
bb97c107c9
Refs #1245 . Minor clean up.
2011-05-11 20:02:08 -04:00
Antoine Mercadal
3ddf6031fb
Support for tooltips on CPControls
2011-04-26 14:46:30 +02:00
Alexander Ljungberg
11ab9a77ad
Minor performance improvement to CPContinuouslyUpdatesValueBindingOption.
2011-03-28 20:12:32 -04:00
Alexander Ljungberg
d3836c2a52
Global fixes.
2011-01-24 13:22:07 -03:00
Alexander Ljungberg
ea8c29356d
More typo and formatting fixes.
2011-01-24 13:17:48 -03:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Randall Luecke
2aa806e52a
Docs for CPControl.
2011-01-24 01:18:40 -05:00
Francisco Ryan Tolmasky I
688aed72cb
Fix for CPPopUpButton's encoded prior to CPResponder/menu change.
...
Reviewed by me.
2011-01-18 23:09:43 -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
Klaas Pieter Annema
80ec35fd0a
Merge branch 'hover-states'
2010-11-17 10:11:11 +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
Aparajita Fishman
0a752be53c
Moved methods defined by BRIDGE into real method declarations so they will be included in doxygen docs, lint cleanup.
2010-09-30 08:37:36 -04:00
Klaas Pieter Annema
c481d55976
fix hovered state being removed when the mouse leaves a subview of a control
2010-09-17 13:21:54 +02:00
Klaas Pieter Annema
7aa7d61984
Implement hover states.
...
- Set CPWindow _acceptsMouseMovedEvents default to YES
- Add CPThemeStateHovered to CPTheme
- Add hovered logic to CPControl is hovered
2010-09-17 12:06:01 +02:00
Alexander Ljungberg
9b8cadb91c
Fixed some additional accidental globals. Very addictive this.
2010-09-15 17:41:58 -04:00
Aparajita Fishman and Alexander Ljungberg
18696e6bc2
Ensure CPControl -performClick unhighlights the button if the action throws.
2010-08-27 15:58:35 -04:00
Klaas Pieter Annema and Ross Boucher
78fd972312
only reverse set the binding on end editing
2010-07-26 22:48:40 -07:00
Ross Boucher
19d5431f60
Revert "slightly delay triggering the action in CPControl performClick: to make sure the click is always visible"
...
This reverts commit eaf4fa240f .
2010-06-16 08:54:30 -07:00
Klaas Pieter Annema
eaf4fa240f
slightly delay triggering the action in CPControl performClick: to make sure the click is always visible
2010-06-16 14:16:17 +02:00
Randall Luecke
d5ee07fe1b
CPControl should not be allowed to performClick: if it's disabled.
2010-06-02 20:43:09 -05:00
Ross Boucher
8fd564b034
Minor cleanup to the current test cases.
2010-05-28 10:54:45 -07:00
Ross Boucher
7c3f94dd87
Merge remote branch 'klaaspieter/bindings-fixes' into bindings
...
Conflicts:
AppKit/CPControl.j
Foundation/CPValueTransformer.j
2010-05-28 10:23:47 -07:00
Klaas Pieter Annema
084da71420
exposed more bindings on CPControl
2010-05-27 15:22:40 +02:00
Alexander Ljungberg
ef9d2d1775
Reverse update value binding when control editing stops, not only when the action fires. This causes tabbing out of a text field to update the binding source. Based on the description of the bindings option NSContinuouslyUpdatesValueBindingOption this is the right thing to do: if NSContinuouslyUpdatesValueBindingOption is on, update on every character; "otherwise the update is made only when the user interface item resigns as the responder."
2010-05-26 19:51:51 -04:00
Alexander Ljungberg
be13a14330
Hack to make [textField bind:CPValueBinding ...] work. Without this, any observed change leads to a [textField setValue:X forKey:"value"] which in turn leads to a direct ivar access changing the value in textField._value. This means the text field has no idea the value changed and it doesn't update to show the new text. I'm not sure what the right solution should be here. It looks like _replacementKeyPathForBinding should play into this and change the end result to [textField setValue:X forKey:"objectValue"] which would work fine. But currently _replacementKeyPathForBinding applies to the observed key path, not the bound one.
2010-05-26 19:51:28 -04:00
Klaas Pieter Annema
51c90223fc
exposed enabled binding on CPControl and made sure CPControl's bindings are only exposed once
2010-05-26 16:44:55 +02:00
Klaas Pieter Annema
6f0ca9d94c
Merge branch 'master' into bindings
...
Conflicts:
AppKit/CPTableView.j
AppKit/_CPCornerView.j
Foundation/CPArray.j
Foundation/CPKeyValueCoding.j
Foundation/CPKeyValueObserving.j
2010-04-15 10:57:46 +02:00
Ross Boucher
91681d7846
Move more constants to CPControl.j
2010-02-17 17:06:09 -08:00
Ross Boucher
1328bc732f
Move around some imports and constant declarations.
2010-02-17 16:29:57 -08:00
Ross Boucher
02cdee6c75
Fix a missing import.
2010-02-17 16:08:11 -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
luddep and Ross Boucher
fe2599eb35
buttons now momentarily go the the pressed state when clicked programmatically. Closes #187
2010-01-07 22:17:05 -08:00
Ross Boucher
648fbe1b10
Add sendsActionOnEndEditing to the CPCoding methods for CPControl
2009-12-18 15:54:44 -05:00
Ross Boucher
f612683dfb
Taking this out for now.
2009-11-17 10:26:58 -08:00
Ross Boucher
11e6ad2153
Adding a simple way to set a function for the target/action
2009-11-17 09:28:44 -08:00
Ross Boucher
ba84e6d3e2
Support for sendsActionOnEndEditing in CPControl. Only works for textfields right now.
2009-10-28 00:12:03 -07:00
cacaodev and Ross Boucher
5b531b2005
Improved autoresizing mechanism for attached sheets
2009-10-08 12:13:55 -07: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
Ross Boucher
417b5c8b97
Merge branch 'master' into bindings
2009-09-20 18:14:17 -07:00
Ross Boucher
7aa58fa98a
Include default methods for nextState and setState
2009-09-12 20:48:44 -04:00
lowell vizon and Francisco Ryan Tolmasky I
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Francisco Ryan Tolmasky I
4ad2c2221f
Merge branch 'master' into bindings
...
Conflicts:
AppKit/CPControl.j
AppKit/CPSlider.j
Foundation/CPArray+KVO.j
2009-07-22 16:41:58 -07:00
Francisco Ryan Tolmasky I
8b25240d04
Cleaned up CPControl ephemeral views code and got rid of some dead code in cib logic.
...
Reviewed by me.
2009-06-10 11:49:16 -07:00
Ross Boucher
7f60bdec4f
Update the documentation of methods define with the BRIDGE macro
2009-06-01 10:01:44 -07:00
Francisco Ryan Tolmasky I
6d8e1705b8
Cleaned up button's sizeToFit.
...
Reviewed by me.
2009-05-19 12:02:10 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00