David Richardson
1a9a42ff54
Replace #pragma mark with // MARK:
...
Replace objc directive with native Javascript version // MARK: to facilitate elimination of preproccsing pass.
2026-07-21 15:15:53 -06:00
daboe01
7ee4003840
fixed: prevent timezone shift from reverting month navigation in _CPDatePickerCalendar
2026-02-01 19:29:59 +01:00
daboe01
9dfaf293f2
Removed: hardcoded KeyCodes as they are unreliable
2026-01-29 19:12:17 +01:00
daboe01
fffcc85486
fixed: cpdatepicker relied on deprecated keycode property
2026-01-29 19:06:35 +01:00
daboe01
16d8780812
fixed: keyview loop trap
2026-01-28 19:38:29 +01:00
daboe01
41648b8605
Fixed: CPDatePicker tab navigation when elements are hidden
2026-01-28 07:26:02 +01:00
daboe01
29502d10eb
formatting
2023-12-21 19:59:38 +01:00
daboe01
fb9223c6c3
fixed: poor user experience when entering dates that are too high for the current month
2023-02-25 21:30:42 +01:00
Didier Korthoudt and GitHub
35420732d1
Fixed: Modern Cocoa behavior and Aristo3 CSS theme ready for CPDatePicker ( #2935 )
...
Also, clock hands can be manipulated
2020-11-06 16:27:07 +01:00
daboe01 and GitHub
5bb338d6ec
New: CPTextField now supports the CPEditorRegistrationProtocol ( #2169 )
2020-03-11 10:30:00 +01:00
daniel
8e7f201ca8
Formatting: Removed redundant semi-colon in CPDatePicker
2019-03-28 12:49:13 -07:00
Alexandre Wilhelm and GitHub
c9dd1ea71d
Merge pull request #2628 from bedalton/formatting-add-semi-colon-cpdatepicker
...
Formatting: add missing semi-colons to CPDatePicker.j
2018-04-08 11:35:26 -07:00
Alexandre Wilhelm and GitHub
85d3529bc3
Merge pull request #2629 from bedalton/formatting-add-semi-colon-cpdatepickertextfield
...
Formatting: add semi-colon CPDatePickerTextField.j
2018-04-08 11:35:10 -07:00
Alexandre Wilhelm and GitHub
c4fd5e0999
Merge pull request #2645 from bedalton/formatting-add-semi-colons-cpdatepickercalendar
...
Formatting: add missing semi-colons to _CPDatePickerCalendar.j
2018-04-08 11:33:24 -07:00
daniel
e9e2313159
Formatting: add missing semi-colons to CPDatePicker.j
2018-04-03 14:27:07 -07:00
daniel
dbb2f03a43
Formatting: add semi-colon CPDatePickerTextField.j
2018-04-03 14:18:36 -07:00
daniel
ed0dc2d887
Formatting: add semi-colon to _CPDatePickerClock.j
2018-04-03 12:59:51 -07:00
daniel
0a93f2d0b0
Formatting: add missing semi-colons to _CPDatePickerCalendar.j
2018-04-03 12:54:39 -07:00
Martin Carlberg
fc411c5c1c
Fixed: Cache ThemeAttribute
...
Conflicts:
AppKit/CPTheme.j
2015-10-23 10:18:03 +02:00
Alexandre Wilhelm
1f983db47c
Fixed: refactoring of the class _CPDatePickerTextField.j. We now use the method called by interpreteKeyEvents instead of handling the key equivalent in performKeyEquivalent
2015-06-29 14:28:28 -07:00
Marek Kresnicki
99df5fadbc
Replaced confusing method _isEnglishFormat with _isAmericanFormat. Removed method was always true for US and GB locale while it shouldn't be.
2015-05-21 15:30:53 +01:00
Alexandre Wilhelm
818c3b6092
Typo in CPDatePicker
2015-02-09 16:46:08 -08:00
Alexandre Wilhelm
6e5dee13e1
Fixed: The CPDatePicker can take invalid date
...
Previously, the CPDatePicker could get an invalid javascript date.
Now it will raise an exception when getting an invalidate date.
2015-02-09 16:44:59 -08:00
daboe01
6c47fc9023
disable forbidden dates
2015-01-15 20:28:46 +01:00
Alexandre Wilhelm
ca1bb8e634
Fixed: compiling warning for the function CGContextDrawImage
2015-01-13 13:24:43 -08:00
Alexandre Wilhelm
31023a1a71
Fixed: warnings when compiling cappuccino
...
Previously, some warnings were raised when compiling Cappuccino.
2015-01-13 11:46:53 -08:00
Antoine Mercadal
05d602c313
Merge pull request #2279 from Dogild/CPDatePickerEnter
...
Fixed: CPDatePicker takes key code CPReturnKeyCode all the time
2014-12-09 18:11:38 -08:00
Antoine Mercadal
e1d92bd630
Merge pull request #2265 from Dogild/FocusRingDatePicker
...
Fixed: CPDatePicker doesn't have a focusRing when editing
2014-12-09 17:42:59 -08:00
Alexandre Wilhelm
9174338140
Fixed: CPDatePicker takes key code CPReturnKeyCode all the time
...
Previously, the CPDatePicker took the key code CPReturnKeyCode all the time. It means, the key event wasn't redistributed to the other component, for example a defaultButton in a window.
Now instead of returning YES, it returns [super performKeyEquivalent:anEvent]
2014-12-09 17:26:02 -08:00
Alexandre Wilhelm
77f962eed4
Style: removed comment in CPDatePicker
2014-11-28 09:58:44 -08:00
Alexandre Wilhelm
ad364b6184
Fixed: CPDatePicker doesn't have a focusRing when editing
...
Previously, the CPDatePicker didn't have a focus ring when an user was editing it.
Now it does. It works for Aristo1 and Aristo2.
Test App in Tests/Manual/CPDatePickerTest
Fixed #2263
2014-11-26 12:04:00 -08:00
Antoine Mercadal
b0a7fe4079
Merge branch 'master' into objj-typedef-and-ivar-checks
...
+ fixed new warnings from master
Conflicts:
Foundation/CPNotificationCenter.j
2014-11-26 12:00:34 -08:00
Antoine Mercadal
f9275a70af
FIXED: New warnings reveleaded by ivar type checking
...
This patch fixes all new warnings
2014-11-06 10:17:05 -08:00
Alexandre Wilhelm
09e3c5ecfc
New: possibility to drag in a textual CPDatePicker
...
Previously it wasn't possible to update the selected element of a textual CPDatePicker when dragging.
Now we can as in Cocoa.
2014-10-28 13:31:27 -07:00
Antoine Mercadal
43f7dcd08f
Merge pull request #2204 from Dogild/CPDatePicker-CPTableView
...
Fixed: CPDatePicker in a CPTableView wrong behavior
2014-09-24 12:27:04 -07:00
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
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
Alexandre Wilhelm
c1e89bd1c3
Fixed: CPDatePicker in a CPTableView wrong behavior
...
Previously, when clicking on a CPDatePicker in a CPTableView, cappuccino didn't select the tableView row firstly.
Now it does as in cocoa.
The stepper still have the same behavior as a CPButton in a CPTableView.
refs #2201
2014-09-05 16:16:46 -07:00
Alexandre Wilhelm
aded1dd4da
Merged: manual merged
2014-09-05 13:00:48 -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
Christophe Serafin
efca50c6ac
fix style
2014-08-22 10:07:29 -07:00
Alexandre Wilhelm
1fcf13d149
Fixed: added optimization for releasing observers
2014-08-20 16:13:59 -07:00
Alexandre Wilhelm
abdf1156d4
Fixed: memory leaks with CPNotifications
...
Previously, when removing a view, Cappuccino didn't clean the notification center. The notification center kept in reference old views.
This PR fix this issue. When a CPView is added to a view, the methods _removeObservers and _addObservers are called. In these both methods we remove and add the observer to the notification center if needed. _removeObservers and _addObservers are called for the view and its subviews. These both methods are called through the method viewWillMoveToSuperview.
When a CPView is removed, we only call the method _removeObservers.
When a CPWindow is closed, we call the method _removeObservers on its contentView.
When a CPWindow is about to be opened, we call the method _removeObservers and _addObservers on its contentView.
Refs #1880
Refs #2024
Test app in Tests/Manual/AttachedSheet2/SheetWindowController.j
2014-08-19 17:45:01 -07:00
Christophe Serafin
712dc493ca
remove CPDateFormater dependancy and CPString convertion
2014-08-12 15:42:03 -07:00
Christophe Serafin
f4fba64ffb
remove test on sendAction
2014-08-12 14:06:37 -07:00
Christophe Serafin
e3ad115698
correction based on primalmotion comments
2014-08-12 13:56:25 -07:00
Christophe Serafin
c078bb04b2
Correction and optimizations based on Alex comments. Fix for CPDatePickerTest
2014-08-12 13:31:22 -07:00
Christophe Serafin
4aaafa6de7
fix CPDatePicker alignment in CPPredicateEditor. fixes #2162
2014-08-07 16:50:23 -07:00
Christophe Serafin
d15a853bf7
enable control size management on CPButton, CPPopUpButton, CPCheckbox, CPDatePicker, CPTexteField, CPStepper
2014-08-07 09:41:43 -07:00
Christophe Serafin
5feac3a7ff
allow using regular, small and mini sizes from xCode and from code using setControlSize method. Available on CPTextField, CPStepper, CPDatePicker only for the moment
2014-08-05 17:34:58 -07:00