daboe01
8684455ea5
make canvas sizing validity detection more robust
2014-08-04 13:22:38 +02:00
Christophe Serafin
12c427a9cf
enable CPControl to use setControlSize. Created an example with CPStepper
2014-08-01 16:57:02 -07:00
daboe01
7cbb103376
fix selecting last newline error
2014-07-31 20:35:29 +02:00
daboe01
d686a0dadf
reverseSetValuesFor: handle multiple selection
2014-07-30 21:09:41 +02:00
Antoine Mercadal
eb186f550c
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2014-07-30 11:32:59 -07:00
Antoine Mercadal
01b631aea6
FIXED: Popover not showing in correct platform window.
...
This was fixed a month ago, but additional later commits added a dumb test preventing this to work correctly
2014-07-30 11:31:54 -07:00
Aparajita Fishman
293114f1a0
Fixed: delete methods erased entire field
...
Previously, the deleteForward:, deleteBackward: and delete: methods in CPTextField called setStringValue, which would consult a formatter, and if the formatter failed all of the text would be deleted.
Now the code has been refactored such that when one of the delete methods is invoked via a key event, the formatter is not used and the DOM event is used, which results in the expected behavior.
A bug in checking the selected range was also fixed in deleteForward:.
The CPFormatter test was updated with buttons to call the delete methods directly to ensure they work correctly when not invoked from a key event.
Closes #1997
2014-07-29 23:32:14 +04:00
Antoine Mercadal
20b92c03cb
Merge pull request #2161 from Dogild/CPComboBoxDataSource
...
New: added protocol CPComboBoxDataSource
2014-07-29 11:22:37 -07:00
Antoine Mercadal
b6d76eb84e
Merge pull request #2163 from t00f/predicate_editor_with_date
...
set CPDatePicker elements to days, months, year when used within a CPPre...
2014-07-28 17:29:25 -07:00
Alexandre Wilhelm
25bb51f4a3
New: added protocol CPComboBoxDataSource
...
Added protocol CPComboBoxDataSource
2014-07-28 13:38:11 -07:00
Christophe Serafin
4a3f51e550
set CPDatePicker elements to days, months, year when used within a CPPredicateRowTemplate
2014-07-28 12:51:32 -07:00
Ryan Bannon
d629a13499
Fix: https://github.com/cappuccino/cappuccino/issues/2157
...
Possible bug in XMLHTTPRequest. Thanks to hmsimmonds for locating the following:
http://connect.microsoft.com/IE/feedback/details/795580/ie11-xmlhttprequest-incorrectly-throws-invalidstateerror-when-setting-responsetype
https://github.com/enyo/dropzone/issues/179
In short, setting the "withCredentials" flag must be done after open().
2014-07-23 16:58:02 -04:00
Alexander Ljungberg
07c0de71ec
New: support line-by-line scrolling with old scroll wheel devices in Firefox.
...
Without this change, using a traditional scroll wheel mouse with discrete steps would result in very slow scrolling in Firefox.
With this fix we handle these events like in Cocoa: as "[im]preciseScrollingDeltas", which `CPScrollView` in turn knows to apply the configurable line scroll amount for. For backwards compatibility, [event deltaX] and [event deltaY] are premultiplied with a suitable constant, while [event scrollingDeltaX] and [event scrollingDeltaY] show the true values needed.
Browsers other than Firefox seem to always send pixel scrolling information even for old style scrolling devices, at least on the Mac, so are not affected by this change.
Fixes #2013 .
2014-07-23 15:04:07 +01:00
Alexander Ljungberg
7470f4ffcf
New: CPEvent scrollingDeltaX, scrollingDeltaY and hasPreciseScrollingDeltas.
...
Refs #2013 .
2014-07-23 15:00:30 +01:00
Alexander Ljungberg
81f9748313
Merge pull request #2013 from daboe01/fix-scrollwheel-speed-on-firefox
...
Fixed: scroll wheel speed is way to low in firefox [+1]
2014-07-23 13:49:19 +01:00
Alexander Ljungberg
58928a5000
Formatting: CPDateFormatter changes and tests.
...
Refs #2155 .
2014-07-22 12:49:35 +01:00
Alexander Ljungberg
4c44ede945
Merge pull request #2155 from krodelin/CPDateFormatter-emptyLanguages
...
Fixed: CPDateFormatter now works for non-"en" locales [+1]
2014-07-22 12:41:03 +01:00
Alexander Ljungberg
d3c4105429
Formatting recent changes.
2014-07-22 12:09:06 +01:00
daboe01
9cf8ec5dd7
formatting
2014-07-20 19:55:49 +02:00
daboe01
f5187b1533
_characterRangeForUn...: ternary operator
2014-07-20 11:44:03 +02:00
daboe01
6230a65a79
removed useless unit test
2014-07-20 11:24:22 +02:00
Alexandre Wilhelm
f13c96839e
Fixed synthax in CPTextView
2014-07-19 19:07:08 -07:00
Alexandre Wilhelm
776f68c9dd
Fixed style in CPTextView
2014-07-19 18:46:25 -07:00
Alexandre Wilhelm
714ed89a4c
Merged
2014-07-19 16:58:59 -07:00
Antoine Mercadal
ed307adb22
Merge pull request #2135 from Dogild/TokenFieldDelegate
...
Fixed: unsigned delegate methods of CPTokenField erased by CPTextField
2014-07-18 18:42:49 -07:00
Antoine Mercadal
8001688daf
Merge pull request #2076 from cacaodev/issue2039
...
FIXED: Error when binding several objects to the same objectController [+1]
2014-07-18 18:42:18 -07:00
Antoine Mercadal
4c0687b9a5
Merge branch 'fix-menu-enabled-bindings' of https://github.com/daboe01/cappuccino into daboe01-fix-menu-enabled-bindings
2014-07-15 10:22:46 -07:00
Alexandre Wilhelm
33043dd8af
Fixed: removed unsued code in CPTokenFieldTest
2014-07-13 21:25:35 -07:00
daboe01
0b2b29b7cf
removed unit test
2014-07-12 14:09:59 +02:00
Alexandre Wilhelm and daboe01
a41c0a0519
Fixed: Update test CPTextViewCibTest
2014-07-12 14:03:32 +02:00
Alexandre Wilhelm and daboe01
026e28114e
Added : added default NSTextView for nib2cib
2014-07-12 14:03:32 +02:00
Alexandre Wilhelm and daboe01
0840719289
Added: added CPTextViewCibTest
2014-07-12 14:03:32 +02:00
daboe01
aad875e113
make the plain look as white as in cocoa
2014-07-12 14:03:32 +02:00
Alexandre Wilhelm and daboe01
6b059d94ba
Fixed: reduce size of the test of CPTextView
2014-07-12 14:03:32 +02:00
Alexandre Wilhelm and daboe01
39eeaea7e7
Fixed: circular import with CPText
...
Previously CPText was in CPTextView.j, now it is in CPText.j.
It fixes some other circular import as well, fixes some global var to import.
Fixed some code style.
2014-07-12 14:03:32 +02:00
daboe01
81a8e91180
fix cut with empty selection
2014-07-12 13:58:39 +02:00
Alexandre Wilhelm and daboe01
4fc6f6f59b
Fixed: refactoring delegate methods
2014-07-12 13:58:39 +02:00
Alexandre Wilhelm and daboe01
dd2f573f27
Fixed: changed a bit the readability of the file
2014-07-12 13:58:39 +02:00
Alexandre Wilhelm and daboe01
ff8ddc431b
New: Added protocol CPTextViewDelegate
2014-07-12 13:58:38 +02:00
daboe01
d703945aa3
corrected inheritance
2014-07-12 13:58:38 +02:00
Alexandre Wilhelm and daboe01
f4aba5f9ea
New: Added protocol CPTextDelegate
2014-07-12 13:58:38 +02:00
Alexandre Wilhelm and daboe01
393113c3e3
Fixed: capp_lint
2014-07-12 13:58:38 +02:00
Alexandre Wilhelm and daboe01
f2db18820a
Fixed: CPLog.error is used instead of abstract exception
2014-07-12 13:58:38 +02:00
daboe01
e04d300e18
next try
2014-07-12 13:58:38 +02:00
daboe01
685f836f41
another try
2014-07-12 13:58:38 +02:00
daboe01
d4f5ad641a
more dom protection
2014-07-12 13:58:38 +02:00
daboe01
007d437ee8
dom projection
2014-07-12 13:58:38 +02:00
daboe01
00e380e8d8
more dom protection
2014-07-12 13:58:38 +02:00
daboe01
56749d9494
protecting document access with PLATFORM(DOM)
2014-07-12 13:58:38 +02:00
daboe01
cf10d37c90
automated tests and cleanup
2014-07-12 13:58:38 +02:00