Stefan Wallström
2bf2442096
Fixed: Using keyboard navigation in empty CPCollectionView threw exception.
2013-03-10 17:38:08 +01:00
Christophe Serafin
ef4ba78ab7
removed extra blank and added a blank line above if condition
2013-03-10 17:05:53 +01:00
Christophe Serafin
85cb1b7a76
removed an extra blank and changed _shouldReorderColumn format
2013-03-10 17:04:45 +01:00
Christophe Serafin
fe260a85f5
added _lastDragDestinationColumnIndex to call delegate method only once
2013-03-10 16:41:37 +01:00
Alexander Ljungberg
f201ab0721
New: update operators on references, such as @deref(x)++.
...
This fix implements support for both prefix and postfix update operators on a dereference.
2013-03-10 14:02:37 +00:00
Alexander Ljungberg
767a7a7177
Test: expand CPNumberFormatter test to be more complete.
...
- Cover the formatting of @"" to nil.
- Check error messages by reference.
- Check output values.
- use @ref() instead of hand coded AT_REF.
Refs #1829 .
2013-03-10 13:31:56 +00:00
Alexander Ljungberg
39b49d47f9
Fixed: CPNumberFormatter formatted @"" as any number.
...
Without this fix, `- CPNumberFormatter getObjectValue:forString:errorDescription:` would return `YES` for string @"", like if it was properly converted to an object value, but then actually leave object value unchanged.
With this fix object value is set to nil like in Cocoa.
Refs #1829 .
2013-03-10 13:30:35 +00:00
Alexander Ljungberg
c550cd7afb
New: optimise CPArray enumerateObjectsWithOptions:usingBlock:.
2013-03-10 13:09:24 +00:00
Alexander Ljungberg
f4096b94a7
New: use @ref and @deref instead of Ref.h throughout Cappuccino.
2013-03-10 13:08:34 +00:00
Alexander Ljungberg
9b4c126534
Unit test @ref and @deref.
2013-03-10 12:17:59 +00:00
Alexander Ljungberg
34faf362d1
New: @ref and @deref in Objective-J 2.0.
2013-03-10 12:17:43 +00:00
aparajita
1a24e954f9
Merge pull request #1838 from ahankinson/fix-issue1284
...
Docs: path to objj mode was wrong in docs
Closes #1284
2013-03-09 19:45:51 -08:00
Aparajita Fishman
eb6cdfe97c
Typo: fixed spelling in comment
2013-03-09 14:35:16 -05:00
Aparajita Fishman
a01de54b65
Fixed: optimize access to object property
...
Accessing a property via dot notation is faster than indexing via a string.
2013-03-09 14:34:58 -05:00
aparajita
5c7e26c176
Merge pull request #1826 from stewa/non-string-markers
...
New: use dedicated class instead of CPString for selection markers
Previously, selection markers were strings, which allowed the possibility that user data could be mistaken for a selection marker.
With this commit, selection markers are global instances of a private class, removing the possibility of clashes with user data.
2013-03-09 08:59:37 -08:00
aparajita
4da1c67d18
Merge pull request #1837 from BlairDuncan/keyViewLoopInfinateLoopFix
...
Fixed: views from other windows cannot be next/previous key views
Previously, a view from another window could be set as the next/previous key view, which would result in unexpected behavior, including an infinite loop.
This commit ensures the proposed next/previous view belongs to the same window as the view to which it will be chained.
2013-03-09 08:17:52 -08:00
aparajita
f3d0cdbddc
Merge pull request #1836 from kerusan/cpruleeditor_tooltip_localization
...
Fixed: CPRuleEditor tooltips were not localized
Tooltip text was hardcoded in English. Now they use the localizer.
2013-03-09 07:56:44 -08:00
Andrew Hankinson
5fd241f7d7
Fix #1284 : Update Emacs documentation
...
Small fix to update documentation for emacs. Fixes #1284 .
2013-03-08 23:04:23 -05:00
Christophe Serafin
159941696d
changed condition order for optimization
2013-03-08 19:35:10 +01:00
Blair Duncan
7fab8d9782
don't allow views from another window to be next/previouskeyViews
2013-03-08 12:27:19 -05:00
Christophe Serafin
152fd66bbe
fixed reordering column with a restriction on a targeted column
2013-03-08 18:11:27 +01:00
Christophe Serafin
ae4c77a6d4
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-03-08 16:53:07 +01:00
Andrew Hankinson and Aparajita Fishman
5fac631f6f
New: minimum/maximum support for CPNumberFormatter
...
Previously, minimum and maximum were not supported in CPNumberFormatter.
This commit adds support for these in IB and via code. Updated unit tests included.
Fixes #1829
2013-03-08 09:30:31 -05:00
cacaodev and Aparajita Fishman
72c277d9ee
New: CPSegmentedControl segment selection bindings support
...
This commit adds support for the segment selection bindings: selectedIndex, selectedLabel, and selectedTag.
Sample app included.
2013-03-08 08:54:00 -05:00
Aparajita Fishman
0fdf648e1b
Formatting: added missing whitespace
2013-03-08 08:35:16 -05:00
aparajita
ba1fc13eed
Merge pull request #1827 from stewa/issue1499-simple
...
Fixed: null placeholder is set correctly when using bindings
2013-03-08 05:32:01 -08:00
Kjell Nilsson
197decc842
Changed tooltip word to lowercase to follow other tooltip formatting
2013-03-08 13:47:46 +01:00
aparajita
9e5aa39781
Merge pull request #1835 from BlairDuncan/undoManagerFix
...
Fixed: initialize _undoCount to 0 so comparison tests work correctly
2013-03-08 04:19:22 -08:00
Kjell Nilsson
c381672aee
Added localization of tooltips with the standard localizer
2013-03-08 09:52:55 +01:00
Blair Duncan
62670a4fa4
improved as per aparajita
2013-03-07 22:18:59 -05:00
Aparajita Fishman
4469046b3b
Revert "Fix #357 : Fix resizeWithOldSuperviewSize to work more like Cocoa"
...
This reverts commit 4605130a53 , which is breaking sheets.
2013-03-07 16:49:25 -05:00
Blair Duncan
7d51a34d11
fix for undoManager isUndoRegistrationEnabled
2013-03-07 16:21:37 -05:00
Stefan Wallström
5cbe94ba66
CPTextField: Optimization: Only restore null placeholder when setting null values through binders.
2013-03-07 20:32:57 +01:00
Antoine Mercadal
f690d672a2
Merge pull request #1832 from mrcarlberg/compiler_build_capital_j_extension
...
Fix #1822 : Will compile or issue correct error message when wrong case is used...
2013-03-07 11:20:05 -08:00
Aparajita Fishman
cdb9777e96
Fixed: "Remove" button did not move with window resize
...
In the Manual/TableTest/DataView test app, the remove button did not pin to the right edge of the window when it resized.
2013-03-07 12:16:22 -05:00
aparajita
2bc5efe641
Merge pull request #1815 from cacaodev/CPTableView-issue1814
...
CPTableView fix for #1814 .
2013-03-07 09:13:33 -08:00
Martin Carlberg
5481ce25b2
Fixed: Will compiler or issue correct error message when wrong case is used in filename on @import statements
2013-03-07 17:48:21 +01:00
Stefan Wallström
bd269501ac
Fixed parameter type for _placeholderForMarker:
2013-03-07 12:49:19 +01:00
Stefan Wallström
455ff57eec
Fixed return type for _placeholderForMarker:
2013-03-07 12:39:04 +01:00
Stefan Wallström
51e682335b
Use UID instead of hash.
2013-03-07 12:37:35 +01:00
Alexander Ljungberg
2ca20dea23
Merge pull request #1828 from ahankinson/cpdecimal-allow_leading_zeros
...
Allow CPDecimal to handle decimal numbers with leading zeros
2013-03-07 10:56:21 +00:00
Andrew Hankinson
7bef84e4e9
Allow CPDecimal to handle decimal numbers with leading zeros
...
Without this fix, CPDecimal will return NaN for numbers that have leading zeros, e.g., 0123.
This fix changes the matching regex to allow leading zeros to pass. This is then converted to a proper number later on, e.g., "0123" => 123. This is in line with Cocoa behaviour.
This commit also includes updated unit tests.
2013-03-07 00:26:02 -05:00
Stefan Wallström
11c6b667fb
Fixed: Wrong placeholder string in CPTextField when using bindings
2013-03-06 20:44:09 +01:00
Stefan Wallström
262bd5b7c1
Use dedicated class, _CPStateMarker, instead of CPString for selection markers.
2013-03-06 19:30:17 +01:00
Aparajita Fishman
e2580bda05
Fixed: objj_backtrace_print is not available in release frameworks
...
objj_backtrace_print is only available in debug frameworks. Previously we were not ensuring that objj_backtrace_print was available, which caused an error when running with release frameworks.
Now objj_backtrace_print is checked for availability.
2013-03-06 10:30:54 -05:00
Aparajita Fishman
3364733bd6
Typo
2013-03-06 10:19:26 -05:00
Aparajita Fishman
7461407140
Merge branch 'refs/heads/CPDictionary_deprecate_nil'
2013-03-06 08:53:44 -05:00
Martin Carlberg and Aparajita Fishman
0b1805d96f
Fixed: Temporary removed test case asserting throw when creating CPDictionary with nil object
2013-03-06 07:57:23 -05:00
Martin Carlberg and Aparajita Fishman
cfe099bb30
Fixed: Broken test case
2013-03-06 07:57:18 -05:00
Martin Carlberg and Aparajita Fishman
b98b301089
Fixed: Removed deprecated warning when creating CPDictionary with nil object
2013-03-06 07:56:50 -05:00