Antoine Mercadal
71bfe4dd44
Merge pull request #2176 from Dogild/CPView-addSubview
...
Fixed: Methods viewDidMoveToSuperview viewDidMoveToWindow viewWillMoveToSuperview viewWillMoveToWindow not called as in Cocoa
2014-09-24 12:22:07 -07:00
Antoine Mercadal
5bc44e7190
Merge pull request #2210 from Dogild/CPDatePicker-action
...
Fixed: CPDatePicker send an action with the methods setObjectValue: and setDateValue: [+1]
2014-09-24 12:04:13 -07:00
Antoine Mercadal
84c1b92fdf
Merge pull request #2207 from cacaodev/bindings-issue#2199
...
Fix bindings memory leak, avoid incompatible bindings
2014-09-24 11:57:26 -07:00
Alexandre Wilhelm
be6e222d8d
Fixed: memory leak in CPColorWell
2014-09-24 10:14:38 -07:00
Antoine Mercadal
ca8a70a1ee
Merge pull request #2217 from Dogild/SelectedThemeStateTableView
...
Fixed: CPThemeStateSelectedDataView still set when removing a view
2014-09-19 13:10:31 -07:00
Alexandre Wilhelm
903cc8ee83
Fixed: CPThemeStateSelectedDataView still set when removing a view
...
Previously, when removing a view from a CPTableView, the themeState CPThemeStateSelectedDataView wasn't unset. Now it does.
2014-09-19 09:59:56 -07:00
Antoine Mercadal
b9b396a279
FIXED: using setHidden: for a button in buttonbar was not working
...
Previously, CPButtonBar was not updating its layout after changing the visibility of its buttons.
This patch adds makes CPButtonBar observersing the buttons and relayout if the visibility of one button is updated.
2014-09-12 14:42:27 -07:00
cacaodev
a2755221d0
The cocoa behavior is:
...
Exclusive bindings are impossible in IB
Possible in code (tested with segmented control and selectedIndex & selectedTag) but then you get unexpected behavior. A segment can be selected after a click and then
changes to another segment.
After this commit, extra exclusive bindings are just ignored and we warn about it.
2014-09-12 22:33:50 +02:00
Alexandre Wilhelm
83ec89fa20
Fixed: CPDatePicker send an action with the methods setObjectValue: and setDateValue:
...
Previously, the CPDatePicker sent an action to the target when the method setObjectValue: and setDateValue were called.
Now it sends the action only when the user makes an action.
Fixed #2206
2014-09-10 12:54:16 -07:00
cacaodev
68b193a782
NEW: bind:toObject: ... now checks if another binding mutually exclusive is already binded. Throws an exception if this is the case.
...
Controls can implement -isExlusiveBinding: to determine if bindings are exclusive. Defaults to NO.
Exclusive bindings are mainly CPSelectedIndexBinding | CPSelectedTagBinding | CPSelectedValueBinding
2014-09-09 20:31:15 +02:00
cacaodev
e051d02ad3
FIXED : CPBinder subclasses were keeping references to the source object in a class var.
...
This could cause memory leaks and was unnecessarily verbose.
CPPopUpButton , CPRadio and CPSegmentedControl now use a generic CPBinder method for searching the binder involved when the control is asked to reverse set the binding, typically after a user interaction.
Fixes #2199
TODO: prevent user to bind multiple selection bindings when these bindings are exclusive.
2014-09-06 20:35:41 +02:00
cacaodev
a3796fe128
Added private method to CPBinder: + (void)_reverseSetValueFromExclusiveBinderForObject:(id)anObject
...
Usage: when a control is known to have exclusive bindings (like selected index/tag/value), use this method when
you don't know the binding name and want to send values to the binded object (via reverseSetValueFor:).
In CPBinder binderMap, picks the first binder matching the receiver class or subclass.
2014-09-06 20:22:51 +02:00
Alexandre Wilhelm
aded1dd4da
Merged: manual merged
2014-09-05 13:00:48 -07:00
Antoine Mercadal
d92cc0f365
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2014-09-04 18:18:29 -07:00
Antoine Mercadal
a5e39d1db3
Revert "Merge pull request #2158 from mrbannon/master"
...
This reverts commit 228a95f776 , reversing
changes made to cf93b72edd .
2014-09-04 18:17:15 -07:00
Antoine Mercadal
7052ce9e63
Merge pull request #2196 from Dogild/BackSpaceTextField
...
Fixed: backspace on a none editable/enable field trigger the browser's page back button
2014-09-04 18:06:14 -07:00
Alexandre Wilhelm
8d036ab1d4
Fixed: backspace on a none editable/enable field trigger the browser's page back button
...
Previously, when hitting the backspace key on a none editable/enable field, this triggered the browser's back button.
Now it does not anymore.
All credits for @apajarita
Fixed #2189
2014-09-04 17:44:29 -07:00
Antoine Mercadal
48276f989f
Fixed: - (CGSize)sizeWithFont:(CPFont)aFont inWidth:(float)aWidth adjust +1 to the computed size
...
The width computing of a string is always a little random, and that led to truncated labels. This patch adds
a pixel in width in order to fix any rounding errors.
2014-09-04 17:35:03 -07:00
Antoine Mercadal
57f2d3e26a
Revert "Merge pull request #2152 from daboe01/Fix-for-missing-backgroundcolor-support-textfield"
...
This reverts commit 5c193f49df , reversing
changes made to 5b2ef77c2c .
2014-09-04 14:34:09 -07:00
Alexandre Wilhelm
c4924e4005
Fixed: typo
2014-09-04 14:30:40 -07:00
Antoine Mercadal
5c193f49df
Merge pull request #2152 from daboe01/Fix-for-missing-backgroundcolor-support-textfield
...
FIXED: CPTextField's setTextFieldBackgroundColor: has not effect
2014-09-04 14:05:21 -07:00
Antoine Mercadal
5b2ef77c2c
Merge pull request #2195 from Dogild/BackgroundSizeFrameSize
...
Fixed: CSS style background-size doesn't change its value when changing a frameSize
2014-09-04 14:04:42 -07:00
Antoine Mercadal
371b660b33
Merge pull request #2072 from mrcarlberg/fix_accessors_in_categories_fails
...
Fixed: Ivars with accessors in a Category failed with duplicate ivar error
2014-09-04 14:02:53 -07:00
Antoine Mercadal
228a95f776
Merge pull request #2158 from mrbannon/master
...
Fixed : #2157 - fixed issue with InvalidStateError when using CPURLConnection in IE11
2014-09-04 13:59:13 -07:00
Antoine Mercadal
cf93b72edd
Merge pull request #2173 from daboe01/Fixed--collectionViewDidChangeSelection
...
Fixed: support for outdated collectionViewDidChangeSelection delegate method
2014-09-04 13:57:39 -07:00
Antoine Mercadal
90c60cc5e4
Merge pull request #2184 from daboe01/patch-1
...
Fixed: typo in scrollRectToVisible: documentation
2014-09-04 13:56:26 -07:00
Antoine Mercadal
e79ab4f47a
Merge pull request #2190 from Dogild/text-ColorDatePicker
...
Fixed: wrong text-color for CPDatePicker
2014-09-04 13:55:32 -07:00
Antoine Mercadal
4e946cbb27
Merge pull request #2185 from daboe01/backport-closebutton-aristo
...
Fixed: Aristo1 close button of inactive windows looks like as in active windows
2014-09-04 13:55:11 -07:00
Antoine Mercadal
d5c5070e59
Merge pull request #2191 from t00f/fix#2182
...
Fixed truncated CPRadio / CPRadioGroup. #2182
2014-09-04 13:54:47 -07:00
Antoine Mercadal
50b3aabb76
Merge pull request #2192 from ratijas/master
...
-setFloat:forKey: @selector(aValue) -> @selector(floatValue)
2014-09-04 13:54:14 -07:00
Antoine Mercadal
b2fd84192b
Merge pull request #2193 from Dogild/DatePickerTableView
...
Fixed: CPDatePicker textual and graphical doesn't work in a CPTableView
2014-09-04 13:53:52 -07:00
Alexandre Wilhelm
1a7f7cb197
Fixed: CSS style background-size doesn't change its value when changing frameSize
...
Previously, when changing the frameSize of a CPView, the style background-size wasn't changed with.
This raised issue with threePartImage.
Fixed #2187
2014-09-04 13:42:25 -07:00
Alexandre Wilhelm
ae5b3c4c2d
Fixed: CPDatePicker textual and graphical doesn't work in a CPTableView
...
Previously, when using a textual or graphical CPDatePicker in a CPTableView Cappuccino crashed.
This PR fix this issue by adding the subviews of a CPDatePicker in the method layoutSubviews instead of in the initialization.
This PR add another feature on the graphical CPDatePicker, the button next and previous month are now in the mode continuous as in Cocoa.
2014-09-03 16:09:58 -07:00
ratijas
06240d1183
-setFloat:forKey: @selector(aValue) -> @selector(floatValue)
2014-09-03 16:08:21 +00:00
Christophe Serafin
f3b3d8d759
Test: Update CPControlSize and Nib2CibAlignment tests to show CPRadioGroup truncated fix.
...
It removes unuseful grid image and adds CPRadio and CPRadioGroup into CPControlSize and Nib2CibAlignment tests.
2014-09-02 17:45:14 -07:00
Christophe Serafin
8420f6ccfe
Fixed: CPRadioGroup were truncated
...
Since PR #2170 , CPRadioGroup were truncated because they are specific components translated into a NSMatrix (CPView) object.
This fix sets CPRadio controlSize according to xCode value and uses its frame adjustment to adjust CPRadio inside a CPRadioGroup.
2014-09-02 17:39:33 -07:00
Alexandre Wilhelm
f007ecf6c5
Fixed: wrong text-color for CPDatePicker
...
Previously the color of a CPDatePicker wasn't black as a CPTextField
Fixed #2188
2014-09-02 13:17:07 -07:00
daboe01
758a023267
style
2014-08-31 21:21:42 +02:00
daboe01
fe6a576d84
add special close button for inactive windows
2014-08-31 21:16:36 +02:00
daboe01
d4f2d99a6b
Fixed: typo in scrollRectToVisible: documentation
2014-08-31 13:48:34 +02:00
Antoine Mercadal
cb390325a6
Merge pull request #2170 from t00f/themeable-rule-editor
...
ControlSize management and CPRuleEditor/CPPredicateEditor alignments
2014-08-29 10:11:05 -07:00
Antoine Mercadal
1922ef974b
Merge pull request #2180 from kevin-xu/kevin-xu-branch
...
Fixed: bootstrap.sh cannot filter the OpenRDK version key out correctly.
2014-08-28 22:42:01 -07:00
Alexandre Wilhelm
de495aa1c5
Fixed: _removeObservers called in orderFront, we don't need this as addObservers and removeObservers work with boolean to check if the observers are set or not
2014-08-28 22:28:41 -07:00
Alexandre Wilhelm
cf0b4c8f03
Fixed: added CPView test for the method addSubview
2014-08-28 22:23:20 -07:00
Alexandre Wilhelm
aa4a4b07d8
Fixed: method viewWillMoveToWindow and viewDidMoveToWindow not called when when adding a view to a view without a window where the previous superview had a window
2014-08-28 22:22:50 -07:00
kevin-xu
75a4d8a2b9
Fixed: bootstrap.sh cannot filter the OpenRDK version key out correctly.
...
When running ./bootstrap.sh, it will print the error message:
"./bootstrap.sh: line 138: [: too many arguments"
This fix correct it by filtering out the OpenRDK Runtime Environment line.
Fixes #2179
2014-08-28 20:14:35 -07:00
Antoine Mercadal
b92214461e
FIXED: Some tooltips was truncated
...
This patch adds a small size adjustment when we compute the size of the
tooltip. It seems to fix all truncated tooltips problem.
2014-08-28 19:02:22 -07:00
Antoine Mercadal
3f4ba87079
FIXED: Tooltip content alignement was mistakely set to be justified
...
This patch ensure the tooltip content is left aligned correctly
2014-08-28 18:30:55 -07:00
Antoine Mercadal
f1cfa14750
FIXED: buttons in CPButtonBar were never removed from the CPButtonBar
...
Previsouly, layoutSubview was layouting the visible buttons, but it was not removing them from
the buttonbar
2014-08-28 17:26:22 -07:00
daboe01
b24f5b6ad6
fixed unit test
2014-08-24 14:12:44 +02:00