Alexander Ljungberg and Stefan Eilers
b6e77f4be3
Fixed: menus not closing on left click.
...
Previously, clicking outside a menu on a control would not close the menu. Also clicking on the menu header again would open a second menu.
This error was caused by the control receiving the click and starting its own tracking, depriving the menu of the mouse up event it was awaiting.
The behaviour to wait for the mouse up was wrong to begin with. Menus should close on mouse down.
This fix closes the menu on left mouse down anywhere but the menu, while still allowing the click to pass through to any control underneath the cursor.
Fixes #1833 .
2013-03-14 13:23:22 +01:00
Alexander Ljungberg
81d0812172
Merge branch 'refs/heads/slevenbits-platform-resize-fix' into slevenbits
2013-03-11 17:49:38 +00:00
Alexander Ljungberg
5f086b11b8
Fixed: platform windows resizable.
...
Without this fix, a platform window could be resized by clicking just under the menu bar and dragging downwards, even that platform windows are supposed to be the size of the browser window by definition.
2013-03-11 17:40:11 +00:00
Alexander Ljungberg
59b766eb93
Fixed: token field autocomplete menu not receiving mouse events in presence of modal window.
...
Without this fix, the presence of a modal ancestor window to a token field would lock down the autocomplete menu from mouse interaction.
This fix ensures the token field autocomplete menu accepts mouse events even during the presence of modal widows, just like other auxiliary windows such as pop up menus.
2013-03-11 16:41:06 +00:00
Alexander Ljungberg
6327d8c92e
Fixed: transient popovers broke modal windows.
...
Without this fix, opening a transient popover would allow windows other than the modal window (or its children) to be interacted with.
In general, setCallback:forNextEventMatchingMask: did not work right if more than 1 callback was installed.
In the popover case the modal window would install its "any event" callback to control the event loop, but then the popover would add a second callback for mouse down to detect clicks outside of it. This would disrupt the modal event handling and allow mouse clicks (and presumably other events) to escape the modal event catcher.
This fix makes multiple nextEvent callbacks work as one would expect, with later ones taking priority over older ones and reinserted callbacks remaining at a stable priority.
This allows the modal window callback to be at the "bottom" of the handler stack and the popover event handler to be "on top" of that, and to remain that way. In theory more layers of event handling could be layered on top such as 2 simultaneous popovers.
This fix also fixes the dequeue argument in forNextEvent callbacks.
2013-03-11 13:14:18 +00:00
Alexander Ljungberg
969f56911a
Test: popovers in attached sheet 2 test.
...
The popover test now added exposes a bug:
1. Click Modal Window to open a modal window.
2. Click Popover to open a popover.
3. Click on the first window.
It should not be possible to interact with this window since a modal window is open, but a bug in the modal event handling when transient popovers are open will allow the event to incorrectly pass through to the window.
AttachedSheet2 is turning into a complete window/modality/sheets/alerts/popover interaction test.
2013-03-11 12:58:36 +00:00
Alexander Ljungberg
09ea8c3241
Test: manual test for most token field behaviour when in a popover.
2013-03-10 22:49:09 +00:00
Alexander Ljungberg
ff15f11927
Fixed: transient popover windows would close on mouse interaction with certain controls.
...
Without this fix, a transient popover would close if the autocomplete menu of a token field contained in it was clicked.
This happened because the popover considered the click to be on a different window. Although not tested, it's likely the same thing would happen if the menu of a combo pop or a pop up button was clicked.
This fix makes it so that any child window of a popover can be clicked without the popover closing.
2013-03-10 22:48:26 +00:00
Alexander Ljungberg
abadc6298d
Test: refactor token field test to not rely on ivars.
...
This will make it easier to extend the test with token fields in windows or popovers.
2013-03-10 22:44:07 +00:00
cacaodev
cd96f78228
CPPredicate: use @ref instead of custom function
2013-03-10 19:56:07 +01:00
Alexander Ljungberg
5f2d1b8255
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-03-10 17:41:42 +00:00
Alexander Ljungberg
483bd16a2d
Formatting: simplify code slightly.
2013-03-10 17:40:58 +00:00
Alexander Ljungberg
b53616ead3
New: @deref(<any idempotent expression>).
...
This change makes it possible to @deref any expression, such as a conditional expression, as long as the expression doesn't have side effects.
The reason not to allow dereferencing of expressions with side effects is that we might need to evaluate the expression twice in certain uses of deref, which is not obvious when you look at the deref operator in plain code.
2013-03-10 17:32:28 +00: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
Blair Duncan
7fab8d9782
don't allow views from another window to be next/previouskeyViews
2013-03-08 12:27:19 -05: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
Aparajita Fishman
4b0b19aec7
Formatting, refactoring, use separate message for nil key
2013-03-06 07:49:18 -05:00
Aparajita Fishman
af142a5ccc
Merge branch 'refs/heads/cpdictionary_throw_on_nil' into temp
2013-03-05 15:50:41 -05:00
aparajita
e3384d98b7
Merge pull request #1810 from ahankinson/fix-issue1184
...
Fix #1184 : Add missing argument to .apply()
2013-03-05 12:40:27 -08:00
Alexander Ljungberg
f4b08a9ce2
New: - CPObject performSelector:withObject:afterDelay:.
...
Also - CPObject cancelPreviousPerformWithTarget: and other related methods.
2013-03-05 18:52:06 +00:00
aparajita
21595cdebc
Merge pull request #1821 from ahankinson/fix-issue357
...
Fix #357 : Fix resizeWithOldSuperviewSize to work more like Cocoa
2013-03-05 05:30:13 -08:00
cacaodev
ac3a45aec5
CPTableView: force the mask to CPViewNotSizable for IB made CPTableCellView.
...
Added documentation for tableView:dataViewForTableColum:row: delegate method. Document other cases, when we expect the data view to have a CPViewNotSizable mask.
ViewBasedCib example: added variable row heights.
2013-03-04 20:03:20 +01:00
Andrew Hankinson
4605130a53
Fix #357 : Fix resizeWithOldSuperviewSize to work more like Cocoa
...
Without this fix, CPView's resizeWithOldSuperviewSize: would simply resize subviews at the rate of 1 pixel for every 2 pixel change.
This change introduces a new method of resizing views to a ratio of the size of the superview.
Patch contributed by @davidkhess
2013-03-02 16:40:00 -05:00
Randy Luecke
89c943f755
Merge pull request #1820 from BlairDuncan/TableViewCursorInfinateLoopFix
...
fix for issue #1819 tableview infinate loop
2013-03-01 14:20:34 -08:00
Blair Duncan
9730e066b8
fix for issue #1819 tableview infinate loop
2013-03-01 17:00:38 -05:00
Alexander Ljungberg
8668911593
Merge pull request #1817 from gildegoma/travis-ci_use_build_dir_variable
...
Travis CI: Use new $TRAVIS_BUILD_DIR environment variable
2013-03-01 10:57:02 +00:00
Martin Carlberg
34843a70b9
Merge branch 'master' of https://github.com/cappuccino/cappuccino into cpdictionary_throw_on_nil
2013-03-01 10:50:22 +01:00
Martin Carlberg
e686fbc0a8
Fixed: Handle deprecated setObject:forKey: calls with nil object on CPDictionary
2013-03-01 10:50:00 +01:00
Gilles Cornu
95ab1b355a
Travis CI: Use new $TRAVIS_BUILD_DIR env-variable
...
Before this fix: environment variables defined `.travis.yml` were still
dependant of internal configuration of the travis worker virtual
machine. See also previous pull request #1728 .
With this fix, `.travis.yml` is even more generic and portable.
2013-03-01 07:58:33 +01:00
Antoine Mercadal
5312524871
Define navigator.userAgent as another ugly Rhino fix
2013-02-28 15:41:14 -08:00
Martin Carlberg
64fb0934a4
Fixed: Do not setObject: forKey: when object or key is nil
2013-02-28 22:59:11 +01:00
Martin Carlberg
6ee3a395fb
Fixed: CPDictionary setObject: forKey: will log deprecated warning when passing nil object or key.
...
This should be replaced by throwing exception after release of next stable version. Code included for this.
2013-02-28 22:58:42 +01:00
Aparajita Fishman
62ced1749f
Fixed: invalid menu item validator was not checked properly
...
Previously, if CPApplication -targetForAction:to:from: returned nil, no check was done to see if that failed because there was no action or no valid target. If the item had no item, no target, and to action binding, it would be left enabled, which was incorrect.
This commit fixes the validation to disable the item if targetForAction:to:from: returns nil and the item has an action or target.
2013-02-27 18:26:34 -05:00
Aparajita Fishman
9ea3b70143
Fixed: table cells were not initialized from xib settings
...
This is a second attempt to fix the problems addressed by 69bbe627a9 .
Because table cell classes needed to use the same initialization code as the NS_initWithCoder methods, it was necessary to refactor the initialization code into separate NS_initWithCell methods and call them separately from NS_initWithCoder.
2013-02-27 18:02:55 -05:00
Aparajita Fishman
07f9b94548
Fixed: initializer did not allow programmers to pass arbitrary types
...
Originally the initializer had coerced the parameter to a string, even though it is clearly documented that it should be a string. A later commit removed that coercion.
This commit reinstates the type coercion and thus saves the world from those who would pass non-string types in a parameter that says "withString".
2013-02-27 15:17:17 -05:00
Aparajita Fishman
c5b3c17ccc
Revert "Fixed: table cells were not initialized from xib settings"
...
This reverts commit 69bbe627a9 until it can be implemented correctly.
2013-02-27 13:54:26 -05:00
Andrew Hankinson
02460f0e9d
Change this to _window in apply()
2013-02-27 09:07:21 -05:00
Andrew Hankinson
ee20038dce
Fix #1184 : Add missing argument to .apply()
...
The Javascript .apply() method takes two arguments: A context argument and an array of values. In CPWebScriptObject callWebScriptMethod:withArguments, only an array of arguments was passed to the .apply() method.
This fix inserts `this` as the first argument, and the array of arguments as the second. This has been converted to a pull request from the original issue (#1184 )
The original issue also suggested a fix for handling namespaces, which are not incorporated in this patch.
2013-02-26 21:37:57 -05:00
Aparajita Fishman
226bf5299e
Fix: don't touch the item state unless disabling
2013-02-26 21:07:12 -05:00
Aparajita Fishman
ae2ed8bf94
Fixed: empty strings and indexes out of range were not handled
...
Previously CPAttributedString did not provide an -init method,
with the result that an attributed string created with [[CPAttributedString alloc] init]
would not be correctly initialized.
Also, some methods that took indexes into the string were not checking for an invalid index and were not raising exceptions when the documentation said they should.
Finally, some methods that were supposed to return empty dictionaries were returning nil.
This commit fixes all of these problems. Empty strings should no longer cause errors.
Closes #533
2013-02-26 20:15:15 -05:00
aparajita
395d140c76
Merge pull request #1805 from ahankinson/fix-issue1359
...
Fix #1539 : Figure out the best shell config file
2013-02-26 11:47:54 -08:00
Alexander Ljungberg
d9354c867b
Fixed: token field menu refusing clicks in recent versions.
...
Not clear why this worked before but not now. This fix makes sense regardless.
Without this fix, clicks would not be sent through to the token field menu because its window wasn't the key window.
This fix makes the autocomplete menu declare it does not need to and does not want to become the key window.
Fixes #1807 .
2013-02-26 18:55:22 +00:00
Alexander Ljungberg
a6fafcd03b
Fixed: inadvertent grid lines in token field menu.
...
Without this fix, grey lines were showing in the background of token field autocomplete menus in recent versions.
This fix removes the grid lines which were never intended to be there to begin with.
Fixes #1806 .
2013-02-26 18:27:41 +00:00
Alexander Ljungberg
0b88f1be14
Docs: incorrect - CPEvent acceptsFirstMouse: documentation.
2013-02-26 18:27:41 +00:00
Aparajita Fishman
69bbe627a9
Fixed: table cells were not initialized from xib settings
...
Previously, table view cells (non-view-based) were not being decoded with all of the available cell attributes in IB, and many attributes were hard-coded. In addition, there was a bunch of initialization code that has been made redundant by theming.
With this commit, decoding of all control classes has been refactored so that table view cells can use the same code, thus ensuring they decode all available cell attributes. In addition, the redundant code has been eliminated.
It is now possible to apply most table cell attributes such as font, color, alignment, sendsActionOnEndEditing, and so on, directly in IB.
Closes #1803
BREAKING CHANGE:
Changes have been made to table cell decoding in nib2cib. All xibs should be re-converted with `find . -name '*.xib' -exec nib2cib {} \;`.
2013-02-26 13:07:54 -05:00
Alexander Ljungberg
26a9c9e725
New: exclude Sublime specific files more generally.
2013-02-26 17:28:07 +00:00
Alexander Ljungberg
9ce5c1c4d7
Fixed: alignment in CPGrahicsTest.
...
Refs #1801 .
2013-02-26 16:28:15 +00:00
Alexander Ljungberg
a0b9efe1fd
Fixed: CGPathMoveToPoint problem after a0115962.
...
Without this fix, CGPathMoveToPoint would not actually move to the point if there had been at least one previous CGPath command (a current path existed) but it was not a move to point command.
This fix ensures move to point is effective in all cases.
Fixes #1801 .
2013-02-26 16:27:54 +00:00
Alexander Ljungberg
1aa57ca11b
Test: expose errors in CGPathMoveToPoint.
...
This test highlights the problem described by issue #1801 , and exposes that CGPathMoveToPoint is in fact not working correctly after the fix either.
2013-02-26 16:27:54 +00:00
Andrew Hankinson
e10ce7a445
Fix #1359 : Figure out the best shell config file
...
This fix adds a little more intelligence to the bootstrap.sh script.
If a user is using ZSH or BASH it will recognize those and append to the appropriate config file, creating .profile if necessary.
If the user's shell cannot be read from the $SHELL variable, it will attempt to find the first suitable configuration file in the user's home directory. If none can be found, it will create .profile.
This was based off the Wikipedia article on Unix shells and the configuration files they will read. The only shells that are not supported by this patch should be csh and tcsh.
2013-02-26 11:13:35 -05:00
aparajita
cf9ce6ac60
Merge pull request #1613 from cacaodev/CPTableViewLion
...
CPTableView : view-based table and new Lion API
2013-02-26 07:29:46 -08:00
cacaodev
10d120ccfd
Removed tracing in test apps. Added CPTrace.j in Tests/Manual/, available for any app who wants to import and use it. Added utility function computing moving average.
2013-02-26 16:06:02 +01:00
Aparajita Fishman
2cb3450cf8
Fixed: CGPathEqualToPath did not compare all subpath types
...
The implementation of CGPathEqualToPath did not compare all of the subpath types now supported by CGPath. In addition, it referred to subpath properties that no longer exist.
The implementation now compares all properties of all supported subpath types.
Closes #1246
2013-02-26 08:41:27 -05:00
Aparajita Fishman
53ce9b6588
Fixed: delegate method collectionViewDidChangeSelection: is deprecated
...
Previously CPCollectionView supported a delegate method collectionViewDidChangeSelection:, which is not defined in Cocoa. Since CPCollectionView is KVO-compliant for selectionIndexes, this delegate method is no longer necessary and is a needless divergence from Cocoa.
The method is now marked as deprecated, and when used will log a deprecation warning.
Closes #715
2013-02-26 08:11:42 -05:00
aparajita
05012985bb
Merge pull request #1801 from mrcarlberg/cgpath_typo
...
Fixed typo in CGPath.j
2013-02-26 04:34:54 -08:00
Martin Carlberg
93c9a70aa0
Fixed typo
2013-02-26 12:44:37 +01:00
cacaodev
7d03483210
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
AppKit/CPView.j
2013-02-26 11:56:18 +01:00
Aparajita Fishman
fc9001353f
Fixed: CPObjectController -setContent potentially called too early
...
Previously setContent: was called first, before the rest of the object was initialized. This potentially could have unexpected results because setContent has many side effects.
This commit waits until the object is completely initialized before calling setContent.
2013-02-25 21:22:45 -05:00
aparajita
6a8cba521b
Merge pull request #1627 from ggsato/CPArrayControllerFirstSelectionTest
...
a suggested fix for CPArrayController selection binding failure in retri...
2013-02-25 18:16:04 -08:00
Aparajita Fishman
471641c228
Fixed: subviews in cib did not receive view(Will/Did)MoveToSuperview:
...
In Cocoa, viewWillMoveToSuperview: and viewDidMoveToSuperview: are called when views are instantiated from code or from a nib.
Previously in Cappuccino, when a view was instantiated from a cib, the _subviews of the view were directly set from the decoded subview array. This short-circuited all of the normal notifications a view receives when added to a superview, including viewWillMoveToSuperview: and viewDidMoveToSuperview:. As a result, some views that override these methods, such as CPSearchField, were not set up correctly when instantiated from a cib.
With this commit, subviews instantiated from a cib are manually added to their superview, thus ensuring they go through the same cycle as views instantiated from code, and ensuring that viewWillMoveToSuperview: and viewDidMoveToSuperview: are called.
Closes #1699
2013-02-25 20:09:18 -05:00
Aparajita Fishman
887421c9fa
Fixed: window content view overlapped window frame
...
Previously, the content view of almost all window types
could overlap the frame of the window.
This is a follow on to b28429f which insets the content view
from the frame for all relevant window types.
Refs #1798
2013-02-25 17:50:12 -05:00
Aparajita Fishman
cbe8659cc7
Docs: fixed mistake in comments
2013-02-25 17:27:34 -05:00
Aparajita Fishman
b28429f940
Fixed: window content view was not inset from the frame
...
Previously, _CPStandardWindowView did not inset the content view rect
from the window frame, thus its contents could overlap the window frame.
Now the content view is correctly inset so that content view content
is clipped to the window frame, except for the corners. Because the
corners are round and the window frame is a background color, they
can still be overlapped. this will be fixed in a later commit.
Closes #1798
2013-02-25 17:15:26 -05:00
Alexander Ljungberg
956a4c341c
Fix: remove accidentally committed Sublime configuration files.
2013-02-25 20:00:42 +00:00
Alexander Ljungberg
5b05dc92a1
More dictionary literals.
2013-02-25 18:27:44 +00:00
Alexander Ljungberg
8bcbeb0aa9
Improve code readability with dictionary literals.
2013-02-25 17:02:36 +00:00
Alexander Ljungberg
472848da91
New: array literals in Objective-J 2.0.
...
Array literals look like `@[a, b, c]`.
This syntax is supported for completeness and source compatibility, but are not terribly useful since standard JavaScript arrays are toll-free bridged to CPArray.
Array literals could be handy if you're replacing CPArray with your own implementation.
2013-02-25 14:57:05 +00:00
Alexander Ljungberg
5200f945fe
New: dictionary literals in Objective-J 2.0.
2013-02-25 14:24:29 +00:00
Aparajita Fishman
a736bb4e93
fix (CPWindow): prevent empty content view when resizing a window
...
Previously, windows with no minimum size could be resized
by the user such that the content view was completely hidden, and then
resized such that the window was effectively turned inside out.
This obviously needed to be fixed.
Now, when the user resizes a window, each _CPWindowView subclass
is asked for the minimum resize size, with the size being additively
set by each subclass. This minimum size takes into account things
like the title bar, divider line, and close button, and always leaves
at least 2px height for the content view.
The user-requested size is then pinned to the minimum resize size.
In the process of fixing this bug, I discovered in the Cocoa docs
that the CPWindow -setFrame: methods should ignore minSize and maxSize.
Other changes:
- Take the divider height into account in contentRectForFrameRect for titled windows.
- Use _CG macros and fix formatting.
Closes #1753
2013-02-24 22:44:29 -05:00
Alexander Ljungberg
00f60ccaa4
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-24 23:54:56 +00:00
Alexander Ljungberg
6d1c4a9570
Fixed: - CPMutableArray removeObjectIdenticalTo did not remove all instances, was documented incorrectly.
...
Contrary to what the previous documentation said, removeObjectIdenticalTo: should remove all instances of the argument from the receiver, not just the first one.
2013-02-24 23:51:48 +00:00
Aparajita Fishman
c6a0e209ad
Using a new naming scheme for tests
2013-02-24 18:51:22 -05:00
Alexander Ljungberg
be4a168601
Make 30268f9865c compatible with Internet Explorer 8-.
2013-02-24 23:50:09 +00:00
aparajita
2c10671fe4
Merge pull request #1796 from ahankinson/fix-issue1685
...
Fixes #1685 : CPToolbar calls incorrect notification method
2013-02-24 15:45:03 -08:00
Alexander Ljungberg
b791289dfe
Merge commit 'c4370240f8e31c257f038b661a2e171fe346f28b'
2013-02-24 23:44:00 +00:00
Alexander Ljungberg
c4370240f8
Fixed: subclasses of CPMutableArray had broken removeObject:.
...
The `removeObject:` default provided in CPMutableArray would not work in subclasses because it relied on the class having a .length property.
2013-02-24 23:43:20 +00:00
aparajita
fd0bdcba67
Merge pull request #1797 from cacaodev/issue1357
...
Fix for issue #1357
2013-02-24 15:42:58 -08:00
Alexander Ljungberg
f805b6bfa6
Fixes #1409 . Improve CPTabView decoding to fix tab selection errors.
...
This is an improved fix to the corrupted tab view state bug partially addressed by 0f347be.
Without either fix, NSTabView is converted to a CPTabView where tab view item views are subviews of the NSTabView, while in Cappuccino the selected view item is supposed to be a subview of a CPBox.
Without this fix, CPTabView decoding called addSubview: in initWithCoder: which can cause the superview of a view to become set, only to later be overwritten when the superview ivar is decoded.
This fix removes the tab item view as a subview from the tab view before encoding it in nib2cib, and then makes sure not to call addSubview: while still in the initWithCoder stage, but rather later in awakeFromCib.
2013-02-24 23:08:44 +00:00
Alexander Ljungberg
4188b274f7
Move special per class nib2cib processing to the classes themselves in awakeFromNib.
...
Having class specific code in the class makes more sense, and this will make it easier to add more class specific transformations.
2013-02-24 22:23:12 +00:00
cacaodev
bf1e720ebc
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2013-02-24 23:01:43 +01:00
Alexander Ljungberg
599351b56d
Crash early in debug mode if addSubview: is called with a not fully decoded view.
...
If a view to be added is already a subview, but doesn't yet "know it" due to being only partially decoded, a corrupted view hierarchy with duplicate views would be set up, which is very hard to debug.
2013-02-24 21:39:04 +00:00
Alexander Ljungberg
84f42bdd05
Fixed: decoding a CPClipView could result in duplicate subviews.
...
This bug used to be concealed by the fact that we called [superview removeObject:X] when replacing a subview, which caused all duplicates to be removed.
Without this fix, the call to setDocumentView in CPClipView's decoding would try to add the document view as a subview. But when decoding, the clip view is already in the decoded list of subviews. Normally adding a subview twice would just move it to the end of the list of subviews, but this only works for fully decoded subviews where superview is not nil. Since we're in the middle of decoding there's no guarantee superview is set yet.
This fix avoids calling addSubview:.
2013-02-24 21:26:02 +00:00
Alexander Ljungberg
75b72d601a
Fixed: eliminate jake deploy warnings from default apps in 0.9.7.
2013-02-24 18:20:39 +00:00
Alexander Ljungberg
a426802b1a
Merge branch 'master' into slevenbits
2013-02-24 17:54:41 +00:00
cacaodev
d2143844e3
Fix for issue #1357
2013-02-24 18:47:37 +01:00
Alexander Ljungberg
ce7e5122e0
Fixes #829 . Improve - CPView removeFromSuperview performance.
...
In the modified test described in #829 performance improves by at least 30% and that's with a significant addSubview: component diluting the test.
This change should improve outline and table view performance.
2013-02-24 17:36:30 +00:00
Alexander Ljungberg
0268f9865c
Faster CPMutableArray removeObjectIdenticalTo:.
...
About 6-8X speedup by skipping all the `indexOfObjectIdenticalTo:` calls and going straight to JS `indexOf`.
2013-02-24 15:19:00 +00:00
aparajita
c401e3b55e
Merge pull request #1497 from BlairDuncan/afterDocumentLoadFix
...
fix to enables the startup loader to continue if dynamically loaded
2013-02-23 18:01:28 -08:00
Andrew Hankinson
946b336e92
Added correct notification name.
2013-02-23 17:31:08 -05:00
Andrew Hankinson
e40138c2ee
Fixes #1685 : CPToolbar calls incorrect notification method
...
This fix corrects the call in CPToolbar _setWindow to `removeObserver:name:object`. Before, this was calling the non-existent `removeObserver:object`, which would raise an exception.
This was fixed by @schipmolder.
2013-02-23 17:20:38 -05:00
Aparajita Fishman
3dad330a59
Font metrics calculations were broken, now fixed.
...
Updated FontMetricsExplorer application to modernize html files.
2013-02-23 16:02:05 -05:00
cacaodev
fb3fe24567
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Tests/Manual/CPOutlineViewCibTest/Resources/MainMenu.cib
2013-02-23 20:55:54 +01:00
Aparajita Fishman
a011596231
CGContext fixes/enhancements
...
- NEW: Retrieve the underlying Image element from a CPImage with -image.
- NEW: You can now render any arbitrary drawing to a pattern context and use that as a fill or stroke pattern. See CGContextCreatePatternContext, CGContextSetFillPattern and CGContextSetStrokePattern. Works in all canvas-enabled browsers, including IE 9+.
- NEW: An example of using a custom rendered pattern is in Tests/Manual/PatternFillTest.
- NEW: Test if a CPImage is a single image (vs. three/nine part) with -isSingleImage.
- FIXED: With canvas, we have to track ourselves whether the context has a path or not.
- FIXED: All shapes except rects may not be added to a path with no context. If you attempt to do so, an error is logged.
- FIXED: CGPath was not setting the start and current point correctly in some cases.
- FIXED: CGContextAddPath was not moving to the path's start point at the beginning.
- FIXED: Removed superfluous CGContextClosePath commands, fixed some drawing sequences.
- FIXED: Misc. formatting.
Sorry, these changes are canvas only (including IE 9+)! I am not going to spend the time to port these fixes to VML (IE 8).
2013-02-23 13:53:20 -05:00
Blair Duncan
ac5a4b88d2
updated the testfile
2013-02-23 10:24:29 -05:00
cacaodev
12e743f9dc
nib2cibed viewBasedCib example to resurrect scrollers
2013-02-23 14:52:38 +01:00
cacaodev
5355c4935c
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2013-02-23 14:51:46 +01:00
Aparajita Fishman
f54f2e7b13
selectNone: is not part of the NSTableView API, not sure why we need it since it is the same as deselectAll:
2013-02-23 08:26:36 -05:00
aparajita
835096c089
Merge pull request #1794 from cacaodev/CPImageView-bindings
...
CPImageView bindings improvements
2013-02-23 04:33:19 -08:00
cacaodev
16bb194019
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.xib
2013-02-23 10:55:08 +01:00
Aparajita Fishman
a9952a28a4
CPRadioGroup enhancements
...
- You may now bind radio groups to selectedValue, selectedTag, selectedIndex, enabled, and hidden. enabled and hidden are multiple value bindings.
- Added some API to CPRadioGroup that parallels NSMatrix: selectRadioAtIndex:, selectRadioWithTag:
- Added setEnabled/setHidden, they operate on all of the radios in the group.
- Sample app to demonstrate all new features.
2013-02-23 00:01:19 -05:00
Aparajita Fishman
67624208de
XcodeCapp improvements
...
- Convert to ARC, garbage collection is deprecated.
- Support radio buttons and groups as outlets in IB.
2013-02-22 23:56:21 -05:00
Aparajita Fishman
ce0aadfcf7
Optimizations
...
No need to copy result of [self bounds], it's already a copy
2013-02-22 23:29:17 -05:00
Aparajita Fishman
7c677de10a
Fixed bugs in CPColorWithImages and CPImageInBundle
2013-02-22 21:58:12 -05:00
Aparajita Fishman
f590d38746
Revert "Fixed a bunch of bugs in CGContextCanvas and CGPath."
...
This reverts commit 7ab84ca607 until I can figure out why it is breaking other things.
2013-02-22 16:56:19 -05:00
cacaodev
3591ba0f89
CPImageView bindings improvements
...
Cache image for the CPValue(URL|Path)Binding.
Support for reverse bindings CPValueBinding, CPValue(URL|Path)Binding,
CPDataBinding.
2013-02-22 22:11:42 +01:00
Alexander Ljungberg
80170cfa03
Merge branch 'refs/heads/slevenbits-nsbox-custom-fix'
2013-02-22 19:46:13 +00:00
Alexander Ljungberg
1cb8844470
Fixed: custom NSBoxes placed in Xcode became smaller in Cappuccino.
...
Without this fix, a regular custom NSBox such as a simple box with a 1px border would become several pixels smaller in Cappuccino.
This fix makes sure we only try to adjust the size for primary and secondary type NSBoxes.
2013-02-22 19:45:56 +00:00
Alexander Ljungberg
9be703e271
Merge branch 'refs/heads/slevenbits-tabview-cib-fix'
2013-02-22 19:10:28 +00:00
Alexander Ljungberg
a19ec35a47
Fixes #1409 . Fixed: broken tab view decoded from xib in certain situation.
...
Without this fix, a tab view set up in Xcode where a tab but the first was selected could be instantiated in a corrupted state in Cappuccino, where tab selection would have no effect.
This fix ensures that even if the decoded view of the selected tab view item has a superview different from how we do things in Cappuccino, we make sure to set it right.
2013-02-22 19:08:38 +00:00
Aparajita Fishman
47ade360d5
Formatting
2013-02-22 12:40:43 -05:00
aparajita
0e669417cd
Merge pull request #1791 from BlairDuncan/tableViewSelectAll
...
tableview add support for selectAll: deSelectAll: selectNone:
2013-02-22 07:59:11 -08:00
Blair Duncan
5c3d3bbc2e
updated added a menu to tablebindings test and doxygen comments
2013-02-22 09:45:26 -05:00
Alexander Ljungberg
09b5eef617
Fixed: [CPBox setContentView:nil] crash.
...
This is allowed in Cocoa so should not crash Cappuccino either.
2013-02-22 14:42:36 +00:00
Blair Duncan
92c2ed970c
tableview add support for selectAll: deSelectAll: selectNone: #1594
2013-02-22 00:37:34 -05:00
Aparajita Fishman
7ab84ca607
Fixed a bunch of bugs in CGContextCanvas and CGPath.
...
- With canvas, we have to track ourselves whether the context has a path or not.
- All shapes except rects may not be added to a path with no context.
- CGPath was not setting the start and current point correctly in some cases.
- CGContextAddPath was not moving to the path's start point at the beginning.
Sorry, I am not going to spend the time to port these fixes to VML!
2013-02-21 21:44:16 -05:00
Alexander Ljungberg
7d37427c96
Fixes #1789 . Fixed: bootstrap.sh wget fallback broken by 1789.
2013-02-21 23:41:46 +00:00
Antoine Mercadal
17695ff77c
refresh the history menu when user stops listening to a project. close #1784
2013-02-21 14:33:17 -08:00
Alexandre Wilhelm and Antoine Mercadal
bc2b26132a
Fixed bug about font in tableViewHeader closed #1747
2013-02-21 14:05:13 -08:00
Aparajita Fishman
7c033f75ea
Eliminated dead code
2013-02-21 17:02:55 -05:00
aparajita
816e3b71a9
Merge pull request #1770 from ahankinson/nib2cib-cpbrowser-compat
...
Nib2cib cpbrowser compatibility
2013-02-21 12:54:43 -08:00
Andrew Hankinson
b0e307bdd0
NSBrowserTest initial commit
2013-02-21 14:07:01 -05:00
Andrew Hankinson
ee2d52c40a
Merge branch 'refs/heads/master' into nib2cib-cpbrowser-compat
2013-02-21 13:58:48 -05:00
Aparajita Fishman
9007cab02c
Removed another alert
2013-02-21 08:58:01 -05:00
Aparajita Fishman
d473a82715
Formatting, replaced alert with warning
2013-02-21 08:52:58 -05:00
Aparajita Fishman
fb01ceb2a9
Formatting
2013-02-21 07:39:57 -05:00
Aparajita Fishman
109f59ab6c
Merge branch 'autosaveTableColumnsFix'
2013-02-21 07:37:09 -05:00
Alexander Ljungberg
169f8eaad1
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-20 19:57:24 +00:00
Alexander Ljungberg
854780a22a
Fixes #1754 . Fixed: CPAlert ignoring keyboard interaction, not movable by background.
...
Without this fix, a CPAlert window couldn't actually become the key window which meant it couldn't receive keyboard events such as using the escape key to close the alert or hitting enter to activate the default button.
Furthermore the window could not be moved by clicking its background and dragging.
This fix makes CPAlert windows into CPPanels instead, which can become key windows and is more appropriate since panels are meant for auxiliary windows.
2013-02-20 19:56:23 +00:00
Alexander Ljungberg
b1883d7204
Refs #1754 . Crisp, pixel perfect CPAlert warning triangle.
2013-02-20 18:31:43 +00:00
Alexander Ljungberg
74be583fbb
Refs #1754 . Fixed: pixelated corners on Aristo 2 HUD windows.
2013-02-20 18:19:25 +00:00
Alexander Ljungberg
4bc54c45a3
Refs #1754 . Fixed: wrong button text shadow direction in Aristo 2 HUD theme.
2013-02-20 16:39:09 +00:00
Alexander Ljungberg
56ec9dbb10
Feature to open the attached sheet test window in HUD mode.
...
This is not a bad kitchen sink test for HUD widgets and windows.
2013-02-20 16:35:09 +00:00
Alexander Ljungberg
5d08ddadfa
CPView _setThemeIncludingDescendants:.
...
This method makes it possible to e.g. switch a whole window to the HUD theme.
It's internal for now.
2013-02-20 16:33:28 +00:00
cacaodev
cd54687f41
CPTableColumnHeaderView: when a column is pressed and is the _editingColumn, make the table view first responder
2013-02-20 17:19:47 +01:00
cacaodev
899cd22999
Fix local hidding global variable in CPOutlineViewCibTest
2013-02-20 17:16:40 +01:00
cacaodev
3aadc958eb
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Foundation/CPURLConnection.j
Tests/Manual/CPOutlineViewCibTest/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
2013-02-20 17:15:24 +01:00
Alexander Ljungberg
79dde7bb9b
Use HUD style buttons in HUD style test window.
2013-02-20 14:39:50 +00:00
Aparajita Fishman
7d8e9dfc60
Formatting
2013-02-20 03:00:20 -05:00
aparajita
e623776f5d
Merge pull request #1787 from BlairDuncan/CPDictionaryController
...
minor optimization so that newObject and includedKeys use the same code
2013-02-19 23:55:11 -08:00
aparajita
230988b90d
Merge pull request #1785 from aradabaugh/cgcanvascontext
...
Fixes #1403 w/formatting and style for missing CGCanvasContext functions. Also...
2013-02-19 18:01:11 -08:00
Alexander Ljungberg
64f85002b1
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2013-02-19 23:18:01 +00:00
Alexander Ljungberg
d4b7fd635d
Merge branch 'refs/heads/master' into slevenbits
2013-02-19 23:16:56 +00:00
aparajita
a6f4e20078
Merge pull request #1786 from ahankinson/fix-issue1745
...
Fix #1745 : Rename Progress bar images in HUD theme
2013-02-19 14:34:54 -08:00
Aparajita Fishman
02b7198e9b
Added action bindings to CPMenuItem
...
Updated MultipleValueBindings app to use action bindings in About and Help menu items.
2013-02-19 17:25:29 -05:00
Andrew Hankinson
64cb4ddb14
Fix #1745 : Rename Progress bar images in HUD theme
...
This is a partial fix that should resolve #1745 .
-- It removes an extra "-bar" from the progress bar images in the HUD theme.
-- It removes an older "-bar-regular" from file names to match the file names in the regular theme
-- It corrects a misspelled "indeterminate" in the progress indicator
2013-02-19 17:15:40 -05:00
Ilya Kulakov
cca8dd0056
Fix comment to -[CPCollectionView setItemPrototype:].
...
Item prototype is a subclass of CPViewController, not CPView.
2013-02-20 04:44:46 +07:00
Aparajita Fishman
238b6c8e57
Modernize index[-debug].html, IE 9+ now run in edge mode
2013-02-19 16:22:58 -05:00
Aparajita Fishman
ba372029f9
Update MultipleValueBindings app to use a button that binds to a target with no arguments
2013-02-19 16:22:58 -05:00
Adam Radabaugh
a774e52988
Fixes formatting and style for missing CGCanvasContext functions. Adds CGCanvasContext test.
2013-02-19 14:10:39 -07:00
Blair Duncan
b6feecae70
minor optimization so that newObject and includedKeys use the same code
2013-02-19 12:06:48 -05:00
aparajita
8c63e32450
Merge pull request #1232 from cncolder/fontinfo-path-fix
...
Fix fontinfo build path when $CAPP_BUILD not defined.
2013-02-19 07:44:37 -08:00
aparajita
84d8e1ceb7
Merge pull request #1478 from cacaodev/CPTableView-dragging-perf
...
CPTableView: make dragged views reusable when dragging ends
2013-02-19 07:33:29 -08:00
aparajita
23d3cef52e
Merge pull request #1517 from BlairDuncan/FlashViewFix
...
CPFlashView a few minor fixes, includes Test file
2013-02-19 07:16:28 -08:00
Aparajita Fishman
6a5b6a70b5
I was wrong, a single value binding for CPTextField does have default placeholders. Updated MultipleValueBindings app to display a single value binding as well.
2013-02-19 10:07:21 -05:00
Aparajita Fishman
b6f0a29f8f
Merge branch 'CPURLConnection-sendSynchronousRequest' of https://github.com/cacaodev/cappuccino
2013-02-19 09:47:40 -05:00
Aparajita Fishman
dc366809c8
Merge branch 'CPCollectionView-maxNumberOfRows' of https://github.com/cacaodev/cappuccino
2013-02-19 09:38:10 -05:00
aparajita
ceeaab70fc
Merge pull request #1679 from mrcarlberg/scroll_before_focus_text_field
...
Make sure the text field is visible before focus
2013-02-19 06:14:42 -08:00
aparajita
3cfa81bdea
Merge pull request #1773 from BlairDuncan/CPPasteboardAvailableTypesFromArrayFix
...
CPPasteboard availableTypeFromArray fix issue #1683
2013-02-19 06:09:59 -08:00
aparajita
9e99676b66
Merge pull request #1777 from BlairDuncan/CPDictionaryController
...
CPDictionaryController [+1]
2013-02-19 05:22:29 -08:00
Alexander Ljungberg
a63f185ba9
Refs #1778 . Store clockwise parameter with right name.
...
The name has to match what we ultimately use in CGContextCanvas and CGContextVML.
2013-02-19 11:50:47 +00:00
Alexander Ljungberg
4a0dd80c5a
Merge pull request #1778 from ahankinson/partial-fix-issue578
...
This fix adds a missing `isClockwise` property
2013-02-19 11:38:46 +00:00
Alexander Ljungberg
d03ae79092
Merge branch 'refs/heads/master' into slevenbits
2013-02-19 10:49:39 +00:00
Alexander Ljungberg
62c62062e0
Formatting, tighten comparisons.
2013-02-19 10:49:25 +00:00
Andrew Hankinson
b9a97931c8
Formatting CGPath.j
2013-02-18 23:26:15 -05:00
Andrew Hankinson
4ec3b5e387
This fix adds a missing isClockwise property
...
Without this fix, the isClockwise property is not stored for use in CGPathAddPath.
C.F. https://github.com/cappuccino/cappuccino/blob/master/AppKit/CoreGraphics/CGPath.j#L195
This is a partial fix for #578 .
2013-02-18 23:02:28 -05:00
Blair Duncan
8eb59d97b2
replaced setContest with setContentDictionary in test
...
enabled "prepairs content" in xib to show key, key1 etc when added
2013-02-18 22:54:42 -05:00
Blair Duncan
35b54117e0
xib
2013-02-18 17:14:32 -05:00
Blair Duncan
aa7a915139
add missing file
2013-02-18 17:08:27 -05:00
Blair Duncan
6d54bfe01f
removed the wrong one
2013-02-18 16:59:56 -05:00
Blair Duncan
14dff27b97
decode included and excluded keys from xibs
...
removed default sort descriptors
2013-02-18 16:53:54 -05:00
Aparajita Fishman
ff35b4a4b6
It turns out function.displayName is no longer necessary with the latest Safari, Chrome, FireFox, and even IE 9+. All of them correctly identify the function name.
2013-02-18 16:13:13 -05:00
Blair Duncan
9f15a85c86
decode included and excluded keys from xibs
...
removed default sort descriptors
2013-02-18 13:32:09 -05:00
Alexander Ljungberg
e03622be9c
+ CPBezierPath bezierPathWithRoundedRect:xRadius:yRadius:.
2013-02-18 18:18:28 +00:00
Aparajita Fishman
3239337c1c
CPScroller fixes
...
- Get the scroller orientation from the xib.
- Fix the nonsensical calculation of _isVertical when given bounds.
- Since orientation comes from the xib, had to re-nib2cib everything to be safe.
2013-02-18 11:03:51 -05:00
cacaodev
9a58efaa07
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2013-02-18 13:09:46 +01:00
cacaodev
3319f578ba
_CPCibCustomView : set the identifier property on the replacement view
2013-02-18 13:05:12 +01:00
cacaodev
3e942dbdbd
Added CPCib import in CPTableView.j
...
Fix warning in NSNib.j
2013-02-18 12:59:47 +01:00
Randall Luecke
5427e9a402
Fixed column drag and drop in the tableview.
2013-02-18 04:00:40 -05:00
Aparajita Fishman
4a09feed59
Make sure cursor is reset before calling event handlers, misc. formatting
2013-02-18 03:34:42 -05:00
Blair Duncan
7ff8bda52a
CPDictionaryController initial commit
2013-02-18 01:04:59 -05:00
Aparajita Fishman
1c6d2f7fa4
Don't change the platform window's title unless the Cappuccino window is full platform.
2013-02-18 00:43:37 -05:00
Randall Luecke
041f21d117
Small fix to the CPWindow docs so we dont suggest using "window" as a param name.
2013-02-17 15:23:03 -05:00
Randall Luecke
f4ba2d68cd
Cache the scroller used by the class methods to get the various theme values.
...
-scrollerOverlay is called in -reflectScrolledClipRect and creating this new
object is VERY expensive, according to my profiling.
This should speed up scrolling across the board!
2013-02-17 02:09:07 -05:00
Blair Duncan
20263e44ba
CPPasteboard availableTypeFromArray fix issue #1683
2013-02-16 19:09:41 -05:00
Aparajita Fishman
347270a8b8
Formatting
2013-02-16 18:09:04 -05:00
aparajita
29dd685377
Merge pull request #1772 from BlairDuncan/mainMenuBarFix
...
main menubar looping cursor navigation
2013-02-16 15:06:05 -08:00
cacaodev
fa008c988c
Add CPTrace.j and fix import in TableCibTest (a test using the old API)
2013-02-16 23:48:39 +01:00
cacaodev
9a472731d8
Typo, symlinks
2013-02-16 23:41:12 +01:00
Blair Duncan
9c4317783b
main menubar looping cursor navigation
2013-02-16 17:26:19 -05:00
Aparajita Fishman
fc4d347fa1
Fixed circular import.
2013-02-16 16:57:56 -05:00
Aparajita Fishman
9c408bcf5a
Ahem…Javascript object keys are literals, even without quotes!
2013-02-16 16:57:35 -05:00
Aparajita Fishman
30aa6549ec
Formatting
2013-02-16 16:56:27 -05:00
cacaodev
ba4e3bab5c
Theme descriptors: editable textfields on a selected data view should not have a white text color
2013-02-16 19:33:51 +01:00
cacaodev
3fd39ea0c8
Code formatting, cleaned zombie outlets, added outlets to the CPTableCellView owner
2013-02-16 19:00:44 +01:00
Aparajita Fishman
b6008b4870
Optimization
2013-02-16 11:20:57 -05:00
Aparajita Fishman
dc7e95bbff
Don't set default placeholders
2013-02-16 07:45:47 -05:00
Aparajita Fishman
f1e4ac4112
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-16 07:44:32 -05:00
Aparajita Fishman
cf867cf3b6
Add charset to <head>
2013-02-16 07:43:27 -05:00
Antoine Mercadal
6673823a74
Merge pull request #1694 from mrcarlberg/nib2cib_allow_themed_height_on_checkbox_and_radio
...
nib2cib allows CPCheckBox and CPRadio to have themed height
2013-02-15 22:49:22 -08:00
Antoine Mercadal
46022b0588
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-02-15 22:29:20 -08:00
Aparajita Fishman
db771960f3
Formatting, factoring code
2013-02-15 23:47:01 -05:00
Aparajita Fishman
2c4f3d7928
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-15 21:17:51 -05:00
Aparajita Fishman
9ae851958a
IE 9+ supports opacity
2013-02-15 21:17:39 -05:00
aparajita
953bb0e936
Merge pull request #1769 from ahankinson/nib2cib-aristo2-circularslider
...
Fix theme issue with circular slider
2013-02-15 17:41:32 -08:00
Andrew Hankinson
821938ac9a
Decode keys from XIB file
2013-02-15 19:19:53 -05:00
Andrew Hankinson
1fee41d5d0
Merge branch 'nib2cib-cpbrowser-compat' of github.com:ahankinson/cappuccino into nib2cib-cpbrowser-compat
2013-02-15 17:40:14 -05:00
Andrew Hankinson
d3a0c57aca
Merge branch 'refs/heads/master' into nib2cib-cpbrowser-compat
2013-02-15 17:40:01 -05:00
Andrew Hankinson
1fb33bf7cb
Fix theme issue with circular slider
...
Refer to #1733 for more information
2013-02-15 17:15:49 -05:00
Antoine Mercadal
ca339f32d5
Improve menu bar by removing the small arrow
2013-02-15 13:45:22 -08:00
Aparajita Fishman
54cc6a1e0c
Be a little less stupid.
2013-02-15 13:35:05 -05:00
Aparajita Fishman
709eaf1a43
Added missing location variable
2013-02-15 13:03:45 -05:00
Aparajita Fishman
abaa1e81f2
Support for multiple-value bindings
...
- CPView and subclasses support multiple-value hidden bindings.
- CPControl and subclasses support multiple-value enabled bindings.
- CPWindow and CPBox support multiple-value title with pattern bindings.
- CPButton supports multiple argument + target bindings.
- CPImageView and CPTextField support multiple-value editable bindings.
- CPMenuItem supports multiple-value enabled bindings.
- Fixed bugs in CPObjectController with simple collection operators.
- CPColorWell uses black as the placeholder color.
- Runtime object attributes from a cib are applied as they are read, not deferred.
- NSNumberFormatter now reads the number style from the xib.
- Normalized some parameter names.
- Formatting.
- Test app for all binding types.
2013-02-15 12:21:13 -05:00
aparajita
c3d565c7e5
Merge pull request #1765 from BlairDuncan/pngSystemCursors
...
pngs of cursors missed in last commit
2013-02-14 22:29:27 -08:00
Blair Duncan
737a8323f2
pngs of cursors missed in last commit
2013-02-14 22:28:51 -05:00
aparajita
9919a30a72
Merge pull request #1764 from BlairDuncan/pngSystemCursors
...
Custom system cursors to use sprited png's for non IE browsers
2013-02-14 18:23:07 -08:00
Blair Duncan
055d43eb23
Custom system cursors to use sprited png's for non IE browsers
2013-02-14 16:35:30 -05:00
aparajita
2425c8c5d3
Merge pull request #1614 from cacaodev/CPDictionary-initWithObjectsAndKeys
...
CPDictionary -initWithObjectsAndKeys: do not treat a nil value as a final value
2013-02-14 11:39:21 -08:00
aparajita
3e1a9434db
Merge pull request #1717 from daboe01/master
...
fix for scrollwheel in FF>3 (issue #1244 )
2013-02-14 09:12:04 -08:00
cacaodev
4408e480dd
Minor test app improvements: copy cursor, 2nd collection view: fix mask & enable selection and dragging.
2013-02-14 16:13:08 +01:00
Alexander Ljungberg
80d5bf4458
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-13 23:10:22 +00:00
Alexander Ljungberg
71f6e9ac52
Refs #1757 . Improve fix.
2013-02-13 23:09:24 +00:00
cacaodev
4791973b02
If maxNumberOfRows == 0 (the default), ignore maxNumberOfRows
2013-02-13 23:54:02 +01:00
Alexander Ljungberg
d82c0a5e0e
Merge pull request #1757 from BlairDuncan/textFieldFix
...
Fix for textfield propogating command N [+1]
2013-02-13 22:45:07 +00:00
Antoine Mercadal
26890ebe44
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-02-13 11:39:08 -08:00
Alexander Ljungberg
ed73fa12b1
Refs #1757 . Add a toggle-able text field to CPDocumentControllerTest to facilitate of testing of text fields effect on Cmd-N accelerator.
...
In my testing, the presence or enabled state of the text field appeared to have no effect. In Safari cmd-n always worked, in Chrome it never worked.
2013-02-13 19:26:13 +00:00
Alexander Ljungberg
1022029bd9
Merge pull request #1758 from cacaodev/CPCollectionView-issue1755
...
CPCollectionView Issue 1755:
2013-02-13 18:53:34 +00:00
cacaodev
108042c190
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
AppKit/CPTableView.j
Tests/Manual/TableTest/TableCibTest/AppController.j
2013-02-13 19:27:53 +01:00
daboe01
1f19e028d5
CPWebView scrollwheel fix
2013-02-13 19:07:06 +01:00
cacaodev
21b5eade71
CPCollectionView Issue 1755:
...
Create the drop indicator in mouseEntered if needed. This is the case where the collection view is a drop destination but not a drag source.
In _updateDragAndDropStateWithDraggingInfo... , handle the special case where the drop destination is 0 (includes item count == 0).
Test app: add an empty collection view acting as a drop destination for the first collectionView.
2013-02-13 17:47:27 +01:00
Alexander Ljungberg
2ddb858647
Refs #1678 . Minor tweak.
2013-02-13 15:04:08 +00:00
Alexander Ljungberg
13ede53195
Merge pull request #1678 from mrcarlberg/scroll_rect_to_visible
...
Fixed scrollRectToVisible in CPView
2013-02-13 14:52:54 +00:00
Blair Duncan
06bd951d71
Fix for textfield propogating command N introduced and discussed on commit 782f47a
2013-02-13 09:38:07 -05:00
Alexander Ljungberg
b59440584d
Fixed: new file API test caused 'Cannot find function setAttribute in object [object Object]' unit test error.
2013-02-13 13:56:28 +00:00
Alexander Ljungberg
3ba0f58738
Travis no longer has the jdk_switcher so let's try without.
...
Maybe it'll work with the JDK 7 fix.
2013-02-13 13:01:38 +00:00
Stefan Eilers and Alexander Ljungberg
61b19a1df5
Fix "jake release"
2013-02-13 12:24:58 +00:00
Aparajita Fishman
76ff2a4492
Added a totally gnarly example of how to do complex custom data views using Xcode and bindings
2013-02-13 00:08:10 -05:00
Aparajita Fishman
5a558a9d50
Eliminated the "SomethingElse" framework that no one actually removes, declared theWindow as an @outlet to make XcodeCapp happy.
2013-02-13 00:07:04 -05:00
Aparajita Fishman
fa83ba816b
Fixed missing ivar and updated url
2013-02-13 00:05:42 -05:00
Aparajita Fishman
1b948b584f
CPProgressIndicator fixes
...
- Make height 20px, same as in Xcode, so we can actually lay them out correctly without guessing. And they were just too tall at 25px anyway.
- In case the height does change in the future, calculate the correct height from the theme in NSProgressIndicator.
- Updated the theme descriptor to include the default height.
- Updated Aristo 2 PSD progress indicator artwork.
- Moved init of CPProgressIndicatorSpinningStyleColors out of layoutSubviews, it is file global and only needs to get done once.
2013-02-12 22:35:45 -05:00
Aparajita Fishman
6472ac7701
Formatting, import fixes
2013-02-12 22:29:31 -05:00
Aparajita Fishman
498f494961
Added valueForBinding:
2013-02-12 15:03:33 -05:00
aparajita
dc97b638cf
Merge pull request #1752 from cacaodev/CPColorWell-binder
...
Use appropriate subclassing in CPColorWellValueBinder
2013-02-12 11:58:56 -08:00
Aparajita Fishman
c0d01ec752
DRY!
2013-02-12 14:44:26 -05:00
Aparajita Fishman
8b17b52575
value and isIndeterminate binding support for CPProgressIndicator
2013-02-12 14:36:10 -05:00
cacaodev
b91b85a0b2
Use appropriate subclassing in CPColorWellValueBinder
2013-02-12 20:15:15 +01:00
Alexandre Wilhelm
b6a7615d8f
Fixed bug about the offset of a pullsdown CPPopUpButton close #1053
2013-02-12 11:06:39 -08:00
Alexander Ljungberg
1e6c7fa6d0
Fixes #1749 . Fix CPGradient error introduced by 08ad614.
2013-02-12 16:41:54 +00:00
Aparajita Fishman
c67b212538
Changed PLATFORM_FEATURE to an array, we ran out of bits, added CPFileAPIFeature test
2013-02-12 04:01:06 -05:00
Aparajita Fishman
73d685adf5
Remove stray console.log
2013-02-11 23:42:11 -05:00
Aparajita Fishman
e4283e2dc2
CPByteCountFormatterUseDefault doesn't need to be transformed, I'm checking for it in the code
2013-02-11 23:32:11 -05:00
Aparajita Fishman
a622f5ca9b
Formatting
2013-02-11 23:08:08 -05:00
Aparajita Fishman
12b2bd2c52
Wrong filename in header
2013-02-11 19:46:06 -05:00
Aparajita Fishman
aeb42ea4f8
CPByteCountFormatter, a complete implementation of NSByteCountFormatter, with test app
2013-02-11 14:08:41 -05:00
Aparajita Fishman
9d99b5f550
Hardly worth using a #define for something called once
2013-02-11 14:06:31 -05:00
Aparajita Fishman
63ae5848f6
Formatting, fixes for CPDecimal/CPDecimalNumber
...
- CPDecimalRound should return a result in all cases
- Fixed test of CPDecimalRound with CPDecimalNoScale
2013-02-11 14:05:52 -05:00
Andrew Hankinson
6a74832c8b
Formatting for NSBrowser.j
2013-02-11 12:13:33 -05:00
Aparajita Fishman
117dda3bb5
Fix unintended globals
2013-02-11 11:17:19 -05:00
Aparajita Fishman
43817779c5
Ignore CPMenu -itemChanged: when unarchiving menu items
2013-02-11 11:07:37 -05:00
Aparajita Fishman
9af2648b22
Replace nil with CPNull
2013-02-11 11:06:34 -05:00
Aparajita Fishman
caed991cb1
Reformat to make it actually readable, fixed a wrong value
2013-02-11 11:05:55 -05:00
Alexander Ljungberg
654cf22f3c
Refs #1743 . Insert button in ArrayController1 test.
...
Also clean up test a little by initialising the array controller in the xib and connecting the buttons there. This is more natural.
Also make each object created in the table numbered to make it easier to see which one was just added.
2013-02-11 11:36:38 +00:00
Alexander Ljungberg
ff7fdaa251
Merge pull request #1743 from ahankinson/fix-issue1723
...
Fix for #1723 : CPArrayController insert
2013-02-11 11:21:43 +00:00
Alexander Ljungberg
5361b787c5
Merge pull request #1744 from stevegeek/master
...
Fix for issue #1720
2013-02-11 11:08:47 +00:00
Andrew Hankinson
5830269fea
Move variable into initialization. Remove unused variable.
2013-02-10 23:57:47 -05:00
Andrew Hankinson
391abe4991
Merge branch 'refs/heads/master' into nib2cib-cpbrowser-compat
2013-02-10 22:45:31 -05:00
Andrew Hankinson
82605f4170
Cause insert: to behave like Cocoa
...
This fix inserts a new object at the current index, rather then the next. This diverges from the Cocoa documentation, but follows the Cocoa behaviour.
2013-02-10 20:58:58 -05:00
Aparajita Fishman
2221d40f47
Log if there is a formatter attached to a text field
2013-02-10 20:05:14 -05:00
Andrew Hankinson
ab49c63840
Fix for #1723 : CPArrayController insert
...
This fix addresses the following problems:
- fixes a bug with add: where it would try to add the sender object, not the represented object
- changes insert: to insert a new represented object after the currently selected object. If no object is currently selected it behaves like add: and adds a new object to the end.
This patch includes tests.
2013-02-10 20:03:41 -05:00
Aparajita Fishman
b6a520e350
Typos, formatting
2013-02-10 20:02:55 -05:00
Alexander Ljungberg
a5e1ed44f4
Refs #1734 . Include pulldown buttons in pop up button manual test.
...
These pulldowns are bound the same way as their corresponding regular popups.
2013-02-10 23:12:21 +00:00
Alexander Ljungberg
a78d69c89e
Merge branch 'aristo2-pulldown-themefix' of https://github.com/ahankinson/cappuccino into ahankinson-aristo2-pulldown-themefix
2013-02-10 23:04:11 +00:00
Alexander Ljungberg
9a7996d40d
Fixed: CPPopUpButtonTest using non-existent methods.
...
There's no `selectedTag` getter for CPPopUpButton (although there's such a binding but that's separate). Also don't call private API that no longer exists - use proper public API instead.
2013-02-10 22:57:43 +00:00
Alexander Ljungberg
fb577f8b70
Merge pull request #1741 from ahankinson/fix-issue1633
...
Fix for #1633 : setRepresentedFilename
2013-02-10 22:43:15 +00:00
Andrew Hankinson
933a1be8e1
Fix for #1633 : setRepresentedFilename
...
Without this fix, CPWindow setRepresentedFilename is set as a string, not a CPURL (as specified by the variable type). (With tests)
2013-02-10 17:39:24 -05:00
Alexander Ljungberg
5f99ebefb1
Merge pull request #1739 from ahankinson/fix-issue224-mainmenu
...
Fix for #224 : Remove un-necssary default menu items
2013-02-10 13:22:07 +00:00
Alexander Ljungberg
16c463f612
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-10 13:14:09 +00:00
Alexander Ljungberg
3406cdfb02
Refs #1663 . Whitespace.
2013-02-10 13:13:54 +00:00
Alexander Ljungberg
69915701de
Merge pull request #1663 from BlairDuncan/CPBrowserCursorNavigationFix
...
Fix for left/right cursors in CPBrowser
2013-02-10 13:09:36 +00:00
Alexander Ljungberg
6f4ef18815
Use an icon that exists in manual CPBrowser test.
2013-02-10 13:09:25 +00:00
Antoine Mercadal
ef1c5949f1
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-02-08 10:36:43 -08:00
Alexander Ljungberg
9a646f856b
Merge pull request #1673 from mrcarlberg/handle_null_in_cp_description_of_object
...
Fixed error in CPDescriptionOfObject when JSON property has null value
Conflicts:
Foundation/CPObject.j
2013-02-08 12:02:05 +00:00
Alexander Ljungberg
21efb90b4c
Refs #1700 . Fixed: setItemPrototype crash.
...
Setting the item prototype without first adding the collection view to a view would cause a crash, as would reloadContent.
This fix makes sure the collection view doesn't try to tile itself unless it has a frame.
2013-02-08 11:46:08 +00:00
Alexander Ljungberg
1248b1fb29
Refs #1700 . Fix unknown class or global warnings.
2013-02-08 11:26:56 +00:00
Alexander Ljungberg
8ed85ede2c
Refs #1700 . Use more macros.
2013-02-08 11:17:45 +00:00
Alexander Ljungberg
6181b75d9f
Refs #1700 . Make reloadContentCachingRemovedItems: a private method.
2013-02-08 11:02:02 +00:00
Alexander Ljungberg
7b1ffb942f
Refs #1700 . Clean up and use macros.
2013-02-08 11:01:19 +00:00
Alexander Ljungberg
61990e764c
Merge pull request #1700 from cacaodev/CPCollectionViewItem-loading
...
CPCollectionView -maxItemSize support, content binding, collection view item loading ... [+4]
2013-02-08 10:52:00 +00:00
Andrew Hankinson
9c0c87d4c2
Fix for #224
...
This commit removes some of the more nonsensical main menu items in the capp NibApplication template.
2013-02-07 23:30:54 -05:00
Alexander Ljungberg
535b8e5fc4
Fixed: orphan token field autocomplete menus.
...
If the parent or grandparent window of a token field which was showing an autocomplete menu was closed, the menu would stick around even that the token field was gone.
This fix makes the token field autocomplete menu a proper child window which should also ensure it moves as needed if the parent window moves.
2013-02-08 00:42:53 +00:00
Alexander Ljungberg
baa69ff3bc
Fixed: "cannot read property '_tokenScrollView' of null."
...
This error could occur when interacting with token fields.
2013-02-08 00:34:25 +00:00
Alexander Ljungberg
4991913f45
Fixes #1716 . Fixed: blurry popovers in Chrome.
2013-02-08 00:29:38 +00:00
Aparajita Fishman
b28ff18918
Adding missing key
2013-02-08 07:48:41 +08:00
Alexandre Wilhelm
c38495de88
Fixed bug with the dividerColor of a standardWindow in Aristo1
2013-02-07 10:56:03 -08:00
Antoine Mercadal
563fb657a4
Change some pixel adjustements to reflect what IB is doing in nib2cib
2013-02-06 17:01:27 -08:00
Alexandre Wilhelm
b516f14f57
updated slices of aristo2
2013-02-06 11:16:24 -08:00
Alexandre Wilhelm
d0ef3c950b
Fixed bug about the border of the dividerColor in a window
2013-02-06 11:15:39 -08:00
Alexandre Wilhelm
67b006f385
Fixed the bug about the dividerColor in a standardView
2013-02-06 10:55:49 -08:00
Alexander Ljungberg
cd2b2a4d61
Merge branch 'refs/heads/master' into slevenbits
2013-02-06 16:37:49 +00:00
Alexander Ljungberg
e12285ecfa
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-06 16:37:19 +00:00
Alexander Ljungberg
3a92c013eb
Formatting.
2013-02-06 16:37:03 +00:00
Alexander Ljungberg
e376f97b46
- CPShadow set.
2013-02-06 16:36:49 +00:00
Alexander Ljungberg
08ad614611
CPGradient drawInBezierPath:angle:.
2013-02-06 16:36:33 +00:00
Alexander Ljungberg
d1ebf8d697
Make CPShadow mutable.
...
This commit adds the various `CPShadow` setters such as `setShadowColor:`.
2013-02-06 15:02:03 +00:00
Alexander Ljungberg
4680f0fcc6
CPGradient initWithStartingColor:endingColor:.
2013-02-06 15:00:58 +00:00
Aparajita Fishman
0892ca1a2d
Popovers should not overlap the menu bar
...
Also eliminated redundant code in CPMenu -menuBarHeight
2013-02-06 19:24:09 +08:00
Antoine Mercadal
27f498f40a
fix typo
2013-02-05 18:35:59 -08:00
Antoine Mercadal
c8029ee081
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-02-05 18:24:38 -08:00
Antoine Mercadal
b5e6f888d7
Support for project history and quick switch in XCC
2013-02-05 18:24:32 -08:00
Alexandre Wilhelm
66dfcd3700
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-02-04 16:33:06 -08:00
Alexandre Wilhelm
114cd51971
Removed useless code in layoutSubviews
2013-02-04 16:32:51 -08:00
Antoine Mercadal
e4e07b90d9
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-02-04 13:09:09 -08:00
Alexandre Wilhelm
eb6bade2cf
Fixed the bug abouth the sheet shrinking
2013-02-04 13:05:53 -08:00
Alexandre Wilhelm
d5cf9e34db
Fixed bug about the size of a standardView
2013-02-04 13:05:25 -08:00
Alexander Ljungberg
c5c381a034
Merge remote-tracking branch 'stewa/truepredicate-fix'
...
Conflicts:
Foundation/CPPredicate/CPPredicate.j
2013-02-04 19:02:49 +00:00
Alexander Ljungberg
ee5e6d3239
Merge pull request #1736 from cacaodev/_CPJavaScriptArray-objectsAtIndexes
...
_CPJavaScriptArray -objectsAtIndexes: implementation.
2013-02-04 17:24:48 +00:00
Alexander Ljungberg
0a8214b4cb
Merge branch 'refs/heads/master' into slevenbits
2013-02-04 16:51:29 +00:00
Alexander Ljungberg
6b0565e9ab
Fixed: CPBox with CPBezelBorder had unexpected inner shadow.
...
Without this fix, a CPBoxOldStyle box with a CPBezelBorder would draw with the correct border colour and fill, but with an additional inner shadow, unlike Cocoa.
This fix makes it so that only primary and secondary boxes draw with the special "well"-like shadow style.
2013-02-04 16:39:08 +00:00
Alexander Ljungberg
0fa56cb273
Fixed: in recent CPBox versions, corner radius set in IB was ignored.
...
Without this fix, setting a corner radius of 0 on a CPBoxCustom resulted in there being a corner radius anyhow.
This fix makes sure to preserve the corner radius, border width and margins for non-primary style boxes.
2013-02-04 16:26:26 +00:00
cacaodev
04026c054b
_CPJavaScriptArray -objectsAtIndexes: implementation.
...
Added speed test in CPArrayPerformanceTest (6x faster).
2013-02-04 17:26:18 +01:00
Alexander Ljungberg
3d9b69a860
Fixed: broken corners on primary CPBox in Chrome.
...
In Chrome, a primary CPBox (showing the new recessed rounded corner look) had distorted and jagged edges in Chrome due to the clipping mask.
This fix places the clipping mask on integer coordinates which seems to resolve the problem.
2013-02-04 15:40:01 +00:00
Alexander Ljungberg
d049d067ab
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-04 13:00:27 +00:00
Alexander Ljungberg
4e3fb88dba
Merge branch 'refs/heads/slevenbits-tokenfield-menu'
2013-02-04 13:00:12 +00:00
Alexander Ljungberg
c42184951f
Make Aristo 2 tokens balanced for hiding button.
...
In Aristo 2, the token field tokens would always show the close button, and make a big space for it.
This change makes it so that when the delete button, and the new disclosure button, are hidden, which is most of the time, the token doesn't look like it has a big empty hole on the right side.
2013-02-04 11:57:30 +00:00
Alexander Ljungberg
03e4c49091
Improve token field disclosure arrow implementation.
...
- Tighten up hover state code.
- CPCoding support.
- Make sure to initialise button type to `CPTokenFieldDisclosureButtonType` rather than null.
- Don't try to lay out disclosure/delete button in the token token.
2013-02-04 11:53:18 +00:00
Alexander Ljungberg
0229e1938e
Token field disclosure arrow for menu.
...
Disclosure arrow behaves like in Cocoa: it shows on hover and if clicked displays the token specific menu.
This change also removes the delete button by default. The delete button can be enabled with `[tokenField setButtonType: CPTokenFieldDeleteButtonType]`.
2013-02-04 01:26:16 +00:00
Alexander Ljungberg
0f6461602e
Fixed: crash in token field autocomplete.
...
Without this fix, the autocomplete field would try to select the CPNotFound index from time to time which has always been wrong but is now specifically an error in Cappuccino.
The fix is to select nothing instead.
2013-02-03 22:39:54 +00:00
Andrew Hankinson
951e439eaf
Fix pulldown button theming
...
Without this fix, the pulldown button style displays using the same right-hand side widget as the popup button. This fix creates a new set of bezel images specifically for the popup button.
2013-02-03 17:17:29 -05:00
Andrew Hankinson
5a226464de
Add basic compatibility for CPBrowser
...
Without this fix, nib2cib fails in converting CPBrowser widgets from Interface Builder.
This should probably be made more robust in the future.
2013-02-03 13:45:22 -05:00
Alexander Ljungberg
49c52a00be
Fixed: disappearing token delete button.
...
The token delete button becomes visible on mouse over of the token in the standard theme. It could be made to disappear even that the mouse was still over the token by mousing over the button itself and then out.
This fix delegates all hover management to the token alone.
2013-02-03 18:40:06 +00:00
Aparajita Fishman
a339368023
Use CPWindow_Constants.j instead of @globals
2013-02-03 18:02:27 +08:00
aparajita
ef1c2b4f03
Update CONTRIBUTING.md
2013-02-03 16:46:13 +08:00
Aparajita Fishman
d8e4769972
Misc. tweaks
...
- Removed stray console.error
- Made border of tooltips darker, they were almost invisible, even over a white background
- Added CGAlignStroke and CGAlignCoordinate, they are of general use
2013-02-03 08:39:30 +08:00
Alexander Ljungberg
2be644d4b1
Merge branch 'refs/heads/master' into slevenbits
2013-02-02 11:15:29 +00:00
Alexander Ljungberg
1dde5a12c4
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-02-02 11:14:56 +00:00
Alexander Ljungberg
f9095ceb74
Fix CPError typos.
2013-02-02 11:14:45 +00:00
Alexander Ljungberg
18d77ca9f7
CPTokenField menu per token support.
...
This change implements support for the CPTokenField delegate method `tokenField:menuForRepresentedObject:` (and the associated `tokenField:hasMenuForRepresentedObject:`).
2013-02-02 01:28:31 +00:00
Aparajita Fishman
b2fa60ae08
Based on further testing, it seems .4 seconds is the Cocoa sticky time
2013-02-02 08:29:54 +08:00
Antoine Mercadal
cbaf562c44
Revert back the sticky time to 0.5
2013-02-01 16:24:45 -08:00
Antoine Mercadal
250f255253
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-02-01 15:20:55 -08:00
Antoine Mercadal
9a4e7fc467
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-02-01 15:20:48 -08:00
Antoine Mercadal
351ee1a54e
Increase the menu sticky interval to 0.2
2013-02-01 15:20:42 -08:00
Alexandre Wilhelm
aa40a039f9
Fixed bug with position of buttons in CPAlert
2013-02-01 14:50:46 -08:00
Alexander Ljungberg
55ec70cbd6
CPError class.
2013-02-01 18:36:03 +00:00
Aparajita Fishman
48d711023e
Merge branch 'refs/heads/fix-CPWindow-cluster' into cappuccino
2013-02-01 18:42:18 +08:00
Antoine Mercadal
99c1e890b3
Add theme descriptors for popovers in Arsito2 and make the gradient a little bit whiter
2013-01-31 15:26:02 -08:00
Antoine Mercadal
6b17cd4d9e
Add theme descriptors for popovers
2013-01-31 15:25:32 -08:00
Antoine Mercadal
8cbfc79034
makes popover's background and stroke color (both minimal and hud style) themable
2013-01-31 15:25:18 -08:00
Antoine Mercadal
b3bf190e10
Reduce the menu sticky interval to 0.1 which improve UX and is more like Cocoa behavior
2013-01-31 13:10:44 -08:00
Antoine Mercadal
d83d63b3e6
Remove unused global STICKY_TIME_INTERVAL in _CPMenuWindow.j
2013-01-31 13:09:51 -08:00
Aparajita Fishman
64d1465dfe
If an event listener is marked to dequeue, dequeue even if the event does not match the mask
...
* Note that this does not match the Cocoa documentation, but a whole bunch of event handling code relies on this behavior, so I have to keep it the way it was.
* Fixed dequeue flag in CPApplication -runModalSession:
* Added a window title in CPAlertTest
2013-01-31 16:33:33 +08:00
Antoine Mercadal
952fd59c42
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-01-30 17:05:52 -08:00
Antoine Mercadal
bfb85ccfd2
Various fixes in CPMenu
...
- No shadow when hightlighted (like Cocoa)
- Themable separator color/text color/shadow color
2013-01-30 17:04:11 -08:00
Antoine Mercadal
42eb4e2da1
Remove unused and commented layout variables
2013-01-30 17:04:05 -08:00
Aparajita Fishman
acc240b669
Missing semicolon
2013-01-31 07:42:06 +08:00
Alexander Ljungberg
b07f95c362
Fix WithBindings test.
...
Fix up imports and re-run nib2cib.
2013-01-30 16:24:06 +00:00
Alexander Ljungberg
181c4ad3c6
Support IBOutlet as a synonym to @outlet.
...
Without this fix the new compiler would treat IBOutlet as the type and expect the next token to be the ivar name.
This fix make the new compiler treat IBOutlet the same as @outlet.
2013-01-30 15:48:30 +00:00
Alexander Ljungberg
50a586f489
Merge branch 'refs/heads/0.9.7'
2013-01-30 15:46:47 +00:00
Alexander Ljungberg
0821794bcc
This will be Cappuccino 0.9.7-alpha1.
2013-01-30 14:52:48 +00:00
Aparajita Fishman
347e9cc811
Move CPWindow+CPDraggingAdditions to CPWindow to avoid circular dependency
2013-01-30 22:36:40 +08:00
Aparajita Fishman
1a26fbf6f4
Rework CPWindow cluster so CPWindow's code is in its file
2013-01-30 22:35:21 +08:00
Alexander Ljungberg
fc0689fc3c
Revert "Fix Travis paths"
...
This reverts commit 5b28d5f457 .
2013-01-30 13:43:30 +00:00
Aparajita Fishman
5b28d5f457
Fix Travis paths
2013-01-30 21:20:50 +08:00
Alexander Ljungberg
da47161e1a
Fixed: nib2cib error on case sensitive filesystems.
...
Before this fix, nib2cib compilation would fail with `require error: couldn't find "OS"`.
2013-01-30 11:52:28 +00:00
Alexander Ljungberg
450081ee3e
Fixed: 'cannot run program "ulimit"' error.
...
When running on certain platforms the `ulimit` command is not available, which would crash the build script.
This change simply refrains from using the `ulimit` command if it's not available.
2013-01-30 11:38:39 +00:00
Alexander Ljungberg
e30d54723d
Since a too low ulimit aborts the build, it's an error.
2013-01-30 11:35:59 +00:00
Alexander Ljungberg
c874efaa24
Merge pull request #1728 from gildegoma/pr-forkable-travis-yml
...
Fixed: 2 integration problems with Travis CI
2013-01-30 11:17:29 +00:00
Alexander Ljungberg
28473a86dc
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-30 11:15:10 +00:00
Alexander Ljungberg
57b2d73632
Fixed: undefined location of key events.
...
Without this fix all regular key events such as `CPKeyDown` would have an undefined location.
Since the location can't be retrieved from the browser on key events, this fix now makes it so that the last seen mouse position is included with each key event.
2013-01-30 11:15:01 +00:00
Stephen Ierodiaconou
e17253d592
Fixes for #1720 : CPDecimalCompare problems when comparing to zero.
2013-01-30 13:03:43 +02:00
Aparajita Fishman
eefec02de4
Fixed tracking event listener test to actually look for tracking events, fixed some method documentation
2013-01-30 18:15:42 +08:00
Gilles Cornu
c73a96ef7e
Fixed: 2 integration problems with Travis CI
...
Before this fix:
* Build PATH has recently changed on Travis CI and hard-coded values in `.travis.yml' were no more valid (the `builds` folder has been renamed as `build`)
* Any contributor that forked the main project repository had to modify the definition of environment variables in order to integrate with http://travis-ci.org
With this fix cappuccino is correctly configured to be built on Travis CI and makes `.travis.yml` more generic (forkable).
2013-01-30 08:40:24 +01:00
Aparajita Fishman
6e424478f1
Warn users if the ulimit is too low and tell them what to do.
...
Setting ulimit in narwhal.conf isn't necessary, not all targets need a larger limit. In addition, if the hard limit is 512, it can't be set above that once the terminal session starts.
2013-01-30 12:46:27 +08:00
Alexander Ljungberg
e4ff2fe476
Merge branch 'refs/heads/0.9.6'
2013-01-29 23:31:32 +00:00
Alexander Ljungberg
ad11967893
Fixed: documentation version number lagging behind.
2013-01-29 23:28:35 +00:00
aparajita
120d726b8e
Merge pull request #1727 from slevenbits/slevenbits-child-windows
...
Child window support + popover fixes
2013-01-29 02:42:06 -08:00
Aparajita Fishman
b7d1ccf9b6
Child window/popover fixes
...
- Added CPWindow -_parentWindowDidOrderInChild to notify a window when it is directly ordered in by a parent.
- Fixed observing of target view frame changes to work in all possible cases.
- Fixed typo in code introduced in last commit in CPApplication -sendEvent.
2013-01-28 12:36:59 +08:00
Aparajita Fishman
fdbef474f0
Final fixes for popovers as child windows
...
- Fixed case where a dangling transition function was left when closing a popover.
- Fixed case where closing a popover, moving the target view, then reopening the same popover would not reposition the popover when resizing the target view's window.
- Optimized repositioning of popover on target view change.
- Implemented transitional popovers via trapped mouse down events.
- Implemented dequeue: argument of CPApplication -setTarget:selector:forNextEventMatchingMask:untilDate:inMode:dequeue: and -setCallback:forNextEventMatchingMask:untilDate:inMode:dequeue:.
- Fixed some child window behavior when ordering/closing.
- Eliminated no longer necessary window close notification in CPPopover.
- Fixed window title in theme so it doesn't dim when window is main but not key.
2013-01-28 09:32:37 +08:00
Alexander Ljungberg
b34e24d593
Fixed: mutableArrayValue remove repeat values.
...
mutableArrayValueForKey: … removeObjectsInArray should remove all instances of the found objects. Without this fix, only the first instance was removed.
2013-01-28 00:31:50 +00:00
Aparajita Fishman
c29a54e21a
More work on child windows
...
- Popovers are implemented as child windows.
- Renamed _CPAttachedWindow/_CPAttachedWindowView to _CPPopoverWindow/_CPPopoverWindowView, since that is its only use.
- The default for CPView -acceptsFirstMouse is now NO, per Cocoa. Subclasses override this as necessary.
- _CPWindowView -hitTest returns self it the mouse is within a resize region, which may be outside the window's frame.
- Fixed an off by one bug in CPDomWindowLayer -insertWindow:atIndex:, where inserting a visible window behind a window it is already behind would cause it to move up one from its intended position.
- Updated the ChildWindows and CPPopover test apps.
2013-01-27 10:32:23 +08:00
Aparajita Fishman
25633f03c5
Child window support
...
- Added child window support with test app
- Miscellaneous cleanup
- Reformatted switches
2013-01-27 10:32:23 +08:00
Aparajita Fishman
7e635fb4ea
Change setFullBridge to setFullPlatformWindow
2013-01-27 10:31:17 +08:00
Alexander Ljungberg
0b865da3be
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-26 12:03:52 +00:00
Alexander Ljungberg
30ae887126
Fix unit tests failing due to recent description changes.
2013-01-26 12:03:28 +00:00
Alexander Ljungberg
75d73d3a5e
Format object descriptions like object literals.
...
This change makes CPDictionary descriptions exactly like Objective-C literals. Later when Objective-J adds support for such literals too, it'll be possible to just copy and paste a CPDictionary description into code.
Also updated CPArray to look similar for consistency.
2013-01-26 12:01:20 +00:00
Aparajita Fishman
0f57683e22
Merge branch 'refs/heads/new-PatternColor' into upstream
2013-01-26 15:52:39 +08:00
Aparajita Fishman
6a7e0ff921
Reworked PatternColor to be a lot smarter, supports much more concise expression of images.
...
- Removed unused images.
- Renamed slices to make more sense.
- Fixed typos in slice names.
2013-01-26 15:50:07 +08:00
Alexander Ljungberg
237143851d
Fixed: KVC array removeObjectsInArray:.
...
Without this fix, KVCArray could try to remove an out of bounds index at CPNotFound from its target array.
This fix makes it so that only found objects are removed.
2013-01-26 01:18:22 +00:00
Alexander Ljungberg
76e9725e26
Error on adding CPNotFound to an index set.
2013-01-26 01:11:33 +00:00
Antoine Mercadal
1080ace4cd
Make the ugly fix for rhino a little bit uglier, but makes build on linux works
2013-01-25 10:11:07 -08:00
Aparajita Fishman
95790d55d5
Object description formatting
...
- Made CPDescriptionOfObject smarter about detecting CG objects
- CPObject, CPArray, CPDictionary do a better (as in perfect) job of indenting nested objects
- CPDictionary is displayed using Cocoa-style key = value; notation
2013-01-25 19:19:01 +08:00
Antoine Mercadal
2d34d458f4
typo
2013-01-25 01:08:51 -08:00
Antoine Mercadal
331a0a87b1
Small UI Update for error data views
2013-01-25 00:32:41 -08:00
Antoine Mercadal
628a4db746
Improve errors reporting
...
Errors are now displayed in a data view showing:
- the file
- the error message
- A button that allows you to open the errored file in the default system editor
2013-01-24 23:41:25 -08:00
Antoine Mercadal
b44a3c191d
Update Nib2CibBaselineAlignementTest
2013-01-24 20:35:03 -08:00
Antoine Mercadal
8f4fdeaa8f
Improve CPTextField positioniing in nib2cib
2013-01-24 20:34:06 -08:00
Antoine Mercadal
cd0f0e3f01
Readd default content-inset for CPTextField
2013-01-24 20:33:22 -08:00
Antoine Mercadal
abb4077c95
Greatly improve CPBoxTest
2013-01-24 19:46:27 -08:00
Antoine Mercadal
cc45fb58a8
Compensate box frame in nib2cib
2013-01-24 19:46:08 -08:00
Antoine Mercadal
b23cadea59
Fix bugs in CPBox and improve the way we draw lines
2013-01-24 19:45:26 -08:00
Antoine Mercadal
f27159f63f
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-24 18:41:41 -08:00
Alexandre Wilhelm
53c4dce509
Changed images for cancel button in CPSearchField
2013-01-24 17:25:42 -08:00
Alexandre Wilhelm
1aaab57edc
Fixed bug about the left disabled part of segmentedControl
2013-01-24 16:57:55 -08:00
Alexandre Wilhelm
1e004fefcc
Updated slices
2013-01-24 16:57:34 -08:00
Antoine Mercadal
fb2d2c8e05
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-24 16:15:58 -08:00
Antoine Mercadal
836d8d030c
Detect multiple actions with same name
2013-01-24 16:15:37 -08:00
Alexandre Wilhelm
38b772c523
Fixed the bug about the moving of the main window in the showcase
2013-01-24 16:13:01 -08:00
Antoine Mercadal
d8f1446e76
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-24 16:07:00 -08:00
Antoine Mercadal
f30b3afabd
XcodeCapp: parser.j is now using Objective-J 2.0
2013-01-24 16:06:54 -08:00
Alexandre Wilhelm
1656c60dee
Changed default size of object. Esclude object from the showcase
2013-01-24 15:59:24 -08:00
Alexandre Wilhelm
0f0b315f3b
Fixed bug about the cancel button in CPSearchField (changed the type of the button to CPMomentaryChangeButton)
2013-01-24 15:22:45 -08:00
Alexandre Wilhelm
f0bb8ce8a7
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-24 13:55:30 -08:00
Alexandre Wilhelm
899f40d5f5
Fixed bug about CPTableView and CPTableViewSelectionHighlightStyleSourceList in Aristo2
2013-01-24 13:55:20 -08:00
Antoine Mercadal
448d3958a2
Fix bug preventing any failure return.
2013-01-24 13:29:38 -08:00
Antoine Mercadal
f36b23bdb2
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-24 11:58:04 -08:00
Alexandre Wilhelm
f613f68570
Removed TODO comment
2013-01-24 11:55:24 -08:00
Alexandre Wilhelm
58d069ed7d
Fixed bug with hud style
2013-01-24 11:51:06 -08:00
Alexandre Wilhelm
3eca24ed58
Fixed bug about CPSearchField in Aristo1 (missing pictures)
2013-01-24 10:45:36 -08:00
Alexander Ljungberg
8aacdc0502
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-24 11:42:10 +00:00
Alexander Ljungberg
1f5920f685
Fix merge error in 1f98dbd.
...
This error caused some failing tests.
2013-01-24 11:41:59 +00:00
Aparajita Fishman
93fb849296
Import fixes
2013-01-24 19:18:39 +08:00
Antoine Mercadal
98cfe2922a
Disable artificial inset for labels in nib2cib
2013-01-23 23:39:44 -08:00
Antoine Mercadal
e09627775a
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-23 17:58:55 -08:00
Antoine Mercadal
90df913def
Add missing import in Aristo2 ThemeDescriptor
2013-01-23 17:58:49 -08:00
Alexandre Wilhelm
c1dc40c79b
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-23 17:22:16 -08:00
Alexandre Wilhelm
c5fbeffa9c
Fixed bug with position of the buttons in an alert
2013-01-23 17:22:07 -08:00
Aparajita Fishman
1f98dbdf65
Fixed test cases
2013-01-24 09:01:54 +08:00
Antoine Mercadal
2fdf51d12c
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-01-23 16:39:00 -08:00
Antoine Mercadal
fab6466180
Run nib2cib on some tests
2013-01-23 16:38:29 -08:00
Antoine Mercadal
fa708272bc
fix nib2cib to correctly place normal, small and mini labels
2013-01-23 16:38:16 -08:00
Antoine Mercadal
a9b68f7c39
Remove a default inset of 2.0 for labels
2013-01-23 16:37:33 -08:00
Alexander Ljungberg
6281c6469b
Fix unit test warnings.
2013-01-24 00:08:47 +00:00
Alexander Ljungberg
65fd33b9cf
Fixed: 64a0fb2 broke CPCharacterSet.
...
The `cs == nil` to `cs === nil` change introduced by 64a0fb2 was incorrect. Since `CPCharacterSet` is used widely through Cappuccino this broke many unit tests and much functionality.
The fix is to again consider both `nil` and `undefined` as cause for initing a new character set.
2013-01-23 23:33:42 +00:00
Alexander Ljungberg
401a5f7ff7
Clean up.
2013-01-23 22:28:01 +00:00
Alexander Ljungberg
1f0ab2ab49
Fixes #1721 . Fixed: bad negative numbers from CPNumberFormatter.
...
Without this fix, CPNumberFormatter didn't format negative values well. E.g. with thousands separators on it could generate, "-,999.00".
This fix generally improves handling of negative numbers by CPNumberFormatter.
2013-01-23 22:23:50 +00:00
Antoine Mercadal
fcad7a7fe4
Fix _CPToolTip.j never properly imported
2013-01-23 10:45:42 -08:00
Antoine Mercadal
98daaf858f
Add missing import
2013-01-23 10:45:20 -08:00
Antoine Mercadal
348d689243
If the targetView of attachedWindow has no more window, close the popover instead of trying to reposition it
2013-01-23 10:45:09 -08:00
Antoine Mercadal
4acd11d649
Merge branch 'objj_compiler2' into integ
2013-01-23 10:05:11 -08:00
Aparajita Fishman
af47857a47
Fixed missing/circular imports in nib2cib
2013-01-23 23:10:10 +08:00
Martin Carlberg
1280b6e13e
Fixed new compiler to load frameworks for the environment that it is building and not for the environment that is running
2013-01-23 15:25:13 +01:00
Aparajita Fishman
a7587d631c
Oops, missed one
2013-01-23 17:16:36 +08:00
Aparajita Fishman
866e1f00f7
Objj2 compiler fixes
...
- Each file compiles individually with no errors or warnings.
- Added missing imports.
- Fixed imports to remove circularity.
- Removed unnecessary imports.
- Added missing headers.
- Added missing action_button.png.
- Replace CPMakeRect with CGRectMake.
2013-01-23 15:48:56 +07:00
Aparajita Fishman
4f377bcebe
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Misc. code cleanup.
Conflicts:
AppKit/CPWindow/_CPWindow.j
AppKit/Platform/DOM/CPPlatformWindow+DOM.j
2013-01-23 15:48:55 +07:00
Aparajita Fishman
64a0fb278b
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Fixed broken code in CPCharacterSet -hasMemberInPlane:
- Misc. code cleanup.
2013-01-23 15:45:08 +07:00
Antoine Mercadal
f8c9466d04
Add other missing imports
2013-01-22 15:47:33 -08:00
Antoine Mercadal
ef62191e6b
Fix missing imports and @global and @class
2013-01-22 15:44:56 -08:00
Antoine Mercadal
e25cee0855
Add missing @class
2013-01-22 13:10:55 -08:00
Antoine Mercadal
94439f0d10
Add new found warnings fixes
2013-01-22 12:47:29 -08:00
Antoine Mercadal
2385f48fe4
Add missing imports
2013-01-22 12:27:19 -08:00
Antoine Mercadal
ed98acc906
Add missing header + missing @global
2013-01-22 12:26:30 -08:00
Martin Carlberg
201c7637f6
Fixed new compiler to output better formatted error messages
2013-01-22 15:38:02 +01:00
Martin Carlberg
765b10611b
Fixed mouse location in key events and copy event
2013-01-22 10:34:04 +01:00
Martin Carlberg
28a135880d
Declared some functions when compiling in rhino
2013-01-22 10:33:36 +01:00
Martin Carlberg
2952812a4b
Fixed uninitialized warning message in new compiler when using rhino
2013-01-22 10:32:37 +01:00
Martin Carlberg
6c57c4b1e1
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-22 10:28:36 +01:00
Alexandre Wilhelm
706337d8fa
Fixed bug with focused textField
2013-01-21 16:07:00 -08:00
Alexandre Wilhelm
d13d9228e8
Updated slices
2013-01-21 16:05:19 -08:00
Alexandre Wilhelm
c4492fb1a1
updated images for textFields
2013-01-21 13:54:08 -08:00
Alexandre Wilhelm
6e6d4ebc76
Fixed bug about textFields
2013-01-21 13:52:52 -08:00
Alexandre Wilhelm
3b3aa6b2fe
Updated slices
2013-01-21 13:52:32 -08:00
Alexandre Wilhelm
11bad2e474
Fixed bug about the color in focused textField
2013-01-21 11:30:26 -08:00
Antoine Mercadal
556f17969c
Update CPComboxBox manual test
2013-01-21 09:33:06 -08:00
Antoine Mercadal
a2f40be00e
Fix small bug in Aristo2 and CPCombobox
2013-01-21 09:32:51 -08:00
Alexander Ljungberg
ce9531c80c
Merge tag 'v0.9.6' into slevenbits
2013-01-21 12:43:45 +00:00
Aparajita Fishman
cc0503c8a4
Fixed missing import, deprecated CP functions, misnamed ivar
2013-01-21 12:07:03 +07:00
Alexander Ljungberg
5ec9cf7faf
Fixed: "in" could not be a parameter in a message.
...
With the new compiler, messages such as `[a in:b]` could not be sent, the "in:" parameter throwing an unexpected token error. This was true both if "in" was the first argument or any of the subsequent parameters (such as in `[a something:X in:Y]`).
2013-01-21 02:11:51 +00:00
Alexander Ljungberg
cc05df412e
Fixed: objjc didn't print some errors.
...
Before this fix, certain errors during compilation such as not being able to load a file, would cause the compilation to fail without stating what went wrong.
This fix prints such errors and avoids crashing later when the result of the compilation is undefined.
2013-01-21 01:08:28 +00:00
Alexander Ljungberg
806c7935c5
Lint.
2013-01-20 19:10:41 +00:00
Alexander Ljungberg
e7f0400580
Formatting.
2013-01-20 18:24:48 +00:00
Alexander Ljungberg
ad109532be
It's enough to read flattensSources once.
2013-01-20 18:09:55 +00:00
Alexander Ljungberg
9dbfa99284
Lint.
2013-01-20 17:14:44 +00:00
Alexander Ljungberg
3c684404ed
Eliminate mystery CGPointPointer.
2013-01-20 16:44:40 +00:00
Alexander Ljungberg
d818615472
Missing import.
2013-01-20 16:35:48 +00:00
Alexander Ljungberg
06694061d2
Fix nib2cib error introduced by c3d8f4f.
...
This fixes `- [NSWindowTemplate setFullBridge:] unrecognized selector sent to instance` errors when running nib2cib.
2013-01-20 16:05:06 +00:00
Alexander Ljungberg
75c305ae0f
Clean up manual CPBox test.
2013-01-20 16:03:56 +00:00
Alexander Ljungberg
cb786a0166
Small CPBox optimisation.
...
No need to call `setNeedsDisplay:` after `setValue:forThemeAttribute:`.
2013-01-20 13:19:29 +00:00
Aparajita Fishman
e292bf01d7
Fixed mouse down within the resize slop outside a window not resizing
2013-01-20 09:13:17 +07:00
Aparajita Fishman
17f07ee888
capp_lint will not flag CPRectEdge, more linking
2013-01-20 07:24:00 +07:00
Antoine Mercadal
51c09a1b02
Merge branch 'CPRuleEditor-fixes' of https://github.com/cacaodev/cappuccino into pr-1718
2013-01-19 11:48:18 -08:00
cacaodev
fe7befa845
Fix missing @end
2013-01-19 17:11:11 +01:00
cacaodev
eca5ef6f84
Fix textfield in rules croped
2013-01-19 17:08:34 +01:00
cacaodev
c023a38544
Remove unused code
2013-01-19 17:07:11 +01:00
Aparajita Fishman
7c831fa19d
capp_lint flags deprecated CPPoint/Rect/Size types/functions
...
- Changed to corresponding CG types/functions in all files
- Fixed some demo app bugs
2013-01-19 16:51:56 +07:00
Aparajita Fishman
24c0f2aedc
Merge branch 'refs/heads/inactive-window'
...
Conflicts:
AppKit/Themes/Aristo/ThemeDescriptors.j
AppKit/Themes/Aristo2/ThemeDescriptors.j
2013-01-19 15:15:51 +07:00
Antoine Mercadal
6170a274d7
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-01-18 23:24:22 -08:00
Antoine Mercadal
155796b0e0
Linting Aristo1
2013-01-18 23:24:00 -08:00
Aparajita Fishman
3b7262681c
Added inactive state to window title bar
...
- When a window is neither key nor main the title bar is clearly different
- capp_lint ThemeDescriptors.j
- Renamed some layers in Aristo2 PSD to be more descriptive
- New artwork files for window close buttons
- Removed stray Aristo2 image
2013-01-19 14:20:51 +07:00
Antoine Mercadal
988ab9722c
Linting
2013-01-18 23:20:44 -08:00
Alexander Ljungberg
8eae427591
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-19 02:27:55 +00:00
Alexander Ljungberg
b4fe13dfb1
Merge branch 'refs/heads/0.9.6'
2013-01-19 02:27:43 +00:00
Alexander Ljungberg
c0b5ed6b3f
New demos repository.
2013-01-19 02:21:12 +00:00
Alexander Ljungberg
dfad18e047
New website location.
2013-01-19 02:11:37 +00:00
Alexander Ljungberg
7f93173b33
This will be the final v0.9.6.
2013-01-19 01:00:05 +00:00
Martin Carlberg
f435a15b43
Merge branch 'experimental_class_and_global_implementation' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
Tools/capp/Configuration.j
2013-01-18 23:51:36 +01:00
Martin Carlberg
08d5be5ce3
Fixed imports in Tools/capp
2013-01-18 23:49:22 +01:00
Antoine Mercadal
c3d8f4f80b
Fix bug in NSWindowTemplate.j where using a non existing ivar
2013-01-18 14:46:49 -08:00
Antoine Mercadal
bbb8bdb687
Fix other small bugs
2013-01-18 14:38:37 -08:00
Antoine Mercadal
4138a6d6dc
Merge branch 'objj_compiler2' into experimental_class_and_global_implementation
2013-01-18 14:35:03 -08:00
Antoine Mercadal
6b172cd3a6
remove useless usage of self. in NSWindowTemplate.j
2013-01-18 14:34:22 -08:00
Antoine Mercadal
86e0282011
Fix nib2cib warnings
2013-01-18 14:29:25 -08:00
Martin Carlberg
f1250ae5eb
Merge branch 'experimental_class_and_global_implementation' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-18 22:27:54 +01:00
Martin Carlberg
586c9d3139
Fixed "Can't find superclass 'MyClass' <Context File: Accessors>" problem when
...
compiling accessors to class with superclass in same file.
2013-01-18 21:23:11 +01:00
cacaodev
00fea3e02f
nib2cibed example
2013-01-18 20:24:18 +01:00
cacaodev
6a72855de8
Merge remote-tracking branch 'upstream/master' into CPCollectionViewItem-loading
2013-01-18 20:20:06 +01:00
Antoine Mercadal
6b0edaecc6
Move the editable property to _CPRuleEditorViewSlice.j as it is used in this class
2013-01-18 10:38:35 -08:00
Antoine Mercadal
a4bfd2c9f7
Add missing imports
2013-01-18 10:38:03 -08:00
Antoine Mercadal
7a419c262e
Add missing @class
2013-01-18 10:37:51 -08:00
Antoine Mercadal
40ac3210c4
Add missing import
2013-01-18 10:37:37 -08:00
Antoine Mercadal
3bb9e234d8
Add missing import
2013-01-18 10:37:27 -08:00
Antoine Mercadal
75a4ef99c9
Add some missing globals in CPTextField
2013-01-18 10:37:16 -08:00
Antoine Mercadal
1e4b6b6c49
Add missing import
2013-01-18 10:30:13 -08:00
Antoine Mercadal
c9eeab09a1
Add missing import in _CPWindow.j
2013-01-18 10:17:19 -08:00
Antoine Mercadal
1a61fc832e
Fix a bug in wrong code order in _CPMenuManager.j making usage of undeclared variable. Also add some missing imports
2013-01-18 10:16:55 -08:00
Antoine Mercadal
1d232fd263
Add missing import in BKShowcaseController.j
2013-01-18 10:03:11 -08:00
Martin Carlberg
197f3665bc
Fixed removed import
2013-01-18 17:33:09 +01:00
cacaodev
ce62e32dfa
Removed isa in CPTableCellView (Objj2 compat). nib2cibed all examples (Aristo2 compat).
2013-01-18 17:28:36 +01:00
cacaodev
2cc3521989
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Tests/Manual/CPOutlineViewCibTest/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
2013-01-18 16:57:46 +01:00
Martin Carlberg
6fbab322cf
Fixed warning messages in compiler
2013-01-18 14:25:05 +01:00
Martin Carlberg
458fa9d02e
Fixed a lot of small bugs found by new warning message from compiler
2013-01-18 14:24:37 +01:00
daboe01
9f85d2bdb3
fix for scrollwheel in FF>3 (issue #1244 )
2013-01-17 20:43:37 +01:00
Martin Carlberg
ff20822b47
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2_experiment
2013-01-17 18:20:07 +01:00
Aparajita Fishman
eff0621966
Formatting
2013-01-17 15:32:53 +07:00
Antoine Mercadal
6aeb6199f7
Restore line
2013-01-16 18:10:46 -08:00
Alexandre Wilhelm
072fac837c
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-16 18:06:59 -08:00
Alexandre Wilhelm
f1fa185383
Fixed bug about sheet/titled/window
2013-01-16 18:06:42 -08:00
Antoine Mercadal
c471bc0f82
Update CPScrollView manual test to be able to switch scroller mode
2013-01-16 14:21:08 -08:00
Alexandre Wilhelm
37e29949ef
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-16 14:12:13 -08:00
Alexandre Wilhelm
e840e4a547
Fixed bug about the width of legacy scrollView
2013-01-16 14:12:07 -08:00
Antoine Mercadal
82bb9a6008
Remove useless code in simple line CPBox
2013-01-16 13:42:46 -08:00
Antoine Mercadal
15ed959da7
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
2013-01-16 13:35:07 -08:00
Antoine Mercadal
a0f4c46cb5
Add missing import
2013-01-16 13:35:01 -08:00
Alexandre Wilhelm
71d5655ab2
Increased the content-inset left in textField
2013-01-16 11:57:04 -08:00
Alexandre Wilhelm
29d56b63f7
Fixed bug about border in CPBox lineBorder
2013-01-16 11:48:23 -08:00
Alexandre Wilhelm
35f495ef5b
Fixed bug about tableview row height in Aristo1
2013-01-16 11:16:04 -08:00
Antoine Mercadal
1006890b6e
Add missing import in nib2cib.
2013-01-16 10:50:33 -08:00
Antoine Mercadal
083d7304fd
Fix some adjustment of the tokenfields. Still need to tweak a little the image files for the tokens
2013-01-15 10:45:08 -08:00
Antoine Mercadal
2d8f651674
Merge branch 'objj_compiler2'
2013-01-15 10:20:10 -08:00
Antoine Mercadal
e8ee370499
Merge branch 'master' into objj2integration
2013-01-15 09:49:25 -08:00
Alexander Ljungberg
6aa62762d6
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2013-01-15 16:09:35 +00:00
Alexander Ljungberg
18bf69d2f3
Merge branch 'refs/heads/0.9.6' into slevenbits
2013-01-15 16:09:24 +00:00
Alexander Ljungberg
5c3d71258d
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-15 16:08:49 +00:00
Alexander Ljungberg
519031a10e
Merge branch 'refs/heads/0.9.6'
2013-01-15 16:08:40 +00:00
Alexander Ljungberg
821961fc26
Argument check CPIndexSet indexSetWithIndex:.
...
Without this check, an index set could be initialised with NaN which would later lead to an infinite loop when enumerating the index set.
This error makes the error early and explicit.
2013-01-15 16:08:17 +00:00
Alexander Ljungberg
4021eae002
Fixed: CPApplicationTest.
...
A recent commit broke it.
2013-01-15 16:06:44 +00:00
Martin Carlberg
0799ce190d
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-15 08:48:30 +01:00
Antoine Mercadal
a7c4802446
Merge branch 'master' into objj2integration
2013-01-14 18:22:30 -08:00
Antoine Mercadal
094c6fd273
Update Aristo2 to correctly render CPComboxBoxes
2013-01-14 18:22:12 -08:00
Antoine Mercadal
72a601371e
Merge branch 'master' into objj2integration
2013-01-14 17:34:36 -08:00
Antoine Mercadal
2a80ad8344
Fix bezel inset of focused textfields
2013-01-14 17:34:09 -08:00
Alexandre Wilhelm and Antoine Mercadal
7e502fffe6
Fixed bug in CPStepper for the automatic size of it when calling a static constructor
2013-01-14 15:54:14 -08:00
Antoine Mercadal
e5de031423
Merge branch 'objj_compiler2' into objj2integration
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-14 11:43:24 -08:00
Martin Carlberg
d064ecd842
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-14 20:39:08 +01:00
Antoine Mercadal
c0d33a1a19
Merge branch 'master' into Aristo2
...
Conflicts:
AppKit/CPAlert.j
2013-01-14 10:57:03 -08:00
Martin Carlberg
e78f211e8a
Added @class and @global declaration and will now make a warning if class or global is not declared.
2013-01-14 18:36:39 +01:00
Martin Carlberg
77d66fa0c9
Fix for: Track spaces will take the spaces after the next token instead of the current. Also do "delete" of property instead of setting it to null for cleaner AST tree.
2013-01-13 22:08:42 +01:00
Martin Carlberg
a652fdf8d2
Fix for: Track comments will take the comment after the next token instead of the current. Also do "delete" of property instead of setting it to null for cleaner AST tree.
2013-01-13 22:08:29 +01:00
Aparajita Fishman and Martin Carlberg
85481225a3
Use a better error message for missing semicolons, trailing whitespace elimination
2013-01-13 22:06:18 +01:00
Martin Carlberg
6210bd2e6d
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-13 22:01:43 +01:00
Antoine Mercadal
7dd7dca99a
Update some HUD art files
2013-01-12 13:37:16 -08:00
Antoine Mercadal
48991e6c3b
Update some HUD slices
2013-01-12 13:37:05 -08:00
Antoine Mercadal
825d045143
Remove bg in textfield slices
2013-01-12 11:35:11 -08:00
Antoine Mercadal
86593cc0f4
Update art files for textfields
2013-01-12 11:24:18 -08:00
Antoine Mercadal
d987bcf0d0
Add missing slices in PSD
2013-01-12 11:24:04 -08:00
Aparajita Fishman
0e82504daf
Formatting
2013-01-12 16:57:59 +07:00
Aparajita Fishman
7fdc3abd30
Missing semicolon
2013-01-12 16:24:26 +07:00
Aparajita Fishman
541c351757
Merge branch 'refs/heads/upstream'
2013-01-12 14:46:34 +07:00
Antoine Mercadal
c52a72ec90
small update in art files
2013-01-11 18:38:16 -08:00
Aparajita Fishman
e464900f8b
Merge branch 'key-view-loop'
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-12 09:38:07 +07:00
Antoine Mercadal
b82f7061a0
Small fixes in psd
2013-01-11 18:38:04 -08:00
Antoine Mercadal
55d651ad27
Readd missing art file
2013-01-11 18:14:45 -08:00
Aparajita Fishman
94ee1af33b
Merge branch 'refs/heads/upstream'
2013-01-12 09:11:48 +07:00
Antoine Mercadal
5239749580
Optimize all images
2013-01-11 18:01:49 -08:00
Antoine Mercadal
fe5b6d40ac
Update art files
2013-01-11 17:59:27 -08:00
Antoine Mercadal
5fa42279bd
CLeanup PSD
2013-01-11 17:59:13 -08:00
Alexandre Wilhelm
b7a2ab57cc
Updated Aristo1 and 2
2013-01-11 17:39:11 -08:00
Alexandre Wilhelm
78949f3620
Changed the way to theme the head of a window
2013-01-11 17:38:54 -08:00
Alexandre Wilhelm
924bf07950
Added missing picturs for toolbar in Aristo1
2013-01-11 17:16:02 -08:00
Alexandre Wilhelm
181f7acbb8
Changed the attribute theme background selected menu bar to _CPMenuView
2013-01-11 17:13:58 -08:00
Alexandre Wilhelm
d331de6683
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-11 16:27:57 -08:00
Alexandre Wilhelm
41dbc66d24
Added disabled token field
2013-01-11 16:27:43 -08:00
Antoine Mercadal
6230319f63
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-11 16:14:03 -08:00
Antoine Mercadal
b7e768820f
Tweak theme
2013-01-11 16:13:51 -08:00
Antoine Mercadal
5dc2595159
Add missing HUD Slices
2013-01-11 16:13:43 -08:00
Antoine Mercadal
919aa2622d
Add some HUD art
2013-01-11 16:13:28 -08:00
Alexandre Wilhelm
025c66db7e
Fixed disable stepper
2013-01-11 16:01:55 -08:00
Alexandre Wilhelm
b3361100da
Updated Aristo2
2013-01-11 15:38:58 -08:00
Alexandre Wilhelm
e0ffde1614
Fuxed bug with disabled combobox
2013-01-11 15:38:43 -08:00
Alexandre Wilhelm
4bfe607f64
Fixed bug with disabled popup
2013-01-11 15:38:20 -08:00
Alexandre Wilhelm
c0cbe8e0ab
Fixed bug with disabled knob
2013-01-11 15:37:42 -08:00
Alexandre Wilhelm
1e6d41e113
Fixed bug with disabled CPSegmentedButton
2013-01-11 15:14:01 -08:00
Alexandre Wilhelm
54f0a49281
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-11 14:10:25 -08:00
Alexandre Wilhelm
618f5360ae
Added disbaled textField for Aristo2
2013-01-11 14:10:15 -08:00
Antoine Mercadal
6f8b5afd56
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-11 14:05:54 -08:00
Antoine Mercadal
6432528d37
Merge branch 'master' into Aristo2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-11 14:05:27 -08:00
Alexandre Wilhelm
b62e2c0b78
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-11 13:54:27 -08:00
Alexandre Wilhelm
f30e846f09
Added theme value to set the position of the buttons relative to the type of window
2013-01-11 13:54:18 -08:00
Alexandre Wilhelm
0a9b4bdc11
Fixed bug in CPAlert theme
2013-01-11 13:53:51 -08:00
Antoine Mercadal
0102e99d3c
Show actual progress bar in indeterminate state
2013-01-11 12:28:42 -08:00
Antoine Mercadal
19548c196e
Add some missing slices in Aristo2 HUD
2013-01-11 12:25:56 -08:00
Antoine Mercadal
46ee987742
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-11 12:25:18 -08:00
Antoine Mercadal
34428d82c7
Add missing art files
2013-01-11 12:25:12 -08:00
Antoine Mercadal
bab27b8be1
Update Art for HUD progress bar in Aristo2
2013-01-11 12:24:41 -08:00
Alexandre Wilhelm
6d06970c0f
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-11 12:08:53 -08:00
Alexandre Wilhelm
c16a965eb7
Added head window Aristo1
2013-01-11 12:08:33 -08:00
Alexandre Wilhelm
5cb7b82415
Added standard window Aristo1
2013-01-11 11:56:48 -08:00
Alexandre Wilhelm
4d9a4267f4
Removed unused images
2013-01-11 11:56:23 -08:00
Antoine Mercadal
fdbc7cc585
Add showcase for HUD progress indicators
2013-01-11 11:49:55 -08:00
Martin Carlberg
ed6c35a59f
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-11 20:40:35 +01:00
Antoine Mercadal
eca14a8868
Add missing art files
2013-01-11 11:39:31 -08:00
Antoine Mercadal
fc719cb1c2
Backport art for new themable CPProgressIndicator, CPToolbar, CPMenu, CPMenuBar
2013-01-11 11:39:16 -08:00
Martin Carlberg
3dc6a30c4c
Code clean up
2013-01-11 20:36:19 +01:00
Martin Carlberg
3e93e180f1
Turn off test case that don't apply to the new compiler
2013-01-11 20:36:12 +01:00
Alexandre Wilhelm
3446f8f6ae
Added modal window for Aristo1
2013-01-11 11:33:06 -08:00
Alexandre Wilhelm
541dd9eac7
Added shadow window
2013-01-11 11:19:04 -08:00
Alexandre Wilhelm
62d866b60f
Upadted Aristo1 with HUD window
2013-01-11 11:17:07 -08:00
Antoine Mercadal
f8f0444503
Add missing @end
2013-01-11 11:02:35 -08:00
Antoine Mercadal
7eaf84d066
Backport Aristo2 descriptors to Aristo1
2013-01-11 11:00:34 -08:00
Aparajita Fishman
95511b5311
Window resize tweak...
...
- If a window is fixed width or fixed height, then no resize cursor is shown and no resize area is active on the edges that cannot be resized.
- Optimized CG calls in CPWindow.
- Added fixed height window to test app.
2013-01-11 21:56:04 +07:00
Alexander Ljungberg
23817a04e1
Unit test HTTP response header parsing.
2013-01-11 12:28:14 +00:00
Alexander Ljungberg
2b90d6244f
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-11 11:02:12 +00:00
Alexander Ljungberg
7485c4eb7a
New: -CPHTTPURLResponse allHeaderFields.
...
When a CPURLConnection response is of the CPHTTPURLResponse type, the raw HTTP headers can now be retrieved through the allHeaderFields message.
2013-01-11 10:53:42 +00:00
Antoine Mercadal
317e9881b8
Make text fields bigger in the showcase
2013-01-10 23:11:36 -08:00
Martin Carlberg
c4e06bd2f7
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-11 08:09:12 +01:00
Antoine Mercadal
fb1532be1c
Re-add the BKLearnMore* keys in Info.plist
2013-01-10 23:08:15 -08:00
Martin Carlberg
f076b05e7e
More information: Shows that the new compiler is used when doing "objjc --help". New output: "Usage (objjc 2.0):…"
2013-01-11 08:06:51 +01:00
Antoine Mercadal
71f502a8e8
Fix some ivar masking in tests
2013-01-10 23:04:12 -08:00
Antoine Mercadal
5e1ac06375
Merge branch 'master' into Aristo2
2013-01-10 22:42:20 -08:00
Antoine Mercadal
341eb26c62
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-01-10 22:41:31 -08:00
Antoine Mercadal
18f8294fa9
Update order of variable to tets in assert
2013-01-10 22:40:15 -08:00
Antoine Mercadal
959a8e7594
Add some widgets in the showcase
2013-01-10 22:33:22 -08:00
Antoine Mercadal
4fde060510
readd modified art files
2013-01-10 20:14:45 -08:00
Antoine Mercadal
6da4c54f9e
Add Aristo2 HUD art files
2013-01-10 19:49:30 -08:00
Antoine Mercadal
ad0e3441a1
Add missing slices for HUD theme
2013-01-10 19:49:05 -08:00
Antoine Mercadal
56e9e436cf
Add theme descriptors for rounded buttons
2013-01-10 19:11:48 -08:00
Antoine Mercadal
6fde1e459d
Add rounded button artwork
2013-01-10 19:11:35 -08:00
Antoine Mercadal
fa314611bc
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-10 18:23:20 -08:00
Antoine Mercadal
c34ebfa2e8
Add rounded button theme descriptors
2013-01-10 18:23:08 -08:00
Alexandre Wilhelm
c6f0589ed5
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-10 18:15:03 -08:00
Alexandre Wilhelm
8ffa8b6657
Fixed bug in _CPMenuView
2013-01-10 18:14:56 -08:00
Antoine Mercadal
0a92b98110
Comment out non-implemented HUD descriptors
2013-01-10 18:13:02 -08:00
Antoine Mercadal
b6c31757a7
fix a bug in CPWindow using old AppKit resource
2013-01-10 17:55:06 -08:00
Antoine Mercadal
676efe247f
make toolbar art pixel perfect
2013-01-10 17:50:51 -08:00
Antoine Mercadal
f6defc091c
cleanup
2013-01-10 17:50:25 -08:00
Alexandre Wilhelm
8bb779ea9e
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-10 17:32:55 -08:00
Alexandre Wilhelm
18d0cf51ef
Removed unused code
2013-01-10 17:32:47 -08:00
Alexandre Wilhelm
8b7b363440
Changed default color
2013-01-10 17:32:22 -08:00
Antoine Mercadal
6ba77c146b
Backport Aristo2 changes to Aristo1
2013-01-10 17:26:12 -08:00
Antoine Mercadal
54ab7ea9ee
use _CPMenuItemView to get general open/save/new icons
2013-01-10 17:23:22 -08:00
Antoine Mercadal
b9c0e96933
Add theme descriptors for new/open/save icons
2013-01-10 17:23:03 -08:00
Antoine Mercadal
41650d58a2
Add new theme attribute to get general open/save/new icons
2013-01-10 17:22:34 -08:00
Antoine Mercadal
3519f4f9c7
Remove unused AppKit resources
2013-01-10 17:07:05 -08:00
Alexandre Wilhelm
991e40e089
Fixed bug about the color of the colorPanel
2013-01-10 16:59:50 -08:00
Alexander Ljungberg
1a54aadff0
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-11 00:48:28 +00:00
Alexander Ljungberg
6e3f82299f
Add missing source header.
2013-01-11 00:48:18 +00:00
Alexandre Wilhelm
9e845ec580
Updated psd
2013-01-10 16:31:49 -08:00
Alexandre Wilhelm
c95fb32d0a
Fixed bug with size of highlighted menuItem
2013-01-10 16:31:38 -08:00
Alexandre Wilhelm
bfe64ea153
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-10 16:14:04 -08:00
Alexandre Wilhelm
146d641f97
Updated Aristo2
2013-01-10 16:13:48 -08:00
Alexandre Wilhelm
6a94ea066d
Added support for _CPMenuBarWindow theme
2013-01-10 16:13:36 -08:00
Alexandre Wilhelm
477ec44b75
Added support for _CPMenuWindow
2013-01-10 16:12:12 -08:00
Antoine Mercadal
284b00fa78
Add missing import
2013-01-10 15:31:37 -08:00
Antoine Mercadal
0f94ba3d39
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-10 14:12:15 -08:00
Antoine Mercadal
2e157dd969
Starting to backport new themeable stuff from Aristo2. Missing art will follow
2013-01-10 14:12:09 -08:00
Antoine Mercadal
f945845a77
Style fix
2013-01-10 14:11:35 -08:00
Alexandre Wilhelm
457cf98089
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-10 13:58:20 -08:00
Alexandre Wilhelm
ab65b53201
Updated Aristo2
2013-01-10 13:58:12 -08:00
Alexandre Wilhelm
3da4daeed5
Removed unused code
2013-01-10 13:57:57 -08:00
Alexandre Wilhelm
f9c5f89595
Added support for _CPMenuItemStandardView
2013-01-10 13:57:32 -08:00
Antoine Mercadal
d71947cb63
Remove unused AppKit Resource
2013-01-10 11:57:49 -08:00
Antoine Mercadal
cdf29b6c56
Add missing theme descriptors for CPTableView
2013-01-10 11:57:39 -08:00
Antoine Mercadal
73ddadc0f0
Add missing theme attribute in CPTableView
2013-01-10 11:57:17 -08:00
Antoine Mercadal
bd8431504d
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-10 11:49:01 -08:00
Antoine Mercadal
efcee75f30
Remove unused AppKit resource
2013-01-10 11:48:56 -08:00
Antoine Mercadal
b283e05f9c
Fix bug in CPButtonTest
2013-01-10 11:48:45 -08:00
Antoine Mercadal
d15757755a
use themed minus and plus button image in _CPCibResource
2013-01-10 11:47:20 -08:00
Antoine Mercadal
b3259e4b49
Add theme for CPButtonBar plus, minus and action button
2013-01-10 11:42:38 -08:00
Antoine Mercadal
cebf8d3579
Make image plus, minus and action themable
2013-01-10 11:42:08 -08:00
Alexandre Wilhelm
9451a6a1ec
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-10 11:42:07 -08:00
Alexandre Wilhelm
5d3321839d
Updated Aristo2
2013-01-10 11:41:59 -08:00
Alexandre Wilhelm
594458235b
Added support for theme in_CPMenuItemMenuBarView
2013-01-10 11:41:41 -08:00
Antoine Mercadal
a3273dedc1
Remove unused art
2013-01-10 11:29:33 -08:00
Antoine Mercadal
42824713e3
Add application's menu default icon in theme
2013-01-10 11:29:24 -08:00
Antoine Mercadal
4ad40ee00d
Pull menu default icon from theme instead of AppKit resource
2013-01-10 11:28:43 -08:00
Antoine Mercadal
ddf33a13cd
Use new CPThemeBlend bundle accessor
2013-01-10 11:28:25 -08:00
Antoine Mercadal
4ce8ea9ce9
make CPThemeBlend's bundle property readonly
2013-01-10 11:27:52 -08:00
Antoine Mercadal
5b84fd6e40
Remove unused AppKit resources
2013-01-10 11:15:41 -08:00
Antoine Mercadal
d7af63877e
Add system cursors in theme
2013-01-10 11:15:19 -08:00
Antoine Mercadal
844ed59dd8
CPCursor will now look in the theme to get system cursors
2013-01-10 11:14:59 -08:00
Antoine Mercadal
35e29a0615
Fix bug introducing during previous merge
2013-01-10 10:38:10 -08:00
Martin Carlberg
7c71cd1f80
The new compiler takes care of hoisted variables
2013-01-10 19:30:34 +01:00
Martin Carlberg
74ad0faffa
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-10 19:28:42 +01:00
Antoine Mercadal
e13948957c
Merge branch 'master' into Aristo2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
AppKit/CPWindow/_CPWindowView.j
2013-01-10 10:24:33 -08:00
aparajita
64915f18ff
Merge pull request #1711 from slevenbits/new-window-resize
...
This commit provides resizing of windows from all sides. The legacy style, which displays a resize thumb in the lower right, can be restored with [CPWindow setGlobalResizeStyle:CPWindowResizeStyleLegacy].
2013-01-10 09:53:07 -08:00
Aparajita Fishman
1f8306d2b3
Hooked up the edit menu
2013-01-11 00:38:43 +07:00
Aparajita Fishman
cdc88dbe18
Key view...
...
- Factored out blur handler from CPTokenField into CPTextField.
- CPTextField will no longer lose focus unnecessarily.
- Changed switch style in CPWindow -sendEvent.
- Added menu bar to KeyViewLoop test app.
2013-01-11 00:18:38 +07:00
Aparajita Fishman
b59f96d238
Key view loop enhancements...
...
- Nested views are now handled recursively as they are in Cocoa.
- Added a nested view test in the test app.
2013-01-10 21:49:54 +07:00
Alexander Ljungberg
110bd20600
Fix return value type.
2013-01-10 11:48:52 +00:00
Martin Carlberg
0d6a962344
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-10 11:22:41 +01:00
Martin Carlberg
c192f3b47b
Fix to make the Cappuccino framework compile with rhino
2013-01-10 11:21:45 +01:00
Antoine Mercadal
53fa384608
make nib2cib work either with Aristo1 or Aristo2 for dynamic widget adjustment
2013-01-09 20:25:32 -08:00
Antoine Mercadal
1448791fcd
Declare default row height
2013-01-09 20:25:02 -08:00
Antoine Mercadal
a66a4210c3
Use theme attribute for default row height
2013-01-09 20:24:42 -08:00
Antoine Mercadal
b1ffd8d556
Make default row height a theme attribute
2013-01-09 20:24:27 -08:00
Antoine Mercadal
4548696c73
Remove unused AppKit resources
2013-01-09 19:43:12 -08:00
Antoine Mercadal
0d460dd6b1
Add missing art for toolbar item separator
2013-01-09 19:42:31 -08:00
Antoine Mercadal
4333e3da67
Add theme for CPToolbarItemSeparator
2013-01-09 19:41:56 -08:00
Antoine Mercadal
352ccb21ff
Make CPToolbarItemSeparator themable
2013-01-09 19:41:22 -08:00
Antoine Mercadal
2ac57642a4
Remove PSD from ressource folder
2013-01-09 19:01:32 -08:00
Antoine Mercadal
af1ddf2fc6
Remove unused AppKit Ressources
2013-01-09 18:59:30 -08:00
Antoine Mercadal
e23c519fac
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-09 18:58:05 -08:00
Antoine Mercadal
664a31fc87
Remove unused AppKit Resource
2013-01-09 18:57:58 -08:00
Antoine Mercadal
cbcc988625
Add theme for CPBrowser
2013-01-09 18:57:45 -08:00
Antoine Mercadal
ce33737a38
Make CPBrowser themable
2013-01-09 18:57:18 -08:00
Alexandre Wilhelm
f4e243255a
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-09 18:53:37 -08:00
Alexandre Wilhelm
8df8479716
Updated Aristo2
2013-01-09 18:53:23 -08:00
Alexandre Wilhelm
f28ac43446
Added support for _CPBorderlessBridgeWindowView.j theme
2013-01-09 18:53:09 -08:00
Antoine Mercadal
263df059a4
Remove another unused AppKit ressource
2013-01-09 18:30:25 -08:00
Antoine Mercadal
64d1e9ca46
Remove unused AppKit ressource
2013-01-09 18:29:56 -08:00
Antoine Mercadal
286ec29f91
Remove unused AppKit ressource
2013-01-09 18:29:18 -08:00
Antoine Mercadal
66ca5c0d34
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-09 18:26:50 -08:00
Antoine Mercadal
919335b4f5
Remove unused ressource
2013-01-09 18:25:46 -08:00
Antoine Mercadal
c5a4b2605c
Add missing theme attributes for CPSearchField
2013-01-09 18:25:11 -08:00
Antoine Mercadal
2da0142387
Make find/search/cancel buttons themable
2013-01-09 18:24:41 -08:00
Alexandre Wilhelm
7ba759b08a
Updated Aristo2 for toolBar
2013-01-09 18:24:32 -08:00
Alexandre Wilhelm
fdd5aa0a5a
Removed unused comments
2013-01-09 18:24:06 -08:00
Alexandre Wilhelm
6ee80f6182
Added support for theme
2013-01-09 18:23:09 -08:00
Aparajita Fishman
af2e0348c1
More key view loop madness
...
- It turns out Cocoa DOES recalculate the loop when calling recalculateKeyViewLoop. It does not wait until selectNext/PreviousKeyView is called.
- Cocoa calculates the key view loop for nibs that do not have one, but does not call recalculateKeyViewLoop.
- If there is no first responder and no initial first responder when a window first becomes key, use the first valid key view, not the first geometric key view.
- Made allViews function a method, not sure why it was a function.
- Unit tests now pass.
2013-01-10 09:11:58 +07:00
Alexandre Wilhelm
d4bf45a8b8
Moved psd to Artwork
2013-01-09 17:54:07 -08:00
Alexandre Wilhelm
d30425b2bd
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-09 17:51:22 -08:00
Antoine Mercadal
cff8fbbd79
Remove unused artwork
2013-01-09 17:49:53 -08:00
Antoine Mercadal
8b52c99604
Improve CPImageViewTest to test heavy shadow view too
2013-01-09 17:49:42 -08:00
Antoine Mercadal
5dee254fca
Add theme for CPShadowView
2013-01-09 17:49:22 -08:00
Antoine Mercadal
2ab0f494b4
Make CPShadowView themable
2013-01-09 17:49:11 -08:00
Alexandre Wilhelm
b4a58b47b3
Updated Aristo2
2013-01-09 17:35:59 -08:00
Alexandre Wilhelm
b19450684b
Fixed bug with toolBar
2013-01-09 17:34:32 -08:00
Antoine Mercadal
6451e3b3e3
Remove another Ressources not used anymore
2013-01-09 17:04:48 -08:00
Antoine Mercadal
14e2a169e4
Remove unused AppKit Ressources (moved to theme)
2013-01-09 17:03:54 -08:00
Alexandre Wilhelm
f809919561
Update Aristo2
2013-01-09 16:02:37 -08:00
Alexandre Wilhelm
68d4b9d2cd
Fixed bug with indicator
2013-01-09 16:02:24 -08:00
Alexandre Wilhelm
5e1c6ae30d
Added class method for the title height
2013-01-09 16:01:51 -08:00
Alexandre Wilhelm
e1ba234a76
Fixed bug about the position of closable buttons. Fixed bug about theme attribute for sheet window
2013-01-09 16:01:18 -08:00
Alexandre Wilhelm
b9b84fe692
Improved code. Removed comments
2013-01-09 16:00:28 -08:00
Alexandre Wilhelm
a3f5c461c3
Removed comments
2013-01-09 15:59:50 -08:00
Alexandre Wilhelm
91479543fa
Removed unused theme attribute
2013-01-09 15:59:17 -08:00
Alexandre Wilhelm
4dfa724972
Removed comments
2013-01-09 15:58:47 -08:00
Alexandre Wilhelm
f8e72504e5
Fixed bug with closable button in CPWindow
2013-01-09 14:43:33 -08:00
Alexandre Wilhelm
51d6ba98d7
Updated aristo2
2013-01-09 14:21:53 -08:00
Alexandre Wilhelm
2309e18eb7
Added themable support for shadow window
2013-01-09 14:21:41 -08:00
Alexandre Wilhelm
6ddb891c29
Fixed import
2013-01-09 14:19:56 -08:00
Alexandre Wilhelm
5100f6cb72
Updated psd with slices
2013-01-09 13:14:15 -08:00
Alexandre Wilhelm
73e56d820b
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-09 13:10:15 -08:00
Alexandre Wilhelm
803cbae1dc
Updated Aristo2
2013-01-09 13:09:59 -08:00
Alexandre Wilhelm
9b9f877942
Added themable _CPWindowView
2013-01-09 13:09:43 -08:00
Alexandre Wilhelm
0e6df9d299
Added themable _CPDocModalWindowView
2013-01-09 13:09:20 -08:00
Antoine Mercadal
1cbe1cfaeb
Merge branch 'master' into Aristo2
2013-01-09 11:59:01 -08:00
Antoine Mercadal
295eedc0b9
Add missing import in NSMenuItem.j
2013-01-09 11:58:42 -08:00
Antoine Mercadal
97a766517b
Set content-margin size to zero for CPBox
2013-01-09 10:54:51 -08:00
Alexandre Wilhelm
42868ecbee
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-09 10:35:02 -08:00
Alexandre Wilhelm
4fd4b145d7
Updated Aristo2
2013-01-09 10:34:44 -08:00
Alexandre Wilhelm
d5f7dc851e
Themable _CPStandardWindowView
2013-01-09 10:34:10 -08:00
Antoine Mercadal
06fae21c76
Merge branch 'master' into Aristo2
2013-01-09 09:55:20 -08:00
Antoine Mercadal
29fe631ce6
small style fix
2013-01-09 09:54:43 -08:00
Andrew Hankinson
40ab25d2a6
Minor formatting changes
2013-01-09 11:30:20 -05:00
Andrew Hankinson
0f9a2dc9d3
Fixed: XCodeCapp reads the user's shell environment
...
Before this fix, XCodeCapp always ran under /bin/bash, causing problems when trying to source the files from other shells, like /bin/zsh
This fix reads the shell information directly from the user's environment and XCC to run using that shell.
2013-01-09 11:27:47 -05:00
Martin Carlberg
89da16afec
Fixed objjc to output compiled source not the input source
2013-01-09 14:58:22 +01:00
Martin Carlberg
1dfc77a4ba
Fixed objjc to use new acorn based compiler
2013-01-09 14:12:58 +01:00
Martin Carlberg
4fb8fa1311
Code clean up
2013-01-09 14:03:38 +01:00
Aparajita Fishman
782f47a30b
Key view loop fixes/improvements
...
- Removed unnecessary code at beginning of CPTextField -becomeFirstResponder that might have been a hack to get around a bug I fixed.
- Fixed race condition in setTimeout closure in CPTextField -becomeFirstResponder.
- CPWindow -setInitialFirstResponder now works reliably and follows Cocoa behavior in that if -makeFirstResponder is called with something other than the window before the window is first shown, it will override the initial first responder.
- Like Cocoa, until the first responder is set during window load, the first responder is the window by default, not the content view.
- Optimized search for any view that has a previous/next key view set.
- Sheets can become key windows again.
- CPWindow -recalculateKeyViewLoop now just marks the loop as dirty, per Cocoa docs.
- CPWindow -autorecalculatesKeyViewLoop now behaves per Cocoa, it only has an effect when views are added or removed.
- If the first responder does not have a valid previous/next key view, it does not resign to nil, per Cocoa behavior.
- Code optimization and cleanup.
- Test app (KeyViewLoopTest) that demonstrates various scenarios.
2013-01-09 18:02:07 +07:00
Martin Carlberg
7eba982278
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-09 11:11:45 +01:00
Martin Carlberg
df78df5908
Fixed class method that access isa property
2013-01-09 10:37:33 +01:00
Martin Carlberg
0dd98b56bc
"self." is only added to instance variables when compiling an instance method
2013-01-09 10:21:16 +01:00
Martin Carlberg
0a573f9da1
Removed unused 6th parameter
2013-01-09 09:29:43 +01:00
Antoine Mercadal
6d43387c55
Remove actually useless chunck of code in NSSearchField.j
2013-01-08 22:23:08 -08:00
Antoine Mercadal
ed4094016b
Update nib2cib NSSearchField.j to use correct field height
2013-01-08 22:21:51 -08:00
Antoine Mercadal
56100f150d
Merge branch 'master' into Aristo2
2013-01-08 18:43:25 -08:00
Antoine Mercadal
6284f29a96
Fix regexp in XcodeCapp parser. Thanks to Andrew Hankinson
2013-01-08 18:43:09 -08:00
Antoine Mercadal
4e06ed80d1
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-08 18:09:35 -08:00
Antoine Mercadal
a0c294f689
Merge branch 'master' into Aristo2
2013-01-08 18:09:24 -08:00
Antoine Mercadal
19f668f4f6
use the [CPPlatformWindow primaryPlatformWindow] to position the tooltips.
2013-01-08 18:09:07 -08:00
Alexandre Wilhelm
02bd640aab
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-08 17:59:29 -08:00
Alexandre Wilhelm
06b1060a45
Fixed bug in scrollview
2013-01-08 17:59:19 -08:00
Antoine Mercadal
0f0dcb9eae
Remove old static theme for CPSplitView
2013-01-08 17:22:19 -08:00
Antoine Mercadal
5ec6d571eb
Improve theme for CPSplitView
2013-01-08 17:22:10 -08:00
Antoine Mercadal
347de2cb8b
CPSplitView is now fully themable
2013-01-08 17:21:32 -08:00
Antoine Mercadal
f6a923ad56
remove old non themable CPProgressIndicator art files
2013-01-08 17:09:38 -08:00
Antoine Mercadal
43455ee661
Remove old CPLevelIndicator ressources
2013-01-08 17:06:13 -08:00
Antoine Mercadal
911df72aeb
Add theme for CPLevelIndicator
2013-01-08 17:05:58 -08:00
Antoine Mercadal
b82225e279
Make CPLevelIndicator themable
2013-01-08 17:05:33 -08:00
Antoine Mercadal
bb3cc58ad0
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-08 16:30:24 -08:00
Antoine Mercadal
804a345fec
Merge branch 'master' into Aristo2
2013-01-08 16:29:52 -08:00
Antoine Mercadal
7816510fdf
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2013-01-08 16:29:33 -08:00
Antoine Mercadal
50031dbc89
Remove wrong import string
2013-01-08 16:29:06 -08:00
Alexandre Wilhelm
7f05164a7f
Merge branch 'Aristo2' of github.mv.usa.alcatel.com:amercada/Cappuccino into Aristo2
2013-01-08 16:24:24 -08:00
Alexandre Wilhelm
52a6806022
Update Aristo2
2013-01-08 16:23:51 -08:00
Alexandre Wilhelm
1a9d47c554
Fixed bug about scroller-width attribute theme
2013-01-08 16:22:49 -08:00
Antoine Mercadal
2c3b3be3ee
Adjust menubar height
2013-01-08 15:51:53 -08:00
Antoine Mercadal
cdaed50939
Readd Aristo1 build process
...
Cappuccino will now continue to support Aristo1
By default Aristo2 will be used, unless you add in your Info.plist
<key>CPDefaultTheme</key>
<string>Aristo</string>
In that case Aristo2 will be use.
If you put
<key>CPDefaultTheme</key>
<string>MyCustomTheme</string>
It will use your custom theme as usual from your app's Resource folder
2013-01-08 15:03:14 -08:00
Antoine Mercadal
5a155020e6
Merge branch 'master' into Aristo2
2013-01-08 15:02:50 -08:00
Martin Carlberg
957b34d169
Added the option trackSpaces to attach spacesBefore and spacesAfter properties to AST nodes.
2013-01-08 22:23:34 +01:00
Martin Carlberg
79d2ac0566
Fixed some comments and removed unwanted spaces
2013-01-08 22:19:55 +01:00
Martin Carlberg
547f9ff61f
Merge with latest from Acorn master
2013-01-08 22:18:19 +01:00
Martin Carlberg
9f0da2ec41
Fixed spelling error
2013-01-08 22:13:36 +01:00
Alexander Ljungberg
32eafb7708
Fix import.
2013-01-08 18:21:29 +00:00
Alexander Ljungberg
c81b8fb3c3
Formatting.
2013-01-08 18:07:15 +00:00
Antoine Mercadal
a9be167146
Add missing import
2013-01-08 10:05:25 -08:00
Martin Carlberg
c755dc3ed9
Added some more detailed error messages in parser
2013-01-08 17:00:54 +01:00
Martin Carlberg
d20fb2039a
Missed some lines in manual merge
2013-01-08 14:34:29 +01:00
Martin Carlberg
1c3411f808
Merge remote-tracking branch 'upstream/master' into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-08 09:25:54 +01:00
Antoine Mercadal
7357be3c35
Finish Aristo HUD
2013-01-07 20:03:20 -08:00
Antoine Mercadal
5dd1bed913
Add the HUD version of Aristo2
2013-01-07 18:40:34 -08:00
Antoine Mercadal
18eda8aade
Add the HUD version of Aristo2
2013-01-07 17:34:43 -08:00
Antoine Mercadal
8e16e6266e
Fix a bug where CPURL was not encoding self._baseURL and self._string
2013-01-07 16:04:08 -08:00
Martin Carlberg
8100cdb17f
Fixed "Can't find variable: ObjJCompiler" error
2013-01-07 23:13:54 +01:00
Antoine Mercadal
7fa01fa4f3
Merge branch 'master' into Aristo2
...
Conflicts:
Tests/Manual/CPPopover/Resources/MainMenu.cib
2013-01-07 13:23:05 -08:00
Martin Carlberg
d49e78c43e
Removal of old compiler
2013-01-07 20:29:56 +01:00
Martin Carlberg
cf46768ac7
Removal of logs
2013-01-07 20:29:45 +01:00
Martin Carlberg
cfe718f4ef
Handle preprocessor lines like "#pragma"
2013-01-07 20:29:35 +01:00
Martin Carlberg
bf32b90702
Allow signed, unsigned, char, short, int and long to be an identifier
2013-01-07 20:29:13 +01:00
Martin Carlberg
9cb14d6db3
Added new faster compiler based on acorn parser
2013-01-07 09:59:10 +01:00
Martin Carlberg
140cf0debe
Code cleanup
2013-01-07 09:55:12 +01:00
Aparajita Fishman
45ad5375a2
Full platform windows and popovers can become main
2013-01-07 07:07:27 +08:00
Alexander Ljungberg
259adda77d
Merge pull request #1713 from milestinsley/CPBrowserStyleProperty-fix
...
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
2013-01-06 17:31:08 +00:00
Miles Tinsley
964f3fe06d
Improved the reliability of CPBrowserCSSProperty by checking for the browser prefix *before* hyphenating the camel-cased string.
...
This has the added benefit of ignoring unknown/unsupported prefixes, providing the property itself is camel-cased.
For example:
"LinearBackground" -> "linear-background"
"Linear-Background" -> "linear-background"
"linear-background" -> "linear-background"
"fooLinearBackground" -> "linear-background"
and
"WebkitLinearBackground" -> "-webkit-linear-background"
"MozLinearBackground" -> "-moz-linear-background"
etc..
2013-01-06 17:20:37 +00:00
Miles Tinsley
002c49b32f
Updated CPBrowserCSSProperty to support camel cased style property names and convert them into valid browser-aware CSS properties.
2013-01-06 16:57:31 +00:00
Alexander Ljungberg
d4313be406
Merge pull request #1713 from milestinsley/CPBrowserStyleProperty-fix
...
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
2013-01-06 15:48:49 +00:00
Miles Tinsley
76a4ded128
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
...
For example, the following CSS property names all resolve to the same correct JS equivalent for the current browser:
* CPBrowserStyleProperty('TransformOrigin') -> 'WebkitTransformOrigin'
* CPBrowserStyleProperty('transform-origin') -> 'WebkitTransformOrigin'
2013-01-06 13:26:01 +00:00
Aparajita Fishman
8d68e805f4
Fix CPWindow -canBecomeKeyWindow and -canBecomeMainWindow to match Cocoa behavior (and misleading documentation)
...
Minor code formatting cleanup as well
2013-01-06 16:21:10 +08:00
Aparajita Fishman
7f8d58d457
Merge branch 'refs/heads/new-window-resize'
2013-01-05 11:17:02 +08:00
Aparajita Fishman
f1a171a94c
Window resize fixes
...
- Track mouse exit from window resize rect instead of unconditionally setting arrow cursor.
- Don't show the resize cursors for full platform windows.
- Show the resize down cursor if the top of a window is being resized and it has reached the bottom of the menubar.
- Make windows in CPToolbarTest resizable to test resizing behavior with toolbars.
- Added a full platform window and menubar to the test app.
2013-01-05 11:13:53 +08:00
Antoine Mercadal
7e9b12b475
Update and improve CPBoxTest manual test
2013-01-04 18:46:16 -08:00
Antoine Mercadal
63a3a8a731
Use API to set themable attribute in nib2cib for CPBox
2013-01-04 18:45:53 -08:00
Antoine Mercadal
c95421f307
Add theme for CPBox (and it's an improved look)
2013-01-04 18:45:28 -08:00
Antoine Mercadal
edc62449f6
Make CPBox themable
2013-01-04 18:45:05 -08:00
Antoine Mercadal
a7f1192402
Ignore .XcodeSupport folder
2013-01-04 18:22:08 -08:00
Antoine Mercadal
6bbda8a8e7
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-04 12:21:07 -08:00
Antoine Mercadal
2431dbc16f
rerun nib2cib on CPSegmentedControlTest's MainMenu.xib
2013-01-04 12:20:57 -08:00
Antoine Mercadal
d87f86b2a4
Adjust CPSegmentedControl height to match new Aristo2 art
2013-01-04 12:20:36 -08:00
Antoine Mercadal
55a0652c2b
Merge branch 'master' into Aristo2
2013-01-04 12:15:51 -08:00
Antoine Mercadal
3e6517849e
Add manual test for CPSegmentedControl
2013-01-04 12:15:09 -08:00
Antoine Mercadal
deacdde521
Fix bug in CPSegmentedControl not reducing his size when removing segments
2013-01-04 12:14:22 -08:00
Alexandre Wilhelm
aa1559b159
Added missing images
2013-01-04 11:57:12 -08:00
Alexandre Wilhelm
88dd2f1495
Fixed bug with tokenfield
2013-01-04 11:52:36 -08:00
Alexandre Wilhelm
eb2cd75370
Fixed bug in BKShowcasController with popUpButtons size
2013-01-04 10:32:35 -08:00
Alexander Ljungberg
a391e2787b
Merge branch 'new-window-resize' into slevenbits
2013-01-04 12:07:03 +00:00
Alexander Ljungberg
d072f17896
Optimisation.
2013-01-04 11:28:09 +00:00
Alexander Ljungberg
0d31f79f53
Constrain window resize to usable area of platform window.
2013-01-04 11:28:09 +00:00
Aparajita Fishman
d9d9ea9804
Merge branch 'new-window-resize'
2013-01-04 15:22:01 +08:00
Aparajita Fishman
b869312e4f
Finished full window resize support
...
- The main run loop resets the cursor if it falls outside of all windows during a mouse move.
- Added cursors supported by CSS that are not in NSCursor.
- Code cleanup in CPCursor.
- Cursors now indicate available resize directions if there is a window min/max size.
- Reduced slop to 3, what it is in Cocoa.
- Added a second non-min/max window to the demo.
2013-01-04 15:19:00 +08:00
Aparajita Fishman
deb6224cf8
Support for resizing windows on all sides
2013-01-04 15:17:29 +08:00
Alexandre Wilhelm
4757648349
CPAlert can be moved now
2013-01-03 18:34:22 -08:00
Alexandre Wilhelm
a1f166942c
Added new modal window
2013-01-03 18:14:13 -08:00
Antoine Mercadal
7dbe0c2899
readd removed art..
2013-01-03 18:01:36 -08:00
Antoine Mercadal
9bc4873721
Update the menubar art
2013-01-03 17:55:06 -08:00
Antoine Mercadal
15005f5754
Update selection color
2013-01-03 16:59:10 -08:00
Antoine Mercadal
c959ca9821
Update static art to match Aristo2
2013-01-03 16:51:10 -08:00
Antoine Mercadal
26687226f4
Merge branch 'Aristo2' of 172.21.51.218:amercada/Cappuccino into Aristo2
2013-01-03 15:04:58 -08:00
Antoine Mercadal
408b5b517b
Run ImageOptim on all Aristo2 ressources
2013-01-03 15:04:31 -08:00
Alexandre Wilhelm
f403699fb2
Fixed bug with content-inset in textField
2013-01-03 14:51:23 -08:00
Alexandre Wilhelm
193b289e8e
CPButtonBar Aristo2
2013-01-03 14:46:05 -08:00
Antoine Mercadal
533fd0574a
Merge branch 'master' into Aristo2
2013-01-03 14:25:42 -08:00
Antoine Mercadal
48ffdf419f
Restore art for ButtonBar
2013-01-03 14:16:50 -08:00
Antoine Mercadal
93e931e2b6
Fix Aristo2 Build process
2013-01-03 13:47:50 -08:00
Alexandre Wilhelm
6561e4f84e
Init of Aristo2
2013-01-03 11:22:46 -08:00
Stefan Wallström
24d6e581a6
Fixed: CPPredicate: TRUEPREDICATE didn't work
...
CPPredicate_BOOL didn't implement any methods necessary for TRUEPREDICATE to evaluate to true.
2013-01-03 11:04:53 +01:00
Alexander Ljungberg
261c0df2e7
Merge branch 'refs/heads/master' into slevenbits
2012-12-31 17:39:14 +00:00
Alexander Ljungberg
2fd6e7432a
Merge branch 'refs/heads/window-resize' into slevenbits
2012-12-31 17:39:07 +00:00
Alexander Ljungberg
dcdcd8e41a
Fixed: CPPanel could not always become the key window.
...
Without this fix, `CPPanel` followed the same rules as `CPWindow` with regards to becoming the key window. But `CPPanel` is supposed to always be willing to become the key window, as stated in its documentation.
This change makes `CPPanel` always return `YES` for `canBecomeKeyWindow`.
2012-12-31 14:53:04 +00:00
Alexander Ljungberg
24443221f2
Merge pull request #1708 from imageoptimiser/optimised-images
...
Optimise images (94 KB reduction)
2012-12-27 16:12:46 +00:00
Aparajita Fishman
0d674c3496
Finished full window resize support
...
- The main run loop resets the cursor if it falls outside of all windows during a mouse move.
- Added cursors supported by CSS that are not in NSCursor.
- Code cleanup in CPCursor.
- Cursors now indicate available resize directions if there is a window min/max size.
- Reduced slop to 3, what it is in Cocoa.
- Added a second non-min/max window to the demo.
2012-12-26 14:54:27 -08:00
Aparajita Fishman
a15b24b9be
Support for resizing windows on all sides
2012-12-24 08:53:18 -08:00
imageoptimiser and Adam Howard
787dd10c69
Optimised images
2012-12-24 12:10:02 +00:00
Alexander Ljungberg
d0988fa5b0
Merge branch 'refs/heads/slevenbits-tokenfield-close-fix' into slevenbits
2012-12-21 17:07:39 +00:00
Alexander Ljungberg
b7031f2f77
Unit test token field autocomplete window close.
2012-12-21 16:53:21 +00:00
Alexander Ljungberg
588da9addb
Fixed: token field access of DOM in non-DOM apps.
...
Without this fix, the internal [tokenField _editorValue] would check the DOM input element even if !PLATFORM(DOM), which could potentially crash unit tests and future non DOM implementations.
The fix returns an empty string for non-DOM platforms.
2012-12-21 16:44:35 +00:00
Alexander Ljungberg
8f8f1a0224
Fixed: token field autocomplete menu remaining after window closed.
...
Without this change, closing the window containing a token field showing an autocomplete menu would result in a detached autocomplete menu hanging around.
This fix checks for window close notifications and makes sure to dismiss the menu if the window closes.
2012-12-21 15:00:20 +00:00
Alexander Ljungberg
9705f1fe28
Commit message guidelines.
2012-12-21 11:25:13 +00:00
Martin Carlberg
d5748474d0
Forgot some more lines
2012-12-20 22:55:58 +01:00
Martin Carlberg
2277fb04b9
Missed to commit some stuff for scope handling
2012-12-20 18:19:39 +01:00
Martin Carlberg
78b2d30905
Added better support for scope
2012-12-20 18:01:47 +01:00
Martin Carlberg
ed81d75815
Removes #pragma lines
2012-12-20 17:49:23 +01:00
Martin Carlberg
ac3a399df3
Set to use new compiler when compiling with jake
2012-12-20 15:20:38 +01:00
Martin Carlberg
619f90c677
Removed debug stuff
2012-12-20 15:20:12 +01:00
Martin Carlberg
0f3d5f4b10
Added support to choose which compiler should be used when compiling in the browser. Default is old compiler but add "ObjJCompilerSetUsedVersion("objj_compiler2");" in the index.html (and/or index-debug.html) to use new compiler in browser.
2012-12-20 14:26:49 +01:00
Martin Carlberg
26be5bf264
Better error message when importing file that is not found
2012-12-20 14:23:54 +01:00
Martin Carlberg
227c696750
Removed circular imports in CPToolbarItem.j
2012-12-20 14:22:09 +01:00
Martin Carlberg
b1cec9480e
New test cases to test ivar handling in new compiler
2012-12-20 09:37:52 +01:00
Martin Carlberg
982da962e5
Fixed problems due to the removal of with(self)
2012-12-19 23:51:42 +01:00
Alexander Ljungberg
2a11bdb7ef
Fixup: previous fix undid penultimate fix.
2012-12-18 00:34:14 +00:00
Alexander Ljungberg
3775c3fb2e
Fixed: CPAlert was a CPView.
...
Before this fix, CPAlert subclassed CPView, causing an API mismatch with Cocoa and exposing unexpected methods in the public API which made no sense for a CPAlert such as autoresizing masks. It also lead to CPAlert mistakingly shadowing _window from its CPView superclass.
This fix makes CPAlert inherit from CPObject as it should. The theming, which needs to be applied to a view, was moved to an internal view.
2012-12-18 00:22:19 +00:00
Alexander Ljungberg
cea120945c
Fixed: CPAlert sheet crash.
...
Without this fix, CPAlert windows would not finish closing before sending the `alertDidEnd:returnCode:` delegate message. This would lead to a crash if the delegate method tried to open a new sheet.
This fix makes sure to fully order out the alert sheet before sending the delegate message.
2012-12-18 00:19:04 +00:00
Martin Carlberg
803c8ce6b5
A little code clean up.
2012-12-17 17:14:33 +01:00
Martin Carlberg
ca99114b16
Forgot to add one file
2012-12-17 15:12:02 +01:00
Martin Carlberg
897adf27f0
Fixed import statements in nib2cib, bug in load system and some more fixes to test cases
2012-12-17 14:57:18 +01:00
Martin Carlberg
fd59efe41f
Bug fixes for failing test cases
2012-12-17 11:15:50 +01:00
Martin Carlberg
b52217e8a0
Tried to make the import mess a little better. Fixed a lot of bugs. Changed some class names in the test cases. Looks like all the tests are being run in the same space. Has to look into this…..
2012-12-17 00:40:26 +01:00
Martin Carlberg
0280a10832
More changes now when we don't have with(self)
2012-12-16 19:20:59 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +01:00
Martin Carlberg
59fa5c27b6
Added support for new compiler when loading objj files in the browsers
2012-12-15 23:35:36 +01:00
Alexander Ljungberg
a202cfbbe9
Skip check-missing-imports in standard jake test to make the load on travis-ci lighter.
...
"detect-missing-imports" takes a long, long time to run. Since it only emits warnings it can't affect the result of the continuous integration builds.
Until it can be made a little faster it's probably best to run it by hand with `jake check-missing-imports`.
2012-12-15 12:36:00 +00:00
Alexander Ljungberg
848c893b9e
Fixed: CPApplicationTest setArguments.
...
Without this change, CPApplicationTest's manipulation of window.location.hash was ignored by CPApplication in recent versions, since CPApp in a unit test normally does not have access to the window object.
This change makes it so that CPApp does try to access the window object, even in a unit test scenario (non PLATFORM(DOM)).
2012-12-15 11:50:47 +00:00
Alexander Ljungberg
252b8f5ca5
Fixed: [CPApp windows] contained nil.
...
Before this fix, CPApp tried to add nil to its internal list of windows, even that nil should not be added to a CPArray. Second, that nil was actually returned by [CPApp windows] rather than an expected list of only CPWindow instances.
This fix makes [CPApp windows] return only actual windows, replaces the internal _windows[0] placeholder with CPNull, and ensures this CPNull is never actually exposed outside of the class.
2012-12-15 11:48:15 +00:00
Alexander Ljungberg
d82da5d571
Fix 7070fe9b2e.
2012-12-15 01:36:05 +00:00
Alexander Ljungberg
1ebdd8ed8e
Try to make travis output more to the point.
2012-12-15 01:32:06 +00:00
Alexander Ljungberg
7070fe9b2e
--quiet and --verbose boostrap.sh options.
...
Without this change, bootstrap.sh outputs a great deal of often superfluous information, like precisely which files are unzipped.
Also, curl and wget display progress information by default.
With this change, by default unzipping is quiet, unless --verbose is specified. curl and wget still display progress information, but --quiet can be specified to prevent this.
2012-12-15 01:31:28 +00:00
Alexander Ljungberg
7b2464a740
Fix tab view test to work after 2758454.
...
Now that we use layoutSubviews in CPTabView we have to make sure it's called in a unit test scenario.
2012-12-15 01:12:29 +00:00
Alexander Ljungberg
e2f19c30f1
Whitespace.
2012-12-15 01:03:52 +00:00
Alexander Ljungberg
5408df40f5
Merge pull request #1698 from ahankinson/travis-ci
...
Travis CI Integration
2012-12-15 00:46:49 +00:00
Alexander Ljungberg
79894781b1
Merge pull request #1707 from slevenbits/slevenbits-tokenfield-value-fix
...
Fixed: if any token field was being edited, the object value of all other token fields contained the partial value.
2012-12-15 00:40:07 +00:00
Alexander Ljungberg
e798842dee
Merge pull request #1706 from slevenbits/slevenbits-tokenfield-scroll-fix
...
Fixed: token field autocomplete scrollbars unresponsive to mouse.
2012-12-15 00:40:04 +00:00
Alexander Ljungberg
98ff6c1279
Merge pull request #1705 from slevenbits/slevenbits-popover-firefox-fix
...
Fixed: popoverDidShow in Firefox. New: popover animation support in Firefox, Opera and IE10.
2012-12-15 00:40:02 +00:00
Alexander Ljungberg
59fb04321d
Merge pull request #1704 from slevenbits/slevenbits-key-popover-fix
...
Fixed: CPPopovers could not become key windows in recent versions.
2012-12-15 00:37:28 +00:00
Alexander Ljungberg
81d537fa24
Merge pull request #1703 from slevenbits/slevenbits-editable-tokenfield-fix
...
Fixed: tokens could be deleted in an non editable token field.
2012-12-15 00:37:23 +00:00
Alexander Ljungberg
6488ab2375
Merge pull request #1702 from slevenbits/slevenbits-settimeout-fix
...
Allow setTimeout(f) to support some JS libraries such as PDF.js.
2012-12-15 00:37:20 +00:00
Alexander Ljungberg
a10f36e3a2
Merge pull request #1701 from slevenbits/slevenbits-tab-view-resize-fix
...
Fixed: tab views added in IB didn't resize properly.
2012-12-15 00:37:18 +00:00
Alexander Ljungberg
90640b824c
Merge branch 'refs/heads/slevenbits-tokenfield-value-fix' into slevenbits
2012-12-14 15:14:15 +00:00
Alexander Ljungberg
eed37a0f81
Fixed: if any token field was being edited, the object value of all other token fields contained the partial value.
...
Without this fix, token fields generally assumed that if there was anything in the shared editor buffer, it belonged to the current field, even if it wasn't the field that was being edited.
With this fix only the token field actually being edited considers the editor contents.
2012-12-14 15:12:44 +00:00
Alexander Ljungberg
252144950a
Merge branch 'refs/heads/slevenbits-popover-firefox-fix' into slevenbits
2012-12-13 14:09:18 +00:00
Alexander Ljungberg
0781a4153e
Fixed: popoverDidShow in Firefox. New: popover animation support in Firefox, Opera and IE10.
...
Before this fix, popoverDidShow: would not be sent to popover delegates when the app ran in Firefox due to Firefox now recognising the -webkit-transition property, but not the webkitTransitionEnd event.
Also, before this fix popover animation was only implemented for Webkit based browsers.
This fix resolves that issue and in addition adds full support for animated popovers in all browsers that support CSS transitions. The fix also improves Cappuccino's general support for CSS3 animations.
2012-12-13 14:04:36 +00:00
Alexander Ljungberg
17e49c458e
Merge branch 'refs/heads/slevenbits-key-popover-fix' into slevenbits
2012-12-12 18:17:34 +00:00
Alexander Ljungberg
8ec1325aff
Fixed: CPPopovers could not become key windows in recent versions.
...
This prevented text fields and token fields from accepting input when placed in a pop over.
This fix allows the underlying popover window to become the key window.
2012-12-12 18:17:20 +00:00
Alexander Ljungberg
7fbe571e04
Merge remote-tracking branch 'slevenbits/slevenbits-tokenfield-scroll-fix' into slevenbits
2012-12-12 17:50:41 +00:00
Alexander Ljungberg
b0051603da
Merge remote-tracking branch 'slevenbits/slevenbits-editable-tokenfield-fix' into slevenbits
2012-12-12 17:50:33 +00:00
Alexander Ljungberg
947b116c06
Manual test for non-editable token fields.
2012-12-12 17:50:05 +00:00
Alexander Ljungberg
095858d3d5
Fixed: token field autocomplete scrollbars unresponsive to mouse.
...
Without this fix, the scroll handle in the token field autocomplete menu could not be moved using the mouse. Only scroll wheel or keyboard based scrolling was possible.
This fix enables regular mouse interaction with the scrollbar.
2012-12-12 17:47:50 +00:00
Alexander Ljungberg
2b1b1ea33b
Fixed: CPScrollView setGlobalScrollerStyle: return value.
2012-12-12 17:45:59 +00:00
Alexander Ljungberg
1bed7e7108
Merge remote-tracking branch 'slevenbits/slevenbits-editable-tokenfield-fix' into slevenbits
2012-12-11 17:28:17 +00:00
Alexander Ljungberg
bd1f64bfde
Only show token delete button on hover, and only when token field is editable.
...
Before this change the close button showed at all times, even for token fields which weren't even editable.
This change brings us closer to Cocoa in that there's no token delete button most of the time, and just like in Cocoa there are more controls available on hover. (Although in Cocoa there's a disclosure arrow and we have a close button instead.)
2012-12-11 17:27:13 +00:00
Alexander Ljungberg
d27e333941
Fixed: tokens could be deleted in an non editable token field.
...
Prior to this fix, clicking the (X) button on a token would delete the token even if the field was not actually editable.
2012-12-11 17:19:02 +00:00
Alexander Ljungberg
c2bf47eca2
Support CPThemeStateEditable for text fields.
2012-12-11 17:15:24 +00:00
Alexander Ljungberg
9035439f61
Fixed: token field first responder flicker when clicking tokens.
...
Without this change, clicking a token in a first responder token field would cause it to momentarily lose first responder status and then immediately gain it back.
This fix makes it so that tokens never try to become the first responder, resulting in a more stable token field as tokens are selected and deselected.
2012-12-11 16:43:06 +00:00
Alexander Ljungberg
60fd129bd9
Merge remote-tracking branch 'slevenbits/slevenbits-settimeout-fix' into slevenbits
2012-12-11 13:05:43 +00:00
Alexander Ljungberg
77955f4e2b
Allow setTimeout(f) to support some JS libraries such as PDF.js.
...
Without this change some 3rd party JS libraries such as PDF.js, which rely on the nonstandard setTimeout(f), will not operate correctly.
According to MDN the delay argument is required. However browsers seem to treat setTimeout without delay argument the same as a delay of 0. This fix makes it so that Cappuccino apps do the same.
2012-12-11 00:57:42 +00:00
cacaodev
6b7b63dff4
Drop support with drop indicator.
...
FIXED: undefined _horizontalMargin
Test app: UI for switching uniformSubviewsResizing.
2012-12-08 23:15:41 +01:00
cacaodev
dd5bd17e2b
Simplify the "layout computing" method and change its name
...
There is not need to use that much arguments because the result is stored in ivars.
CPCollectionViewItem -copy: set properties correctly even if the collectionView overrides them.
2012-12-08 17:43:53 +01:00
cacaodev
2ab1493d27
Merge branch 'CPCollectionView-dragged-view' into CPCollectionView-dragAndDrop
2012-12-07 16:51:23 +01:00
cacaodev
9a1e75712d
test app: CPSelectionIndexesBinding test
2012-12-07 16:51:11 +01:00
cacaodev
4c1ebfbdd4
-setItemPrototype:
...
Do not cache removed items in -reloadContent when the item prototype changes.
maxItemSize:
Interpreted as horiz/vertic expandable when zero size and the proto view has a CPViewWidth|HeightSizable. (per cocoa but not documented).
maxItemSize height support.
Fixed: incorrect position when num items < numberOfColumns.
Rewrote layout engine. Splitted the computation of size, columns count, rows count from the actual layout where we set the frame.
This will help when/if we support insertion/mutation of -content or view animations.
We can also be more lazy when the computation results stay the same.
Added shared -init. Whitespace cleaning.
CPCollectionviewCibTest:
Add ability to set the 2 kinds of prototypes, one loading its view from a cib, the other with a view outlet in the same cib.
Loaded protoype: the bound textfield can commit its value to the model.
UI for setting maxNumberOfColumns|Rows min|maxItemSize
2012-12-06 19:42:03 +01:00
Andrew Hankinson
f5bb8abfe0
Updating paths for integration into mainline cappuccino
2012-12-03 19:24:14 -05:00
Andrew Hankinson
a24f33ad93
Add .travis.yml for Travis-CI support
2012-12-03 19:11:35 -05:00
Alexander Ljungberg
ad5f0a7f7d
Avoid touching the window object in CPApplication of non-DOM apps.
2012-12-03 22:45:53 +00:00
Alexander Ljungberg
2611e867b3
Fixed: ce9534c too negative with canBecomeKeyWindow.
...
Due to a typo in ce9534c , even standard titled windows returned NO for `canBecomeKeyWindow`. This triggered errors in `CPApplicationTest`.
The fix returns the correct YES for `canBecomeKeyWindow` of titled windows.
2012-12-03 22:44:12 +00:00
Alexander Ljungberg
c9434ec4dc
Fixed: CPFontManager attempt to access DOM in non-DOM apps.
...
The DOM access caused `CPFontManagerTest` when executed with rhino.
2012-12-03 22:22:16 +00:00
Alexander Ljungberg
282e96649a
Formatting.
2012-12-03 22:21:01 +00:00
cacaodev
34d6d0695f
Freeze autoresizingMask
...
The mask is 0 and cannot be changed.
Cocoa allows any value but ignores them for layout.
2012-11-30 15:01:44 +01:00
cacaodev
524bd52a56
Partially rewrote layout.
...
it is not optimal but certainly better than the previous version. A
collection view was unusable when resized through its scroll view.
2012-11-30 15:01:44 +01:00
cacaodev
efc5b8faaa
Update min/maxItemSize lazylly instead of subclassing -awakeFromCib
...
Binders can set values before -awakeFromCib. We were too late
and the bound content was not visible.
2012-11-30 15:00:28 +01:00
cacaodev
112c6bd594
CPCollectionView test. Nib test and bindings test.
...
Bindings:
collectionView CPContentBinding -> arrayController.selectedObjects
prototypeView CPValueBinding -> owner.representedObject
2012-11-30 14:58:52 +01:00
cacaodev
8b5c0fb715
CPCollectionView : Allow the prototype view to be loaded from a cib
...
With this commit CPCollectionView can load subviews from an external
cib. Outlets, actions and bindings between the view and the
prototype are restaured when the view is loaded.
2012-11-30 14:56:36 +01:00
Martin Carlberg
82337b8baa
Merge branch 'master' into scroll_before_focus_text_field
...
Conflicts:
AppKit/CPTokenField.j
2012-11-30 14:43:46 +01:00
Alexander Ljungberg
d4f9e7cba4
Merge branch 'master' into slevenbits
2012-11-30 00:07:07 +00:00
Alexander Ljungberg
71b93a2b4c
Merge pull request #1696 from slevenbits/slevenbits-tokenfield-autocomplete-position
...
Fixed: token field autocomplete menu placed incorrectly.
2012-11-29 23:51:52 +00:00
Alexander Ljungberg
86b302491a
Merge pull request #1695 from slevenbits/slevenbits-tabbing-fix
...
Fixed: tabbing to token fields.
2012-11-29 23:50:00 +00:00
Martin Carlberg
744f3d70ed
nib2cib allows CPCheckBox and CPRadio to have themed height and adjusts it correctly
2012-11-29 15:37:33 +01:00
Alexander Ljungberg
e28a78afd3
Merge pull request #1693 from mrcarlberg/nib2cib_correct_height_for_button_subclasses
...
nib2cib will now adjust to the correct themed height for subclasses of CPButton
2012-11-29 12:34:29 +00:00
Martin Carlberg
7dd034e56c
nib2cib will now adjust to the correct themed height for subclasses of CPButton.
...
For examples CPPopUpButton can get another height then CPButton.
2012-11-29 13:25:53 +01:00
cacaodev
b97a07630d
CPStepper : Adds binding support for CPValueBinding, CPMinValueBinding, CPMaxValueBinding. Placehoders defaults are minValue, minValue, maxValue.
...
CPStepperBindings : Example for these bindings. Shows behavior when input is a marker.
2012-11-27 15:52:38 +01:00
Alexander Ljungberg
990aeca0ba
Merge pull request #1681 from mockingbird/master
...
Make all validations by the framework be autovalidations
2012-11-26 23:44:22 +00:00
Alexander Ljungberg
3c5284f081
Merge pull request #1691 from cacaodev/CPBinder-_updatePlaceholdersWithOptions
...
CPBinder -_updatePlaceholdersWithOptions: add a reference to the binding.
2012-11-26 23:36:55 +00:00
Alexander Ljungberg
db1bf80cd4
Merge branch 'refs/heads/slevenbits-tabbing-fix' into slevenbits
2012-11-26 23:33:30 +00:00
cacaodev
da01d3aaaa
do it right
2012-11-26 18:31:08 +01:00
Alexander Ljungberg
9d4e8164b7
Fixed: token field autocomplete selection by mouse.
...
After recent changes clicking on an autocomplete item in the pop up did nothing. Now this works and in conjunction with the new non-key-window-change update it's likely to work better than before.
2012-11-26 15:39:41 +00:00
Alexander Ljungberg
ce9534cdea
Fixed: canBecomeKeyWindow response for auxiliary windows.
...
Without this fix Cappuccino always returned YES for `canBecomeKeyWindow` for every window. But in Cocoa, only "standard" windows with a title bar and/or resizing return YES.
With this fix Cappuccino better matches Cocoa's behaviour.
2012-11-26 14:01:33 +00:00
Alexander Ljungberg
2236e7d2da
Unused variable.
2012-11-26 13:48:45 +00:00
Alexander Ljungberg
2ea24ed2dc
Merge branch 'slevenbits-tokenfield-autocomplete-position' into slevenbits
2012-11-26 13:41:39 +00:00
Alexander Ljungberg
abfb23d931
Merge branch 'refs/heads/slevenbits-tab-view-resize-fix' into slevenbits
2012-11-25 18:00:20 +00:00
Alexander Ljungberg
868480ada5
Merge branch 'refs/heads/master' into slevenbits
2012-11-25 17:59:48 +00:00
Alexander Ljungberg
632e226b51
Manual test to demo/test fixed position text with and without bezel.
2012-11-25 11:12:37 +00:00
cacaodev
6c4d1e5ce1
CPBinder _updatePlaceholdersWithOptions : Added forBinding:(CPString)aBinding argument.
...
If a binder instance can manage several bindings, you may want to set placeholders depending on the binding name.
2012-11-22 15:33:01 +01:00
Alexander Ljungberg
4ef5dc83bb
Fixed: token field autocomplete menu placed incorrectly.
...
If the token field was in a window not placed in the upper left corner of the screen (like regular platform windows are), the autocomplete menu would show up in the wrong spot.
2012-11-19 15:08:17 +00:00
Alexander Ljungberg
9ebc78773d
Put half a vertical spacing above the first row of tokens.
...
This means there'll be 1 px of spacing both above and below tokens in multi-row configurations. It also places the token much better in the field both in single and multi-row configurations, at least for the Aristo theme.
2012-11-19 12:14:28 +00:00
Alexander Ljungberg
e2f8d77f67
Fixed: white line when scrolling between tokens.
...
Without this fix there'd be a white line visible on top of the token field when scrolling between multiple lines of tokens in a short field.
In addition the scroll view was 1 px short which made it possible to scroll tokens up and down by 1 px even when there was only a single row of tokens which should fit in the field.
This fix expands the clip rect upwards by 1 px to bring it all the way up to the first row of bezel pixels, ensuring sure a single row of tokens fits fully in a 1 row token field.
2012-11-19 11:54:05 +00:00
Alexander Ljungberg
256d36320a
Fixed: token fields lost first responder status when switching between windows.
...
E.g. in a two window application, if a token field was the first responder and another window was made active and then the original window made active again, the token field would no longer be the first responder.
2012-11-19 00:40:26 +00:00
Alexander Ljungberg
6bc8ad0e2c
Add a token field to attached sheet test for first responder testing in multi window situations.
2012-11-18 22:34:08 +00:00
Alexander Ljungberg
fd3ad76db3
Fixed: after tabbing to a token field it'd immediately lose first responder status.
...
Without this fix, the tab key press would be propagated to the browser, which would blur the focused input element, even when that input element was the one the new first responder intended to use.
2012-11-18 22:32:41 +00:00
Alexander Ljungberg
8a39561ddb
Extend tab view test with different tab view types.
...
Resizing for all tab view types can now be tested by clicking "Cycle Tab View Type" up to 6 times and resizing the window for each mode. (Some modes are not implemented.)
2012-11-18 19:33:58 +00:00
Alexander Ljungberg
27584544d9
Fixed: tab views added in IB didn't resize properly.
...
IB sets `autoresizesSubviews` to NO for tab views by default. In Cocoa this doesn't make any difference because `NSTabView` ignores this setting.
This fix makes it so that Cappuccino's tab view also works with `autoresizesSubviews` off.
2012-11-18 19:24:13 +00:00
Alexander Ljungberg
8902acba04
Merge branch 'master' into slevenbits
2012-11-17 11:58:46 +00:00
Alexander Ljungberg
788ee6cd90
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-11-17 11:45:20 +00:00
Alexander Ljungberg
97f3ab23b7
Merge pull request #1689 from slevenbits/slevenbits-content-rect-toolbar-fix
...
Fixed: incorrect `- CPWindow contentRectForFrameRect:` and `frameRectForContentRect:` for borderless windows with toolbars.
2012-11-17 11:40:53 +00:00
Alexander Ljungberg
074e9f70a0
Fixed: incorrect - CPWindow contentRectForFrameRect: and frameRectForContentRect: for borderless windows with toolbars.
...
The window views driving non standard windows (such as borderless or bridge windows) did not take the toolbar into account when calculating the content rect.
Apart from being wrong, this could lead to the content view overlapping the toolbar if the content view was set after the toolbar was prepared.
Perhaps the thought was that the base _CPWindowView shouldn't make assumptions about the placement and sizing of a toolbar and leave that up to subclasses, but the _CPWindowView tile method already did.
2012-11-17 10:06:08 +00:00
Antoine Mercadal
621f1f1d61
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-11-15 15:33:49 -08:00
Antoine Mercadal
ba338036f9
improve CPPopover's popoverDidShow: management
...
Before, the popoverDidShow: delegate methods was called during the CSS animation (if any)
Problem is that is we are processing big amount of data, the animation may hang for a bit in the middle, giving an impression of jerkiness.
Now, popoverDidShow: is called at the end of the CSS animation if popover is animated.
2012-11-15 15:31:20 -08:00
Alexander Ljungberg
9b9380c18e
Merge branch 'refs/heads/master' into slevenbits
2012-11-15 17:15:18 +00:00
Alexander Ljungberg
c896101a30
Fixed: a recent internal method rename broke CPTabViewItem setView:.
2012-11-15 10:05:14 +00:00
cacaodev
cd22b29ff1
Adds a binded popup to the ViewBasedCib example.
2012-11-14 16:02:05 +01:00
cacaodev
1d8c46216f
Do not enqueue editing data views. No need to clean FR and action if it is not enqueued. Clean up corresponding code.
2012-11-13 21:18:20 +01:00
cacaodev
b5d70b90d9
Code style following alexander comments
2012-11-13 19:20:49 +01:00
cacaodev
9b03abaeef
ViewBasedCib example now uses a separate table delegate, which is the owner of table cell views.
...
It shows that the loaded view (intenal or external) has an outlet owned by the table delegate and is available for initial setup in -awakeFromCib
2012-11-13 18:52:45 +01:00
cacaodev
8a3d832b4c
NSNib.j : use a UUID to create the temp nib file (for safety). Remove ref to NSTableCellView in info message
2012-11-13 18:37:58 +01:00
Alexander Ljungberg
7fab75216f
Fixed: text field responder error when using a formatter.
...
If the formatter rejected a change and prevented the first responder status from being surrendered, the text field would still stop listening to key window changes and break first responder behaviour when switching between windows.
2012-11-13 16:34:47 +00:00
Alexander Ljungberg
6c265fee30
With the NSMatrix->CPRadioGroup change the selectedRadio is easier to get.
2012-11-13 16:31:52 +00:00
cacaodev
d2848fc519
Do not search for custom cibs if we are in a cell-based table view
2012-11-13 12:08:37 +01:00
cacaodev
48092bd7ba
makeViewWithIdentifier:owner: search for a custom cib in owner's bundle or main bundle if nil. (was main bundle)
2012-11-13 12:05:03 +01:00
cacaodev
5c15ceedc4
Make the cached list of inexistent custom cibs an ivar
2012-11-13 11:57:18 +01:00
cacaodev
f568a2407b
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-11-13 11:22:03 +01:00
Alexander Ljungberg
f1c6a8bc12
Fixed: Error: Permission denied to access property '_childAppIsStarting' in Firefox.
...
This error would occur when running an app in an iframe which could not access its parent frame.
2012-11-08 17:30:17 +00:00
Antoine Mercadal
0fa499bd61
Makes CPAlert above popovers
2012-10-30 11:09:38 -07:00
Antoine Mercadal
c747a79db9
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-10-29 16:10:15 -07:00
Antoine Mercadal
a1751cc981
Improve Popover's content view resizing
2012-10-29 16:09:09 -07:00
Martin Carlberg
7bf5f6f5a9
Added scrollRectToVisible when CPTokenField becomeFirstResponder
2012-10-27 15:13:57 +02:00
Alexander Ljungberg
797bfeec98
Implement CPPointInRect.
...
This improves source code compatibility with Cocoa when replacing NS with CP.
2012-10-24 15:35:42 +01:00
Alexander Ljungberg
c3c61e1889
- CPBox titleView.
...
This method is the Cappuccino analog to `- NSBox titleCell`.
2012-10-24 15:32:45 +01:00
Alexander Ljungberg
0d9973abb9
Fixed: out of place table headers and other text positioning errors.
...
A line breaking, vertically centred or bottom aligned `_CPImageAndTextView` would not properly recalculate text position when the height of the text changed due to the width of the field changing.
This could cause, for example, table header text to be misaligned if the table was initialised with a zero height.
2012-10-23 16:19:11 +01:00
Alexander Ljungberg
7de4fe7afa
Fixed: automatic table view sort descriptors didn't work for deeper bindings.
...
If a table view column showed for example `arrangedObjects.user.name`, it would try to sort arranged objects by `name` instead of `user.name`.
2012-10-23 15:24:10 +01:00
Alexander Ljungberg
fb155dec58
Allow non-string tooltips.
...
Technically the tooltip should be a `CPString` but if a date or a number is passed this will now work without a crash.
2012-10-23 11:44:21 +01:00
Alexander Ljungberg
90d27133b0
Fixed: relative URLs were deemed to fail the SOP test by web views.
2012-10-23 11:22:24 +01:00
Alexander Ljungberg
0f5d459ed8
Fixed: collection view crash on unepexted drag events.
2012-10-23 11:21:42 +01:00
Alexander Ljungberg
f4dc08f1f8
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-10-22 23:14:08 +01:00
Alexander Ljungberg
4bedd52e16
CPGraphicsContext saveGraphicsState and restoreGraphicsState.
2012-10-22 15:03:32 +01:00
Alexander Ljungberg
391701fdc7
- CPBezierPath addClip and setClip.
...
This enables e.g. a `CPGradient` to be drawn clipped by an arbitrary bezier path.
2012-10-22 15:02:28 +01:00
Antoine Mercadal
a973be2566
fix bad import
2012-10-18 15:26:15 -07:00
Antoine Mercadal
298fd49c55
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-10-18 14:23:22 -07:00
Antoine Mercadal
23adbd4407
Improve tooltips API and avoid some sticky tooltips
2012-10-18 14:22:47 -07:00
cacaodev
5b1cf49170
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-10-15 14:23:24 +02:00
Alexander Ljungberg
eba3e95b81
CPBezierPath controlPointBounds and CGPathGetBoundingBox.
2012-10-15 11:10:23 +01:00
Alexander Ljungberg
8819fd5fd7
Improve nib2cib support for NSMatrix based radio groups.
...
Without this fix, a matrix with a target-action pair would crash when the cib was loaded due to the matrix having been replaced with a `CPView` (which cannot take a target-action pair).
Now if the matrix is for radio buttons, the action connection for the matrix is made to the `CPRadioGroup` instead and works as expected when radio selections are made.
2012-10-15 02:55:04 +01:00
Alexander Ljungberg
9c2cb393c2
CGContextIsPathEmpty for non-canvas based platforms.
...
Unfortunately there doesn't seem to be a way to get the current path from a canvas context so this function only works in VML mode for now.
2012-10-15 02:49:11 +01:00
Alexander Ljungberg
ca4e034a3b
CPBezierPath appendBezierPathWithArcFromPoint:toPoint:radius: and CGPathAddArcToPoint.
2012-10-15 02:47:37 +01:00
Alexander Ljungberg
fd138cfae7
- CPBox setTitleFont support.
2012-10-15 01:10:08 +01:00
Alexander Ljungberg
e530831b81
+ CPFont systemFontSizeForControlSize:.
2012-10-15 01:09:21 +01:00
Alexander Ljungberg
7c56ea47dd
Skeleton CPColor colorUsingColorSpaceName:.
...
The method does nothing but is provided for API compatibility with `NSColor`.
2012-10-15 01:00:29 +01:00
Alexander Ljungberg
adb6404a0f
Support Cib/Interface Builder window positioning masks.
...
Without this feature windows could easily end up being placed outside of the screen/browser when loaded in Cappuccino due to e.g. the window position being 100 px from the bottom of a 1418 px tall screen but the browser only being 800 px.
This commit adds support for all "initial position" window masks in Interface Builder except "centre". Position can be specified in current screen space coordinates and then adjusted proportionally to the browser size, or adjusted while preserving a left or right margin and a top or bottom margin.
2012-10-15 00:20:22 +01:00
Alexander Ljungberg
084e0a315f
Clean up.
...
Put `_CPCibWindowTemplate` coding support in its own category to match most Cappuccino classes.
2012-10-14 20:18:48 +01:00
Alexander Ljungberg
c2f9b91fe2
Implicit sort descriptor binding support.
...
Sort descriptor bindings are now automatically established when a table view has a column value binding (normally to an array controller).
2012-10-14 19:39:39 +01:00
Alexander Ljungberg
b629b882b4
Clean up and fix ArrayController1 test.
...
Use `CPValueBinding` instead of `@"value"` in case someone reads this as an example.
2012-10-14 19:32:47 +01:00
Alexander Ljungberg
da91ab9879
Fixed: implicitly set selectionIndexes.
...
`CPTableView`'s `selectionIndexes` binding shouldn't be set automatically unless the content binding was also set automatically (through a table column binding).
Assume that manual content binding implies a desire to manually bind selection indexes (and sort descriptors) as well.
2012-10-14 19:31:53 +01:00
Alexander Ljungberg
a70bc7d953
"Creates Sort Descriptors" CPTableColumn value binding option.
...
With this option an array controller driven table view can be sorted by clicking the table column headers without manually setting up sort descriptor prototypes.
If `CPCreatesSortDescriptorBindingOption` is enabled on a table column value binding, sort descriptors will be created automatically. The default value for this option is YES.
2012-10-14 18:27:25 +01:00
Aparajita Fishman
7614c18fea
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-10-11 12:35:01 -04:00
Aparajita Fishman
c37783c895
Fixed table column header styling
...
- Attributes set in IB are now obeyed.
- Added accessor methods to programmatically style _CPTableColumnHeaderView.
Since we don't have an NSCell and _CPImageAndTextView is supposed to be private, it's better to have the styling methods in _CPTableColumnHeaderView.
2012-10-11 12:34:55 -04:00
Antoine Mercadal
905d23d159
small graphical fix in CPPredicateEditor
2012-10-10 15:33:53 -07:00
Antoine Mercadal
7bf46cb40b
Add support for disabling sudo action
...
you can set CAPP_NOSUDO=1 in your environment to disable any sudo action.
This means that if a command failed as current user, jake
will not try to run it with sudo,and will simply return the error code
2012-10-10 12:24:36 -07:00
Aparajita Fishman
385de88e2f
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-10-08 17:30:40 -04:00
Aparajita Fishman
c2da96e311
CPWebView should be converted to WebView* in the shadow header
2012-10-08 17:30:28 -04:00
Saikat Chakrabarti
e46cd1478b
Fix syntax of validateVisibleItems
2012-10-07 14:45:23 -04:00
Antoine Mercadal
8bbb3d30b2
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-10-05 17:59:57 -07:00
Antoine Mercadal
1edcc511d6
Allow custom action for search button
...
If there is no menu, and search button has a target/action, then
send the action.
2012-10-05 17:58:54 -07:00
aparajita
9b22b33616
Merge pull request #1682 from slevenbits/clickedColumn
...
Implemented CPTableView -clickedColumn
2012-10-02 14:21:51 -07:00
Aparajita Fishman
3992ca71c6
Merge branch 'clickedColumn'
2012-10-02 17:20:53 -04:00
Aparajita Fishman
3fd8d3e5be
Implemented CPTableView -clickedColumn
2012-10-02 17:20:39 -04:00
Aparajita Fishman
ce167cf92d
Removed unused variable
2012-10-02 08:41:57 -04:00
Saikat Chakrabarti
d718c292f5
Combine the _autovalidate and validateVisibleItems methods.
2012-10-01 21:21:01 -07:00
Aparajita Fishman
3a04bb2957
Merge branch 'refs/heads/upstream'
2012-09-29 05:28:41 -04:00
Aparajita Fishman
3ccaa4de50
Button types can be set in IB, no need for code
2012-09-28 18:04:31 -04:00
aparajita
5cd137b745
Merge pull request #1680 from slevenbits/tag-fix
...
Fix tag reading from IB
2012-09-28 14:46:35 -07:00
Aparajita Fishman
95246d73c1
Fixed xib to work correctly with smaller screens
2012-09-28 17:44:56 -04:00
Aparajita Fishman
1c3300b066
Merge branch 'tag-fix'
2012-09-28 16:21:27 -04:00
Aparajita Fishman
8ff2a32b47
Fix tag reading from IB
...
Both controls and cells can have tags in IB, but Cappuccino has no cells. If the control has a tag, that takes precedence. Tag reading was moved to NSControl from NSView, since NSView does not have a tag in Cocoa.
2012-09-28 16:20:55 -04:00
Aparajita Fishman
b443cb806a
Both cells and controls can have tags in IB, control tag should take precedence
2012-09-28 16:13:24 -04:00
Aparajita Fishman
90d52a8bb4
Don't show environment vars when building
2012-09-28 14:55:33 -04:00
Martin Carlberg
182f4c369a
Make sure the text field is visible before focus so the browser
...
will not scroll without the NSScrollView knowing about it
Issue #1675 and maybe a little of issue #1301
This fix will not work without pull
request #1678 - Fixed scrollRectToVisible in CPView
2012-09-28 12:57:13 +02:00
Martin Carlberg
1d1f2d73ca
Fixed scrollRectToVisible in CPView:
...
Earlier it only worked when the receiver was the document view of the clip view.
Added test case.
2012-09-28 12:27:23 +02:00
Alexander Ljungberg
a337bc28f9
Reduce number of divs used by typical apps.
...
Without this optimisation nil or 0x0 sized image slices in three part and nine part images result in useless empty divs.
Eliminating these divs should improve performance and reduce memory usage.
Although exact memory usage is hard to measure, in a large app the number of divs on screen went from 1012 to 984, a reduction of about 2.7%.
2012-09-26 12:32:09 +01:00
Alexander Ljungberg
8a5923527f
Mention our trailing whitespace policy.
2012-09-24 17:14:37 +01:00
Alexander Ljungberg
59ad8499df
Refs #1676 . Whitespace.
2012-09-24 17:05:35 +01:00
Alexander Ljungberg
566cd6c6e8
Merge pull request #1676 from deltaprojects/master
...
CPNumberFormatterPercentStyle and CPTableView hidden column bug fix
2012-09-24 16:56:18 +01:00
Johan Stille
02a885eb09
Added test for initially hidden table column fix.
2012-09-24 14:22:39 +02:00
Johan Stille
632fba9dd5
Null check when laying out columns in CPTableView.
2012-09-24 13:17:24 +02:00
Johan Stille
eb2bb24c19
Added support for CPNumberFormatterPercentStyle in CPNumberFormatter.
2012-09-24 12:08:31 +02:00
Alexander Ljungberg
c8a37b4f99
Improve readability.
2012-09-17 19:46:36 +01:00
Alexander Ljungberg
117d946ed3
Contributing guidelines.
...
These will be shown in GitHub: https://github.com/blog/1184-contributing-guidelines .
2012-09-17 18:54:25 +01:00
Antoine Mercadal
d4b0e2a124
fix some paths using non unicode chars causing xcc_general_include.h import problems
2012-09-15 12:17:43 -07:00
Antoine Mercadal
4acda0c447
fix and update css for documentation when using doxygen 1.8
2012-09-14 14:33:13 -07:00
Martin Carlberg
23401d37d8
Fixed error in function CPDescriptionOfObject when a JSON object property has a null value.
...
The function can't handle the following JSON object: {name:null}.
Also added a test case for this.
2012-09-14 10:54:41 +02:00
Antoine Mercadal
a7b40a5cdd
XcodeCapp now uses both .m and .h shadow files in addition of the general include .h. Seems to fix most of the problems + refactoring
2012-09-13 19:07:46 -07:00
Antoine Mercadal
ad5b9b658e
take care of the .h and .m
2012-09-13 19:06:34 -07:00
Antoine Mercadal
df28a4696e
parser.j now generate both header and implementation files
2012-09-13 19:06:00 -07:00
Antoine Mercadal
c30a6fb843
import the general include file to allow XCode to understand custom class inheritance
2012-09-13 14:09:30 -07:00
Antoine Mercadal
2e7afc3ca1
when managin the project, create a file containing includes of all projects files
2012-09-13 14:09:02 -07:00
Antoine Mercadal
2f428fa389
test item visibility when expanding/collapsing items
2012-09-10 15:19:32 -07:00
Antoine Mercadal
0a189906cd
notify delegate that item did collapse after reloading them
2012-09-10 15:17:45 -07:00
Antoine Mercadal
e4a6d8520c
CPOutlineView notify for items expanded after having reloaded them
2012-09-10 13:49:40 -07:00
Alexander Ljungberg
adbc420e0f
Merge branch 'master' into slevenbits
2012-09-04 16:39:20 +01:00
Alexander Ljungberg
fe138be7ae
Merge pull request #1668 from BlairDuncan/SelectionCompatibility
...
Windows selection compatibility. Fix for issue 1390
2012-09-04 13:45:31 +01:00
Alexander Ljungberg
ff51263671
Merge pull request #1669 from slevenbits/cpscrollview-frame
...
Fix frame of CPScrollView is calculated incorrectly.
2012-09-04 13:34:08 +01:00
Blair Duncan
04f650dde7
Windows selection compatibility. Fix for issue 1390
2012-09-03 23:47:11 -04:00
Alexander Ljungberg
e95648ca16
Merge branch 'master' into slevenbits
2012-09-03 20:20:52 +01:00
Alexander Ljungberg
48e797a80d
Minor hit test optimisation.
2012-09-03 20:20:23 +01:00
Alexander Ljungberg
bf3a152946
Whitespace.
2012-09-03 20:20:05 +01:00
Alexander Ljungberg
d0d66227cb
Merge branch 'master' into slevenbits
2012-09-03 11:36:33 +01:00
Alexander Ljungberg
7264692a0a
Optimise CPSegmentedButton setEnabled:forSegment:.
...
Don't relayout the segmented button if the enabled state of a segment is not changed.
2012-09-02 23:33:56 +01:00
Alexander Ljungberg
9d57d02eb5
Merge branch 'master' into slevenbits
2012-09-02 23:12:16 +01:00
Alexander Ljungberg
b5776445ec
Significantly optimise CPToolbar validation.
...
Avoid sending notifications about toolbar items' enabled state needlessly.
Tiling is expensive, but even if the toolbar item ignores redundant `setEnabled:` calls, the cost of notifications alone can really add up when there are many toolbar items.
2012-09-02 23:08:14 +01:00
Ilya Kulakov
ee1c5478b1
Fix frame of CPScrollView is calculated incorrectly.
2012-09-03 03:41:14 +07:00
Alexander Ljungberg
63bad1dae0
Setting _data just once is enough.
2012-09-02 17:28:34 +01:00
Alexander Ljungberg
d0fa16b96b
Fix NSPopUpButton in previous commit.
2012-08-31 23:19:24 +01:00
Alexander Ljungberg
bc93b3f6c7
Merge branch 'master' into slevenbits
2012-08-31 22:31:58 +01:00
Alexander Ljungberg
3dacb4a5ef
Fix nib2cib alignment ofCPColorWell, CPComboBox, CPPopUpButton and CPSegmentedControl.
2012-08-31 22:31:40 +01:00
Alexander Ljungberg
63b57b886e
Merge branch 'master' into slevenbits
2012-08-31 22:12:16 +01:00
Alexander Ljungberg
ce80ee1739
Merge pull request #1667 from slevenbits/stepper-visuals
...
Visual `CPStepper` fixes.
2012-08-31 22:11:19 +01:00
Alexander Ljungberg
4e6b9978ce
Adjust size in NSStepper to CPStepper.
2012-08-31 22:09:11 +01:00
Alexander Ljungberg
31d5ddb20a
Improve CPStepper graphics.
...
* Disabled `CPStepper` looked larger than the regular stepper due to the outline becoming white.
* Wrong pixels at bottom corners.
2012-08-31 22:08:25 +01:00
Alexander Ljungberg
2355b7a38b
Fixes #1666 : since 5763ebd extremely slow double clicks would be accepted.
...
`CPEvent timestamp` is now in seconds so the double click delay has to be adjusted. Also slightly increased double click interval to account for lower precision.
2012-08-31 13:56:14 +01:00
Alexander Ljungberg
0e68729d7f
Fixed: dragged table view columns ignored custom column header views.
2012-08-29 16:41:43 +01:00
Alexander Ljungberg
b33763caeb
Fixed: popovers could only properly open relative to views in the main window.
...
This would make the popover open with the wrong coordinates if the positioning view was in a window different than the main window, such as a utility window which can't become the main window.
2012-08-28 16:25:41 +01:00
Alexander Ljungberg
5b19c967f4
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-08-28 14:33:45 +01:00
Alexander Ljungberg
acd98b5c88
Clarify CPTabView code.
2012-08-28 14:32:04 +01:00
Alexander Ljungberg
ff93262873
Work around rendering bugs in WebKit when moving canvas backed views.
...
This bug would cause errors such as the subviews of a CPBox not drawing properly as the box moved (e.g. due to animation).
2012-08-28 14:31:35 +01:00
Alexander Ljungberg
f535a6a242
Minor CPTabView optimisation.
2012-08-28 11:42:38 +01:00
Blair Duncan
ada73a16ce
Fix for left/right cursors in CPBrowser
2012-08-24 16:01:31 -04:00
Antoine Mercadal
d1c978669b
run ImageOptim on all images. Saved around 30% of original size
2012-08-24 11:48:55 -07:00
Alexander Ljungberg
b28673d23d
Eliminate some debug output from jake test runs.
2012-08-24 17:26:27 +01:00
Alexander Ljungberg
46848562d0
Improve describe format of CPDictionary and CPArray to be more like literals.
...
E.g. a dictionary is expressed as @{key1: value1}, an array like @[value2, value2], a string like @"<value>".
Also don't put all child objects into quotation marks - that makes them all look like strings.
2012-08-24 17:25:37 +01:00
Alexander Ljungberg
9cbc52e858
Cappuccino v0.9.6 RC2.
2012-08-22 22:35:53 +01:00
Alexander Ljungberg
3cdf4fbc88
RC2 bootstrap.
2012-08-21 23:18:24 +01:00
Alexander Ljungberg
b032c9e455
Fixed: objcc --includeTypeSignatures typo.
2012-08-21 22:37:08 +01:00
Alexander Ljungberg
6d4ce10150
Formatting.
2012-08-21 01:24:36 +01:00
Alexander Ljungberg
8b227798e1
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-08-19 17:32:09 +01:00
Alexander Ljungberg
1514e8e981
Fixed: don't crash in unit tests if using Rhino.
...
Apparently Rhino doesn't have `<input element>.setAttribute` and an error would be thrown in `CPCompatibility.j`: `Cannot find function setAttribute in object [object Object].`
2012-08-19 17:16:09 +01:00
Alexander Ljungberg
4fbd0fdc42
Unit test KVCArray setArray: behaviour.
2012-08-19 16:50:09 +01:00
Antoine Mercadal
fea31d54f8
Update comments to remove references to .xCodeSupport
2012-08-17 20:14:26 -07:00
Alexander Ljungberg
10f6c8e8f6
Merge branch 'master' into slevenbits
2012-08-16 19:14:36 +01:00
Alexander Ljungberg
3dffbd6071
Refs #1001 . Make it easy to test text field cut/paste behaviour.
2012-08-16 19:13:59 +01:00
Alexander Ljungberg
876757e748
Refs #1001 . Don't use old cut/paste workaround if oninput fix is available.
2012-08-16 19:13:30 +01:00
Alexander Ljungberg
7abaa30526
Refs #1001 . Fixed: text field cut/paste by context menu would not trigger a change notification.
...
Also just regular copy and paste could fail to trigger notifications.
2012-08-16 19:03:18 +01:00
Alexander Ljungberg
7b3136dae3
Merge branch 'master' into slevenbits
2012-08-15 18:32:36 +01:00
Alexander Ljungberg
1a467f9208
Test text fields with various sizes.
2012-08-15 18:31:39 +01:00
Alexander Ljungberg
54d5f4b0a4
Fixed: horizontal text jump when editing text fields in some browsers.
...
We were compensating for a bug in Safari, older versions of Chrome and Firefox in our input placement. But new Chrome and neither IE 8 nor IE 9 needed it which resulted in the text being off in those browsers.
2012-08-15 18:31:20 +01:00
Alexander Ljungberg
ca3a4f9b9c
Fixed: text field font size while editing was wrong in Internet Explorer.
...
Tested in Internet Explorer 8 and 9.
2012-08-15 18:12:53 +01:00
Alexander Ljungberg
d53b8c5b1f
Fixed: in Firefox the text of edited text fields would "jump" down 1 px.
...
Locking down the line height and vertical alignment explicitly seems to work in Safari 6, Chrome 21, Firefox 14 and IE 8 (although Chrome and IE exhibit some unrelated horizontal jumping.)
2012-08-15 17:13:34 +01:00
Alexander Ljungberg
1e49704062
Fixed: the size with string fix broke metricsOfFont:.
2012-08-15 15:36:15 +01:00
Alexander Ljungberg
b7ee0fe44d
Merge branch 'master' into slevenbits
2012-08-15 13:39:09 +01:00
Alexander Ljungberg
d95268b548
Refs #1654 . Fix up missing bits.
2012-08-15 13:38:49 +01:00
Alexander Ljungberg
0150271e67
Merge branch 'master' into slevenbits
2012-08-15 02:09:40 +01:00
Alexander Ljungberg
e9bafa8f13
Merge pull request #1654 from slevenbits/key-window-style
...
Inactive (non-key) window titles. Layout tweaks.
2012-08-15 02:07:11 +01:00
Alexander Ljungberg
ef66334292
Inactive HUD window title.
...
Also fix close and title positioning.
2012-08-15 02:03:48 +01:00
Alexander Ljungberg
aa17d8c700
Pull up window title code to a superclass for reuse.
2012-08-15 01:38:25 +01:00
Alexander Ljungberg
9f59ac96dd
Inactive window title, start on window theming support.
...
Now the key window can be recognised by the window title.
2012-08-15 01:03:08 +01:00
Alexander Ljungberg
425888ee1f
Fixed: in recent revisions vertical text centring was off by 1 upwards, including window titles.
...
This was caused by making text display generally 1 px taller to allow for fractional pixels at the bottom to show. This should however not be allowed to affect positioning (even if there is a fractional pixel below vertically centred text the text should not move up 0.5 px.)
2012-08-15 00:52:45 +01:00
Alexander Ljungberg
f72615dcbe
Fixed: non-key window text fields tried to receive input, looked active.
...
Only the first responder of the key window should receive text input. This is important in multi-window apps or windows with sheets.
In the multi window case it should be possible to switch between two windows with first responder text fields and keep right on typing. First responder status should not be lost, but new typing should always go into the first responder text field of the key window.
For sheets, a text field which was active when the sheet opened should not receive input nor look active while the sheet is open.
2012-08-14 23:41:09 +01:00
Alexander Ljungberg
e3d0d69918
Refs #1364 . Avoid repeated makeFirstResponder: calls within sheet parent.
...
If a window contained a text field which was the initial first responder, and the window was displaying a sheet, clicking on the window would cause the text field to alternate between being the first responder and not.
This was caused by the window `orderFront:` setting its first responder to the initial responder if there wasn't any responder yet. This would cause the text field to focus, even that the window wasn't the key window, and then on the next click the text field would blur which would make the text field automatically resign its first responder status.
The solution is to leave the first responder status alone if a window which isn't the key window is `orderFront:`ed. This appears to be more sensible UX in general. You don't expect the first responder of non-key windows to change when you click it's background.
2012-08-14 22:43:01 +01:00
Alexander Ljungberg
77266e0b3c
Refs #1364 . Don't orderFront: sheet parent view twice.
...
The sheet's orderFront: already calls the parent window's orderFront:, no need to call it by hand.
2012-08-14 03:10:08 +01:00
Alexander Ljungberg
64bbe0c641
Refs #1364 . Fixed: incorrect key window change when displaying a sheet.
...
When the key window changes the previous window's resignKeyWindow must be called.
2012-08-14 02:39:18 +01:00
Alexander Ljungberg
120cea8734
Refs #1364 . Fix CPTextField test to work with new sheet changes.
2012-08-14 00:15:03 +01:00
Alexander Ljungberg
e23ba0852b
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2012-08-11 19:36:01 +01:00
Alexander Ljungberg
7cae90f8f9
Merge branch 'master' into slevenbits
2012-08-11 19:35:39 +01:00
Alexander Ljungberg
5a8c94183a
Refs #1364 . Formatting, don't shadow window global.
2012-08-11 19:35:05 +01:00
Alexander Ljungberg
de8e08f4f4
Refs #1364 . Add an index-debug.html to test app.
2012-08-11 16:11:04 +01:00
Alexander Ljungberg
1e55b79b49
Merge pull request #1364 from walisser/master
...
Doc-modal/window-modal sheets and other sheet issues [+1]
2012-08-11 15:59:52 +01:00
aparajita
dcdc7cef65
Merge pull request #1652 from slevenbits/stringValue-fix
...
stringValue fix
2012-08-09 20:33:31 -07:00
Aparajita Fishman
9e1d09909e
Merge branch 'stringValue-fix'
2012-08-09 20:31:37 -07:00
Aparajita Fishman
6e40020906
Allow nil value in presence of formatter, the formatter may want to format that
2012-08-09 20:31:26 -07:00
Alexander Ljungberg
306f2c987c
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2012-08-10 03:55:23 +01:00
Alexander Ljungberg
42200ce567
Merge branch 'master' into slevenbits
2012-08-10 03:55:03 +01:00
Alexander Ljungberg
c4c7da3967
Merge pull request #1651 from slevenbits/stringsize-fix
...
Fixed: wrong text sizing across the board for custom fonts.
2012-08-10 03:47:36 +01:00
Alexander Ljungberg
580da9caef
Fixed: wrong text sizing across the board for custom fonts.
...
If a custom font was used with the CSS @font-face syntax, Cappuccino would calculate the wrong sizes for strings throughout. This could result in e.g. cut off sizeToFit labels.
The sizing tests were being performed inside of an iframe and that iframe would not have the same CSS @font-face declarations. For maximum fidelity all string size tests are now performed in the main document, just off screen.
2012-08-10 03:46:09 +01:00
Antoine Mercadal
657baf9135
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-08-09 12:52:11 -07:00
Antoine Mercadal
15c75f05e5
Update some labels
2012-08-09 12:51:43 -07:00
aparajita
a8553c7c10
Merge pull request #1648 from slevenbits/fix-xcc-warnings
...
Fix compiler warnings
2012-08-09 12:19:16 -07:00
Aparajita Fishman
79cd71d2ab
Merge branch 'fix-xcc-warnings'
2012-08-09 12:17:52 -07:00
Aparajita Fishman
2b6d8697d5
Fix compiler warnings
2012-08-09 12:17:31 -07:00
Antoine Mercadal
dcd3995230
remove old pbxproj sample
2012-08-09 11:42:05 -07:00
Aparajita Fishman
081cf61e68
Merge branch 'refs/heads/upstream'
2012-08-09 11:27:32 -07:00
Antoine Mercadal
ad88dabfd1
Update NativeHost.xcodeproj to build on new Xcode
2012-08-09 10:04:08 -07:00
Antoine Mercadal
4e13f3f2fd
Add reference to .j too in a group called Sources
2012-08-08 22:35:35 -07:00
Antoine Mercadal
6a2d7bd2df
Remove useless product group
2012-08-08 22:34:58 -07:00
Antoine Mercadal
81c1f0c7c9
don't be stupid
2012-08-08 22:34:40 -07:00
Antoine Mercadal
cfd6928baa
make XcodeSupport hidden
2012-08-08 21:56:33 -07:00
Antoine Mercadal
7b9582181c
By default ignore *.xcodeproj and DS_Store
2012-08-08 21:53:25 -07:00
Antoine Mercadal
455ec8e3ae
Simplify the FSEvent callback.
...
Events are not so reliable, there are many flaws and special cases (like trashing a folder etc)
In order to simplify the process is the following
- We receive an event
- We tidy up the shadow files
- We check if the given path exists
- If it's a folder, we continue
- If it's a file and it exists : we run handleFileModification
- If it's a file and it doesn't exist: we run handleFileRemoval
2012-08-08 21:51:38 -07:00
Antoine Mercadal
ea31bd2be2
make XcodeCapp compatible with Xcode 4.4
2012-08-08 19:08:16 -07:00
Antoine Mercadal
bf6c0c95eb
Update Xcode project
2012-08-08 19:05:07 -07:00
Antoine Mercadal
bb20a8f4ff
pbxprojModifier.py now uses the mod_pbxproj
2012-08-08 19:04:52 -07:00
Antoine Mercadal
cc18a5d3e2
Update default PBXProj
2012-08-08 19:04:30 -07:00
Antoine Mercadal
88287c6c2d
add attribute to hold the pbxmodifier script
2012-08-08 19:04:04 -07:00
Antoine Mercadal
0fd0a05cd1
basic support for removing a reference of a file
2012-08-08 19:03:44 -07:00
Antoine Mercadal
b0b084dbe8
add necessary imports
2012-08-08 16:02:00 -07:00
Antoine Mercadal
41a6621ac2
Make XCC generating .m files with @property for outlets
...
This is step 1 to have XCC working with Xcode 4.4.
2012-08-08 14:59:29 -07:00
Alexander Ljungberg
ed0fd87646
Merge branch 'master' into slevenbits
2012-08-07 12:32:47 +01:00
Alexander Ljungberg
9fb73e26dc
Merge pull request #1645 from slevenbits/isViewLoaded
...
Added CPViewController -isViewLoaded, fixed CPWindowController -setViewController to use that
2012-08-07 12:29:59 +01:00
Aparajita Fishman
59e8160f18
Added CPViewController -isViewLoaded, fixed CPWindowController -setViewController to use that
...
Before this fix, CPWindowController -setViewController was unconditionally loading the view, which should not happen.
2012-08-06 17:33:58 -07:00
Alexander Ljungberg
4136953752
Merge branch 'refs/heads/master' into slevenbits
2012-08-06 14:03:37 +01:00
Alexander Ljungberg
fdf3e499be
Merge pull request #1644 from slevenbits/CPArrayController-preserveSelectionFix
...
Fix wrong indexes are selected when removing arranged objects.
2012-08-06 13:53:31 +01:00
Ilya Kulakov
c1ace9a7c3
Fix wrong indexes are selected when removing arranged objects.
2012-08-06 19:19:13 +07:00
Alexander Ljungberg
e70430057e
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2012-08-05 12:39:19 +01:00
Alexander Ljungberg
8498e28b70
Merge branch 'master' into slevenbits
2012-08-05 12:37:55 +01:00
Alexander Ljungberg
f9a1d7240e
Merge pull request #1643 from slevenbits/cpdecimalnumber-fix
...
fix CPDecimalMakeString to support '.003' and '-.003' style numbers
2012-08-05 12:34:40 +01:00
Eric Wong
7ad24efe4f
Merge branch 'cpdecimalnumber-fix'
2012-08-05 10:10:40 +08:00
Eric Wong
def8016f44
code style change
2012-08-05 09:35:44 +08:00
Eric Wong
175c70d99e
fix a new bug in CPDecimalMakeWithString and remove some test cases
2012-08-05 08:37:44 +08:00
Darrell Walisser
872d65b824
-fix docs for new delegate methods
2012-08-04 14:06:11 -04:00
Darrell Walisser
339937a316
-support for tags on NSCell, useful for radio groups
2012-08-04 13:58:31 -04:00
Darrell Walisser
eed93dc30d
-capp_lint
2012-08-04 13:57:56 -04:00
Darrell Walisser
bff22779ae
-capp_lint
2012-08-04 13:53:05 -04:00
Darrell Walisser
24ef4d41d2
-capp_lint
...
-enable close buttons based on context
-remove stuff that doesn't work
2012-08-04 13:20:35 -04:00
Eric Wong
9f1a8fa7a2
enable '.003' or '-.003' style number in CPDecimalMakeWithString function and add new test cases
2012-08-04 23:04:40 +08:00
Alexander Ljungberg
a055d6d97e
Merge branch 'refs/heads/master' into slevenbits
2012-08-04 14:11:25 +01:00
Alexander Ljungberg
729d2493cd
Merge pull request #1642 from slevenbits/currency-formatter
...
`CPNumberFormatter` improvements.
2012-08-04 14:10:39 +01:00
Alexander Ljungberg
4d8758f755
Fix CPTextFieldTest.
2012-08-04 13:58:29 +01:00
Alexander Ljungberg
31ea0da526
CPNumberFormatter generatesDecimalNumbers support, enabled by default.
2012-08-04 13:45:45 +01:00
Alexander Ljungberg
3a2bf36359
Very basic CPNumberFormattercurrency style.
2012-08-04 13:37:42 +01:00
Alexander Ljungberg
dc0c63ccc3
Extend CPNumberFormatter CPCoding support and fix rounding default.
2012-08-04 02:31:43 +01:00
Alexander Ljungberg
534635cbc2
Fix CPNumberFormatter maximum/minimum fraction digits property name.
2012-08-04 01:21:42 +01:00
Alexander Ljungberg
a7f22a0c5a
Correct CPNumberFormatter maximumFractionalDigits default.
2012-08-04 01:09:51 +01:00
Alexander Ljungberg
b279a92e4c
CPNumberFormatter setMinimumFractionDigits: support.
2012-08-04 00:55:41 +01:00
Alexander Ljungberg
055dd7229e
Properly allow CPNumberFormatter to operate on most CPNumber types.
...
This only worked by accident before.
2012-08-04 00:48:45 +01:00
Antoine Mercadal
0922f3dab7
Merge pull request #1573 from mrcarlberg/binding_support_popup_button
...
Added key value binding support for CPPopupButton
2012-08-02 15:58:15 -07:00
Alexander Ljungberg
23ed09a84e
Merge branch 'refs/heads/master' into slevenbits
2012-08-02 15:54:36 +01:00
Alexander Ljungberg
b4cfa8cefb
CPEvent description.
2012-08-02 15:53:27 +01:00
Alexander Ljungberg
6b660a0c76
Fixed: CPEvent data1 and data2 weren't stored right.
...
They were stored in globals instead of ivars, allowing only one data1 or data2 in the whole app.
2012-08-02 15:53:04 +01:00
Alexander Ljungberg
1ccd89ddd8
Refs #1640 . Unit test.
2012-08-02 15:44:19 +01:00
Alexander Ljungberg
cbb710cde7
Merge pull request #1640 from slevenbits/CPEvent-modifierFlags
...
Add +[CPEvent modifierFlags]
2012-08-02 14:36:17 +01:00
Ilya Kulakov
d3b38ac5e8
Add +[CPEvent modifierFlags].
2012-08-02 17:37:40 +07:00
Alexander Ljungberg
1fb09dcfae
Fix typo.
2012-08-02 00:53:30 +01:00
Alexander Ljungberg
f06be56fa3
Fixed: accidental global.
2012-08-02 00:45:33 +01:00
Alexander Ljungberg
9768ea4af9
Fixed: multiple rows of tokens in token fields wouldn't scroll right.
...
In recent versions, moving the cursor to a new row of tokens would place the scroll point somewhere halfway between the two rows of tokens.
2012-08-02 00:44:58 +01:00
Alexander Ljungberg
26c26914da
Fixed: token field scrolling away from selected token.
...
Sometimes clicking a token would cause the token field to scroll to some other spot. This appears to have been caused by the inactive input element gaining focus.
We no longer need the input element for keyboard navigation so we can hide it entirely when it's not used to input a new token. Also, avoid focusing the input element needlessly.
2012-08-02 00:38:21 +01:00
Alexander Ljungberg
41783e87a3
Fixed: in recent builds token field text didn't align.
...
Text inside of tokens appeared 1 px higher than text typed in the text field area.
2012-08-01 21:12:53 +01:00
Alexander Ljungberg
299998b247
Merge pull request #1639 from slevenbits/tokenfield-fix
...
Fixed: token fields would sometimes unexpectedly steal first responder status.
2012-08-01 21:02:44 +01:00
Alexander Ljungberg
90ae5766e6
Fixed: token fields would sometimes unexpectedly steal first responder status.
...
If an autocomplete choice was made followed by immediately focusing on another control, the token field would reclaim first responder status a moment later.
2012-08-01 19:18:40 +01:00
Alexander Ljungberg
31ab70d6fc
Refs #1530 . Fixed: table views could not be interacted with if they couldn't become the first responder.
2012-08-01 18:59:54 +01:00
Alexander Ljungberg
7537f4d032
Eliminate some duplicate methods.
2012-08-01 16:35:34 +01:00
Darrell Walisser
32c5c82cb9
-removed unused import
2012-07-29 14:04:06 -04:00
Darrell Walisser
1c18862e0f
-added manual test
2012-07-29 12:54:34 -04:00
Darrell Walisser
97b3679101
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
AppKit/CPApplication.j
AppKit/CPWindow/_CPDocModalWindowView.j
2012-07-29 12:31:47 -04:00
cacaodev
7ecf6ece7c
Tests for previous commit
2012-07-28 12:50:17 +02:00
Alexander Ljungberg
22b882648b
Formatting.
2012-07-28 02:06:05 +01:00
Alexander Ljungberg
a8150a84be
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-28 01:59:06 +01:00
Alexander Ljungberg
df5a7104b1
Fixes #1638 . The case of the incomplete optimisation.
2012-07-28 01:58:41 +01:00
aparajita
2400b6aeab
Merge pull request #1637 from cacaodev/CPCib-initWithCibNamed
...
CPCib -initWithContentsOfURL: return nil if the requested data is nil.
2012-07-27 14:51:22 -07:00
cacaodev
f42b241469
CPCib -initWithContentsOfURL: return nil if the requested data is nil
2012-07-27 20:19:20 +02:00
cacaodev
1c3d658ca1
CPURLConnection -sendSynchronousRequest: return nil if CPHTTPRequest failed.
2012-07-27 20:11:59 +02:00
cacaodev
9cbb8fd5bc
Support for external cibs (a view in an individual cib). Added such view to ViewBasedCib. Also added an example of a view created manually in the delegate
2012-07-27 20:00:00 +02:00
aparajita
4c86c75b5f
Merge pull request #1635 from wmeddie/patch-1
...
Removed tailing comma from CPColorWithImages call.
2012-07-27 10:18:56 -07:00
cacaodev
f4904b8915
CPCib -initWithContentsOfURL: return nil if the returned data is nil (non existent URL, request failed for some reason ...)
2012-07-27 19:17:45 +02:00
cacaodev
176440eeae
CPURLConnection -sendSynchronousRequest: return nil if CPHTTPRequest failed
2012-07-27 19:16:38 +02:00
cacaodev
1a0434fd85
Fix action sent when an edited control is enqueued (see action log in test app).
...
A non bezeled text field is now bezeled when edited and unbezeled when editing ends - including when you hit enter (but text has to be modified, see comment in code)
2012-07-27 16:32:02 +02:00
Eduardo Gonzalez
9d2bdea8d9
Removed tailing comma from CPColorWithImages call.
...
The extra comma causes IE to think it was passed an array with 4
values and causes CPColorWithImages to return a NinePartImage even
though it only has three parts.
2012-07-27 20:51:29 +09:00
cacaodev
c6ccf1d487
-rowForView: early return if arg is not a CPView. Was causing an error when you click on table whose window was not frontmost.
...
Simplify -hitTest:, limit select-row behavior to left mouse events and extend to all data views accepting FR.
2012-07-27 09:48:36 +02:00
Aparajita Fishman
8e6119000d
Added CPViewController -isViewLoaded, fixed CPWindowController -setViewController to use that
...
Before this fix, CPWindowController -setViewController was unconditionally loading the view, which should not happen.
2012-07-26 06:39:31 -07:00
Alexander Ljungberg
bd0114aa06
Refs #1632 . Remove debug logging.
2012-07-26 13:42:01 +01:00
Alexander Ljungberg
1db154ac5b
Merge branch 'refs/heads/master' into slevenbits
2012-07-26 13:34:45 +01:00
Alexander Ljungberg
43506e708d
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-26 13:32:20 +01:00
Alexander Ljungberg
3e218d6aec
Refs #1632 . Unit test for CPUndoManagerDidCloseUndoGroupNotification.
2012-07-26 13:32:01 +01:00
Alexander Ljungberg
bf3c22f42c
Merge pull request #1632 from slevenbits/cpundomanager-notification
...
Starting from 10.7 NSUndoManager posts NSUndoManagerDidCloseUndoGroupNotification
2012-07-26 13:05:40 +01:00
Antoine Mercadal
dcee0e5057
Revert "small fix in theme to avoid 1px offset when editing a CPTextField"
...
This reverts commit fa1441cf71 .
2012-07-25 18:19:15 -07:00
Antoine Mercadal
673c3c19f0
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-07-25 12:00:36 -07:00
Antoine Mercadal
fa1441cf71
small fix in theme to avoid 1px offset when editing a CPTextField
2012-07-25 12:00:09 -07:00
Ilya Kulakov
c57ef67784
Starting from 10.7 NSUndoManager posts NSUndoManagerDidCloseUndoGroupNotification.
2012-07-25 17:02:06 +07:00
Alexander Ljungberg
b1e519fd62
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-24 20:09:58 +02:00
Alexander Ljungberg
b51a2e25c2
Refs #1631 . Unit test last index of index set with a single index.
2012-07-24 20:09:18 +02:00
aparajita
7b2835028a
Merge pull request #1628 from cacaodev/CPCib-instantiateCibWithOwner_topLevelObjects_
...
CPCib -instantiateCibWithOwner:topLevelObjects:
2012-07-23 14:02:09 -07:00
cacaodev
0faf38a1e1
From within the delegate method, if you ask for an IB view (makeviewWithIdentifier:owner:), the view is now automatically reusable.
...
Before that, IB views were reusable only if the delegate method was not implemented.
If you create a view in code, you still need to make it reusable by calling -setIdentifier:
Woow ... now viewBasedCib loads the views x3 times faster.
2012-07-23 19:55:06 +02:00
Alexander Ljungberg
7ab833495f
Merge branch 'refs/heads/master' into slevenbits
2012-07-23 15:39:03 +02:00
Alexander Ljungberg
9eee7a214e
Refs #1630 . Add test.
2012-07-23 15:35:52 +02:00
Alexander Ljungberg
d0b152c638
Merge pull request #1630 from slevenbits/cparray-fix
...
Fix CPArray should throw an exception when observer is added/removed.
2012-07-23 15:34:38 +02:00
Alexander Ljungberg
6d08f0d60b
Formatting.
2012-07-23 15:26:03 +02:00
Alexander Ljungberg
aab8ade15b
Refs #1629 . Fixed: aSet removeObject: for an object not a member is not an error.
2012-07-23 15:25:52 +02:00
cacaodev
4c4a707624
In CPTableCellView initializers, enforce autoresizingMask to CPViewHeightSizable. Per cocoa except in cocoa it is done when the view is added to superview.
2012-07-23 15:12:06 +02:00
cacaodev
5456bad23d
Remove unwanted import in AppController test app
2012-07-23 14:59:48 +02:00
Alexander Ljungberg
8e6634168a
Merge pull request #1629 from slevenbits/cpset-fix
...
Fix CPSet's member never checks equality of objects at Objj level.
2012-07-23 14:56:29 +02:00
Ilya Kulakov
a3179080d3
Fix CPArray should throw an exception when observer is added/removed.
2012-07-23 19:48:05 +07:00
Ilya Kulakov
985759ce91
Fix CPSet's member never checks equality of objects at Objj level.
2012-07-23 19:34:40 +07:00
Martin Carlberg
a688a3de79
Added test case for selectedIndex binding with CPInsertsNullPlaceholderBindingOption
2012-07-23 12:14:53 +02:00
Martin Carlberg
2184c7ca4d
Fixed code format issues
2012-07-23 12:12:55 +02:00
Martin Carlberg
f6b378513d
Merge branch 'master' of https://github.com/cappuccino/cappuccino into binding_support_popup_button
...
Conflicts:
AppKit/CPKeyValueBinding.j
AppKit/CPPopUpButton.j
Tests/AppKit/CPPopUpButtonTest.j
2012-07-23 11:19:21 +02:00
cacaodev
02a89e2343
CPCib -instantiateCibWithOwner:(id)anOwner topLevelObjects:(CPArray)topLevelObjects : allow anOwner to be nil
2012-07-22 22:08:31 +02:00
cacaodev
e2d4ae4acc
viewBasedCib example: fix some labels not sized-to-fit in IB
2012-07-22 21:32:24 +02:00
cacaodev
95b7f78a5a
Sorry George.
2012-07-21 20:32:02 +02:00
cacaodev
e694f8f173
Preemptive fix (currently disabled) to force drawBackground to YES for edited text fields embedded in a data view. dependency on issue #210 .
2012-07-21 20:14:27 +02:00
Alexander Ljungberg
8d1a5ac6b9
Format code.
2012-07-21 13:24:13 +01:00
Alexander Ljungberg
030bd9388b
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-21 13:13:28 +01:00
Alexander Ljungberg
a78c1bf03a
Refs #1624 . Fix grouping separator support.
...
`perMillSymbol` was incorrectly used as the grouping separator.
2012-07-21 13:13:14 +01:00
cacaodev
be35ea2704
- Fix behavior when selecting a row in a view-based table (per cocoa). Editable text fields are edited only if the row is selected, otherwise the row is selected. Other controls can be edited directly, without selecting the row first.
...
- Fixed a bug where data views being FR or containing a FR subview were preserving their FR when reused.
2012-07-21 14:11:24 +02:00
Alexander Ljungberg
7e562fa3aa
Fixes #1624 . Fix grouping for CPNumberFormatter.
2012-07-21 13:08:54 +01:00
cacaodev
91f2252255
Remove old import in ViewBased, use CPTrace() to log perf.
2012-07-21 09:16:43 +02:00
ggsato
0582033fb7
a suggested fix for CPArrayController selection binding failure in retrieving initial selection values
2012-07-21 14:40:44 +09:00
aparajita
5caf76fb3a
Merge pull request #1536 from mrcarlberg/main_bundle_path_commonjs
...
Fixed mainBundle having no '/' at the end when running in CommonJS. This would make relative paths fail.
2012-07-20 17:18:16 -07:00
aparajita
30509823bb
Merge pull request #1620 from ggsato/removingFirstObjectImprovement
...
fixed a bug that removeObject shows empty selection if an object at index 0 was removed
2012-07-20 16:24:15 -07:00
Alexander Ljungberg
835bd59330
Fixed: popovers in modal windows couldn't be interacted with.
...
This prevented e.g. date picker popovers in sheet dialogs.
2012-07-19 16:34:15 +01:00
Alexander Ljungberg
60a33b9592
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2012-07-19 01:07:29 +01:00
Alexander Ljungberg
7429687932
Merge branch 'master' into slevenbits
2012-07-19 01:06:41 +01:00
Alexander Ljungberg
e73cb7d363
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-19 01:05:48 +01:00
Alexander Ljungberg
8aee458022
nib2cib support for button and radio button tags.
2012-07-19 01:05:09 +01:00
Aparajita Fishman
fe04cfbe1f
Merge branch 'refs/heads/upstream'
2012-07-18 14:48:56 -07:00
Aparajita Fishman
20eb62b3d2
Use the proper modern DOCTYPE
2012-07-18 14:48:23 -07:00
Alexander Ljungberg
d57f5427fb
Merge branch 'master' into slevenbits
2012-07-18 19:23:05 +01:00
Alexander Ljungberg
f4f9e8880c
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-18 19:21:43 +01:00
Alexander Ljungberg
b0a56f1690
Fixed: removing selected CPPopUpButton item.
...
When the selected item of a `CPPopUpButton` is removed the first item should become selected. This matches Cocoa's behaviour.
2012-07-18 19:21:20 +01:00
Aparajita Fishman
6537a44c02
Merge branch 'refs/heads/upstream'
2012-07-18 09:53:32 -07:00
Aparajita Fishman
8444f808f6
By default controls will track the system font size
...
Use current system font size elsewhere
2012-07-18 09:53:09 -07:00
Aparajita Fishman
f8cc2eb670
Merge branch 'refs/heads/upstream'
2012-07-17 15:12:50 -07:00
Aparajita Fishman
b959f13a0c
Merge branch 'master' of github.com:cappuccino/cappuccino into upstream
2012-07-17 15:11:13 -07:00
Aparajita Fishman
f0163e13c9
Added CGInsetMakeInvertedCopy
2012-07-17 15:10:58 -07:00
Alexander Ljungberg
c83b4bf3af
Merge branch 'master' into slevenbits
2012-07-17 23:02:17 +01:00
Alexander Ljungberg
a89ca14abe
Merge pull request #1622 from slevenbits/tableview-column-move-notify
...
Notify when a `CPTableView` column moves.
2012-07-17 22:59:53 +01:00
Alexander Ljungberg
9b77f1b7ac
Notify when a CPTableView column moves.
...
Both through `CPNotificationCenter` and to the delegate.
2012-07-17 22:57:36 +01:00
Alexander Ljungberg
5c5d2e47a9
Merge branch 'master' into slevenbits
2012-07-17 21:11:45 +01:00
Alexander Ljungberg
e68077d159
Merge pull request #1621 from slevenbits/cpdictionary-enumerate
...
`CPDictionary enumerateKeysAndObjectsUsingBlock:`.
2012-07-17 20:51:22 +01:00
Alexander Ljungberg
5724dfe21d
CPDictionary enumerateKeysAndObjectsUsingBlock:.
2012-07-17 20:48:52 +01:00
ggsato
364208e029
fixed a bug that removeObject shows empty selection if an object at index 0 was removed
2012-07-17 15:36:18 +09:00
Alexander Ljungberg
9e20f209bf
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2012-07-16 03:17:39 +01:00
Alexander Ljungberg
ce5c6d9b96
Merge branch 'master' into slevenbits
2012-07-16 03:17:12 +01:00
Alexander Ljungberg
fea0299033
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-16 03:16:31 +01:00
Alexander Ljungberg
c1dd821c6e
Merge pull request #1618 from slevenbits/fontmanager
...
New `CPFontManager` methods.
2012-07-16 03:16:21 +01:00
Alexander Ljungberg
6a67243460
CPFontManager convertFont:toFace:.
2012-07-16 03:11:21 +01:00
Alexander Ljungberg
7f1b396ce8
CPFontManager weightOfFont: and traitsOfFont:.
2012-07-15 23:39:29 +01:00
Alexander Ljungberg
1e5bccd48e
CPFontManager convertFont:, convertFont:toHaveTrait: and addFontTrait:.
2012-07-15 23:38:32 +01:00
Alexander Ljungberg
d016e8a5e8
CPFontManager setSelectedFont:isMultiple: and other basic properties.
2012-07-15 21:45:50 +01:00
cacaodev
d01a0e1b2d
Set default theme color to black for textfields in a selected row when they are bordered or editing.
2012-07-15 22:39:47 +02:00
cacaodev
2d8681dbd4
CPOutlineViewViewBasedCibTest & TableBindings: cleanup zombie outlets & image in xib.
...
CPOutlineViewViewBasedCibTest: button expand/collapse item and tracks item state.#
2012-07-15 22:36:07 +02:00
cacaodev
2bd5696d99
Add info message when converting NSTableCellView nib to plist
2012-07-15 22:33:46 +02:00
Alexander Ljungberg
fc49574947
Test CPFontManager.
2012-07-15 21:01:29 +01:00
aparajita
2c0cf72a60
Merge pull request #1617 from slevenbits/dictionary-key-methods
...
CPDictionary key methods
keysOfEntriesPassingTest:
keysOfEntriesWithOptions:passingTest:
keysSortedByValueUsingComparator:
2012-07-15 09:30:31 -07:00
Aparajita Fishman
c166a20b89
Merge branch 'dictionary-key-methods'
2012-07-15 09:28:15 -07:00
Aparajita Fishman
c4dc9c8bdb
CPDictionary key methods
...
keysOfEntriesPassingTest:
keysOfEntriesWithOptions:passingTest:
keysSortedByValueUsingComparator:
2012-07-15 09:27:04 -07:00
Aparajita Fishman
dec7ca1e19
Make NSClipView obey the Draw Background checkbox in IB
2012-07-14 10:32:21 -07:00
Alexander Ljungberg
1cbf927684
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
2012-07-14 14:13:05 +01:00
Alexander Ljungberg
9fdfc4025a
Merge branch 'refs/heads/master' into slevenbits
2012-07-14 14:12:53 +01:00
Alexander Ljungberg
ccb6b3b4a2
Code formatting.
2012-07-14 14:11:38 +01:00
Alexander Ljungberg
5658ea2c1e
Merge pull request #1616 from slevenbits/kvo-willchange-fix-2
...
Fix crash if an observer is set between willChange…/didChange…
2012-07-14 13:58:18 +01:00
Ilya Kulakov
3886f27acd
Fix crash if an observer is set between willChange…/didChange…
...
When you add an observer to an object first time, its class is
implicitly changed to a KVO_originalClassName (subclass of original
class). This subclass adds willChange…/didChange… methods for
observable properties.
If you send willChange… before you add an observer, it does nothing.
But if you send didChange… just after, the app will crash, because
new KVO_originalClassName nerver receives willChange…
The idea is to maintain counter of all received willChange… messages
(per key) and decrease it in didChange…
When KVO_originalClassName is created and didChange… is received
(without opening willChange… to new class), exception is not thrown
immediately, but the counter is checked first.
If it's greater than 0, then didChange… just closes
an unboserved willChange… Otherwise exception is thrown, as expected.
2012-07-14 19:32:25 +07:00
cacaodev
0b1d67116d
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-07-14 09:35:26 +02:00
Aparajita Fishman
4958b4c47b
Merge branch 'master' of github.com:slevenbits/cappuccino
2012-07-13 21:05:36 -07:00
aparajita
76738a0208
Merge pull request #1615 from slevenbits/text-size-theming
...
Text size and theming enhancements
- _CPImageAndTextView adds extra pixels to allow for fractional pixels in -sizeToFit.
- NSButton now allows buttons that are not fixed height, if the theme allows it.
- Documented the mapping between bezel style constants and their IB style names.
2012-07-13 21:04:41 -07:00
Aparajita Fishman
fedb24c2f3
Merge branch 'text-size-theming'
2012-07-13 21:02:46 -07:00
Aparajita Fishman
e61a2a296e
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-13 21:00:35 -07:00
Aparajita Fishman
32dc0826cb
Text size and theming enhancements
...
- _CPImageAndTextView adds extra pixels to allow for fractional pixels in -sizeToFit.
- NSButton now allows buttons that are not fixed height, if the theme allows it.
- Documented the mapping between bezel style constants and their IB style names.
2012-07-13 21:00:02 -07:00
Aparajita Fishman
590b7ec704
format strings was not set in the xib
2012-07-13 20:26:57 -07:00
Aparajita Fishman
98b735b185
Install imagesize binary in both debug/release so that it works when install-debug-symlinks is used
2012-07-13 20:07:25 -07:00
Aparajita Fishman
dd686a0fca
Fixed spelling error in test app
2012-07-13 18:23:08 -07:00
cacaodev
de04c72767
CPDictionary -initWithObjectsAndKeys: skip a nil key instead of breaking
2012-07-13 21:47:39 +02:00
aparajita
3fe2e4487e
Merge pull request #1571 from tancred/xcodecapp_fix_wrong_format_specifier
...
Corrected the format specifier for a logging statement in XcodeCapp.
2012-07-13 07:51:07 -07:00
cacaodev and Aparajita Fishman
2cf9fdf0d0
Check for sendsActionOnEndEditing
2012-07-13 07:45:08 -07:00
cacaodev and Aparajita Fishman
7c01f14bfe
Fix for #1593
2012-07-13 07:44:48 -07:00
cacaodev
da99b7b455
Remove temp merge files from previous commit. Added a view based table example to TableBindings
2012-07-13 16:41:57 +02:00
Alexander Ljungberg
0e87659093
Merge branch 'refs/heads/master' into slevenbits
2012-07-13 15:35:29 +01:00
Alexander Ljungberg
716c340825
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-13 15:11:46 +01:00
aparajita
625e47a725
Merge pull request #1591 from claimable/master
...
Fix for CPPredicateEditor Action Bug
Make sure the predicate value editor sends its action when resigning, so the predicate is updated.
2012-07-13 07:07:25 -07:00
Alexander Ljungberg
2ca3f657f9
Refs #1530 . Fix CPTableViewTest to work regardless of #1530 decision.
2012-07-13 13:24:43 +01:00
Alexander Ljungberg
b038b6baf6
Fixed: browser propagation control when not in browser.
...
This would lead to a `[CPPlatformWindow _willPropagateCurrentDOMEvent] unrecognized selector sent to instance` error if an event was sent in a non DOM environment.
2012-07-13 12:41:26 +01:00
cacaodev
f29f39d427
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Renamed Test apps.
Conflicts:
AppKit/CPTableView.j
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.xib
2012-07-13 13:38:49 +02:00
Alexander Ljungberg
eb990b6d4f
Merge branch 'refs/heads/master' into slevenbits
2012-07-13 11:38:49 +01:00
Alexander Ljungberg
9abb79d191
Merge pull request #1612 from slevenbits/cpgeometry-improvements
...
Cpgeometry improvements
2012-07-13 11:37:02 +01:00
Malte Tancred
c3740c548d
Corrected the corrected format specifier for the flags variable.
2012-07-13 08:11:24 +02:00
aparajita
629f12a851
Merge pull request #1543 from cacaodev/CPTableView-content-binding
...
Added support for using bindings with CPTableView content (as opposed to CPTableColumn value bindings)
2012-07-12 19:58:12 -07:00
aparajita
e4de525a09
Merge pull request #1552 from mrcarlberg/outlineview_disclosure_width
...
Width of disclosure button determined by current disclosure control
2012-07-12 19:38:52 -07:00
aparajita
1a4e5a345d
Merge pull request #1576 from ggsato/fixForOpeningExistingDocument
...
fixed needsUntitled evaluation
An untitled window will only open if ALL documents fail to load.
2012-07-12 19:29:07 -07:00
Alexander Ljungberg
a4ae36929b
Fix CPGeometry.j import.
...
CPGeometry.j is now in Foundation.
2012-07-13 01:29:01 +01:00
Alexander Ljungberg
b9b98a39bb
Avoid Foundation depending on AppKit.
...
CPGeometry.j and CGGeometry.j now share their implementation in two private API classes in the lower layer Foundation.
2012-07-13 01:28:38 +01:00
Alexander Ljungberg
ae4b7cb58e
Sort imports.
2012-07-13 01:26:14 +01:00
Aparajita Fishman
12ea224f21
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-12 17:21:40 -07:00
Aparajita Fishman
f7d67e4b87
Cleanup, documented hacks
2012-07-12 17:20:30 -07:00
Antoine Mercadal
20c7ed0034
fix CPTextField baseline alignement
2012-07-12 15:23:17 -07:00
Aparajita Fishman
98260630ac
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-12 15:17:06 -07:00
Antoine Mercadal
5c00ea627e
Add manual test case for label baseline alignment
2012-07-12 15:10:04 -07:00
Vladimir Shevchenko
ff074294ee
mistakes corrected
2012-07-13 03:47:34 +07:00
Vladimir Shevchenko
028965e708
mistakes corrected
2012-07-13 03:43:12 +07:00
Vladimir Shevchenko
28b48edf02
Completed aliases and tests
2012-07-13 01:52:06 +07:00
Aparajita Fishman
86b83338c0
CPRuleEditor fixes
...
- Fixed case where no format strings are specified in xib (which ends up being an empty string).
- Fixed case where malformed strings file would not match regex.
- General cleanup.
2012-07-12 10:16:49 -07:00
aparajita
25f51eb5cd
Merge pull request #1602 from mrcarlberg/sort_using_descriptors_with_key_path
...
Fixed sortUsingDescriptors: so it can handle sort descriptors with a key path
2012-07-12 08:19:46 -07:00
Aparajita Fishman
ba7fa38924
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-12 07:15:19 -07:00
aparajita
7586af8f91
Merge pull request #1606 from slevenbits/system-font
...
Overhaul of system font handling
- System fonts now track the currently configured system font at runtime.
- You can specify CPFontCurrentSystemSize as a system font size to track the currently configured system font size at runtime.
- Theme fonts and nib2cib now determine face and size at runtime, there is no need to recompile if the system font is changed in Info.plist.
- All hard-coded references to 12.0 as a system font size have been replaced by the current system font size.
- Documented the font substitution algorithm and how to use custom fonts in the CPFont class docs.
- See Tests/Manual/FontEnhancementTest for a demo.
2012-07-12 07:01:30 -07:00
Vladimir Shevchenko
d6b9daf7ca
Fixed documentation & spaces
2012-07-12 02:47:12 +07:00
Vladimir Shevchenko
2905cd1586
Linked methods from CPGeometry to CGGeometry + added unit tests
2012-07-12 00:19:10 +07:00
Aparajita Fishman
744bbd15d7
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-07-11 09:24:35 -07:00
aparajita
7a6009f2e3
Merge pull request #1610 from slevenbits/text-clip-fix
...
Text clip fix
Currently when controls and text fields size to fit text, they use a to determine the correct height/width. Some browsers do not account for fractional pixels that arise from antialiasing. Cappuccino views must clip their contents, so the fractional pixels get clipped, and depending on the font this can be quite noticeable.
This patch adds 1 pixel when necessary to ensure no clipping occurs.
2012-07-11 09:19:46 -07:00
Aparajita Fishman
61f683b2e3
Merge branch 'text-clip-fix'
2012-07-11 09:11:04 -07:00
Vladimir Shevchenko
a6d6fb1a1e
CPGeometry moved to Foundation
2012-07-11 16:29:30 +07:00
Aparajita Fishman
4af061516c
CPTableColumn -setHidden documentation was backwards.
2012-07-10 21:53:51 -07:00
Aparajita Fishman
49521b44fb
Merge branch 'system-font'
2012-07-10 18:54:42 -07:00
Aparajita Fishman
df9611cc2c
Cleanup
2012-07-10 18:53:41 -07:00
Aparajita Fishman
99cd246ed8
Fix clipping of text due to fractional pixels
2012-07-10 18:08:33 -07:00
Aparajita Fishman
872df9fe39
Fixed window positioning
2012-07-10 17:35:42 -07:00
Aparajita Fishman
f76404ef5e
Merge branch 'refs/heads/system-font'
2012-07-10 16:41:06 -07:00
Aparajita Fishman
ec4bfa00ee
Per Cocoa, 0 size means create a static font in the current system font size. Added tests.
2012-07-10 16:40:44 -07:00
Aparajita Fishman
68c001e0c0
Don't attempt show CPScrollView, CPScroller or tooltips in the showcase, it doesn't work
2012-07-10 15:36:33 -07:00
Aparajita Fishman
5e40d6702e
jake clobber should only clobber the theme, not Cappuccino
2012-07-10 12:47:55 -07:00
Aparajita Fishman
a3d4dc2f9a
Wrap _DOMElement access in #if PLATFORM(DOM), cleanup
2012-07-09 22:19:26 -07:00
aparajita
a8d1224097
Merge pull request #1607 from slevenbits/archive-formatter
...
CPControl archives/unarchives its formatter
This allows you to use a formatter with a table column's data view.
2012-07-09 21:32:24 -07:00
Aparajita Fishman
4df0b7c940
Merge branch 'archive-formatter'
2012-07-09 21:31:09 -07:00
Aparajita Fishman
73fea44aa2
CPControl now archives/unarchives its formatter
...
This allows you to use a formatter with a table column's data view.
2012-07-09 21:30:09 -07:00
Aparajita Fishman
6cd2c96152
Merge branch 'system-font'
2012-07-09 16:50:55 -07:00
Aparajita Fishman
309463f15d
Fixed parameter name
2012-07-09 16:50:31 -07:00
Aparajita Fishman
37a89a7b0a
Cleanup
2012-07-09 15:47:26 -07:00
Aparajita Fishman
106e21b79c
Merge branch 'system-font'
2012-07-09 15:33:34 -07:00
Aparajita Fishman
6b6f5d98e4
Overhaul of system font handling
...
- System fonts now track the currently configured system font at runtime.
- You can specify CPFontCurrentSystemSize as a system font size to track the currently configured system font size at runtime.
- Theme fonts and nib2cib now determine face and size at runtime, there is no need to recompile if the system font is changed in Info.plist.
- All hard-coded references to 12.0 as a system font size have been replaced by the current system font size.
2012-07-09 15:29:56 -07:00
Antoine Mercadal
2712a4d45c
removed debug console.log
2012-07-09 15:05:03 -07:00
Antoine Mercadal
d93fa98d1e
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-07-09 15:04:17 -07:00
Antoine Mercadal
63616cc50a
fix enter key not working to select items in CPComboBox. With the help of @aparajita
2012-07-09 15:03:59 -07:00
Alexander Ljungberg
970dc912cb
Merge branch 'master' into slevenbits
2012-07-09 20:32:07 +01:00
Alexander Ljungberg
eb643a2df8
Simplify code.
2012-07-09 20:31:29 +01:00
Alexander Ljungberg
81f958eee1
Merge pull request #1605 from slevenbits/colorwell-styling
...
`CPColorWell` and `CPColorPanel` updates.
2012-07-09 20:17:49 +01:00
Alexander Ljungberg
613f61a898
Unit test CPColorWell archiving.
2012-07-09 20:03:19 +01:00
Alexander Ljungberg
77a009c9a6
Highlighted and disabled looks for bordered CPColorWell.
2012-07-09 19:53:57 +01:00
Alexander Ljungberg
2d8a849d12
nib2cib size fix for bordered CPColorWell.
2012-07-09 19:19:38 +01:00
Alexander Ljungberg
b09908e6af
Themable CPColorWell with Aristo look when bordered.
2012-07-09 19:18:46 +01:00
Antoine Mercadal
ad74e93ea2
use CPPopUpMenuWindowLevel for _CPPopUpList's window level
2012-07-09 10:20:18 -07:00
Alexander Ljungberg
754311d2e2
More colour panel clean up.
2012-07-09 16:06:09 +01:00
Alexander Ljungberg
f6514f3c64
Fix CPColorPanel errors and code style.
2012-07-09 15:57:24 +01:00
Alexander Ljungberg
f398185aad
CGRectInsetByInset geometry function.
...
This operation appears again and again in Cappuccino.
2012-07-09 15:44:13 +01:00
Alexander Ljungberg
4390bea31f
Simplify CPColorWell drawing and mouse handling.
...
Use standard CPControl mouse handling and highlighting.
Switch to setNeedsLayout based drawing and hook up first themed property.
2012-07-09 13:01:44 +01:00
Alexander Ljungberg
660c98d6e5
Use theme system for CPColorWell bordered state.
...
This is more consistent with the rest of Cappuccino and prepares for theming support.
2012-07-09 12:20:47 +01:00
Alexander Ljungberg
1154a629a7
Code formatting.
2012-07-09 11:11:37 +01:00
Alexander Ljungberg
6f84440bcd
Merge branch 'master' into slevenbits
2012-07-08 21:29:08 +01:00
Alexander Ljungberg
09e235eb60
Refs #1603 . Optimise slightly.
2012-07-08 21:26:47 +01:00
Alexander Ljungberg
9dab0f083d
Merge pull request #1603 from slevenbits/indexset-passingtest
...
Add *passingTest methods to CPIndexSet
2012-07-08 21:26:05 +01:00
Ilya Kulakov
6dd44687c5
Implement *passingTest methods of CPIndexSet.
2012-07-09 02:40:47 +07:00
Alexander Ljungberg
4f69d82a4e
Merge branch 'master' into slevenbits
2012-07-08 14:13:37 +01:00
Alexander Ljungberg
1a639afd99
Typos.
2012-07-08 14:13:21 +01:00
cacaodev
1ee85181e8
Update tracing of views loading for the TableCibTest.
2012-07-07 16:12:03 +02:00
cacaodev
c7ef136a7b
Replaced CPTableView+Debug by the improved version called CPTrace. Cib test: visual output for view loading perormance (avg/row since tracing start).
2012-07-07 15:43:33 +02:00
cacaodev
5017189440
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
AppKit/Themes/Aristo/ThemeDescriptors.j
2012-07-07 11:10:05 +02:00
Antoine Mercadal
72cc494df4
fix bug showing the CPComboBox's list under popover
2012-07-06 16:02:40 -07:00
cacaodev
f516078510
PR #1573
...
Support value transformers for CPContent and CPContentValues bindings.
Made _CPPopUpContentValuesBinder a subclass of CPPopUpContentBinder and reuse setContent:.
Fixed a bug in selectedIndex binding set and reverse set when insertsNull options is on.
_CPPopUPSelectionBinder : simplified the code for getting the unique selection binder in use.
ojunit and manual tests for contentvalues + value transformer.
2012-07-06 22:35:37 +02:00
cacaodev
6a1e5840b5
Merge remote-tracking branch 'mrcarlberg/binding_support_popup_button' into binding_support_popup_button
...
Conflicts:
AppKit/CPPopUpButton.j
2012-07-06 22:30:12 +02:00
aparajita
98fbf3abc1
Merge pull request #1601 from slevenbits/CPComboBox
...
CPComboBox and CPTextField enhancements
- Full Cocoa-compliant implementation of CPComboBox and CPComboBoxDelegate.
- Better focus ring for CPTextField and all subclasses.
- CPTextField and its subclasses draw disabled contents differently, per Cocoa.
2012-07-06 13:24:01 -07:00
Martin Carlberg
e265d09034
Fixed sortUsingDescriptors: so it can handle sort descriptors
...
with a key path instead of just a key.
Also added a test case for this.
2012-07-06 20:52:33 +02:00
Martin Carlberg
dbb88b8a17
Included content and contentValue bindings improvments from cacaodev
...
Fixed a small typo error
2012-07-06 20:06:19 +02:00
Aparajita Fishman
b85e44098b
Merge branch 'CPComboBox'
2012-07-06 08:51:19 -07:00
Alexander Ljungberg
34e7d4abe5
Merge pull request #1600 from slevenbits/window-controller-container-view
...
Window controller container view
2012-07-06 16:36:26 +01:00
Ilya Kulakov and Alexander Ljungberg
f434717372
Fix style.
2012-07-06 16:03:29 +01:00
Ilya Kulakov and Alexander Ljungberg
88f8581dcc
Implement -[CPWindowController setViewControllerContainerView:], fix -[CPWindowController setViewControllerView:]
...
Container view is responsible for laying out its views.
Container view is a content view of the window.
If there is no container view, view controller's view is a content view of the window.
2012-07-06 16:03:29 +01:00
Alexander Ljungberg
552ba68187
Refs #1599 . Fix teacher.car.year unit test message.
2012-07-06 15:53:19 +01:00
Alexander Ljungberg
cff29904d7
Refs #1599 . Format code.
2012-07-06 15:53:03 +01:00
Alexander Ljungberg
b1774cdccf
Merge pull request #1599 from slevenbits/kvo-fix
...
Wrong key path and change send to the observer
2012-07-06 15:38:50 +01:00
Aparajita Fishman
32737e0b72
CPComboBox and CPTextField enhancements
...
- Full Cocoa-compliant implementation of CPComboBox and CPComboBoxDelegate.
- Better focus ring for CPTextField and all subclasses.
- CPTextField and its subclasses draw disabled contents differently, per Cocoa.
2012-07-06 00:15:23 -07:00
aparajita
b54ce4d782
Merge pull request #1597 from slevenbits/cptableview-grid
...
Make the default grid color in IB show correctly in CPTableView.
- Changed the default grid color from #dce0e2 to #ccc.
- Fixed NSColor to recognize the named color "gridColor" and set it to #ccc.
- NSTableView always saves the grid color from IB.
2012-07-05 16:16:30 -07:00
Aparajita Fishman
b6adf26549
Make Alexander happy. ;-)
2012-07-05 12:26:55 -07:00
Aparajita Fishman
d0bfde1887
Annotate indexOfObject methods, use "index" instead of "idx"
2012-07-05 11:34:01 -07:00
Ilya Kulakov
4094a1f826
Fix wrong change is sent to observer when top level object is changed.
...
When you change the top level object, observer MUST receive value
for the key path of the previous top level object as old and
value for the key path of the new top level object as new.
2012-07-05 17:59:29 +07:00
Alexander Ljungberg
8afb67521d
Annotate indexesOfObjectsPassingTest: function signature.
2012-07-04 23:26:07 +01:00
Alexander Ljungberg
34be9cea3a
Refs #1559 . Fix split view autosave test.
2012-07-04 23:17:38 +01:00
Aparajita Fishman
618194996a
Fixed CPString -hasSuffix docs
2012-07-04 17:29:28 -04:00
cacaodev
42f49795af
Ignore Value Transformers, no error and log an info message.
2012-07-04 23:18:47 +02:00
aparajita
e444a5d60a
Merge pull request #1598 from slevenbits/array-filters-fix
...
Fixed the method names committed in 0f5a6b4e5e
2012-07-04 14:16:14 -07:00
Aparajita Fishman
593f3c2109
Fixed the method names
2012-07-04 17:03:53 -04:00
Aparajita Fishman
e9fb821721
Make the default grid color in IB show correctly in CPTableView
...
Currently #888888 is being used as the default, mainly because NSColor.j doesn't recognize the "gridColor" named color, and the cached color in the .xib is #888888 for some reason. Actually the default grid color is #CCCCCC.
2012-07-04 16:39:47 -04:00
aparajita
a4afe1bde9
Merge pull request #1596 from slevenbits/cptableview-typos
...
Added missing @
2012-07-04 13:29:45 -07:00
Aparajita Fishman
1d29fda5fd
Added missing @
2012-07-04 16:25:59 -04:00
aparajita
16b7093e19
Merge pull request #1595 from slevenbits/array-filters
...
Added CPArray -indexesOfObjectPassingTest methods
2012-07-04 12:46:51 -07:00
Aparajita Fishman
0f5a6b4e5e
Added CPArray -indexesOfObjectPassingTest methods
2012-07-04 15:41:45 -04:00
cacaodev
c7a8124be8
CPPopUpButtonTest test CPContentValuesBinding with value transformer. Currently failing.
2012-07-04 17:55:39 +02:00
Alexander Ljungberg
c3c74a13c0
Merge pull request #1592 from slevenbits/splitview-autosave-improvement
...
Improve split view autosave.
2012-07-03 23:58:08 +01:00
Alexander Ljungberg
cde50cc8b4
Refs #1558 . Better ivar name and type.
2012-07-03 13:57:11 +01:00
Alexander Ljungberg
fcc11b8969
Fixes #1559 . Nested split view autosave and better override support.
...
Nested split views now correctly restore their divider positions by restoring "top down". E.g. a nesting split view is restored before the nested split view so that the nested split view has the correct frame size for the position it is restoring.
This commit also makes it easier to override autosave restores in a subclass or a controller's `viewDidLoad`. Now if `setPosition:ofDividerAtIndex:` is called after the split view's `initWithCoder:` has finished, but before the final autosave restore has occurred, the autosave restore is cancelled. This preserves whatever the modification the programmer intended to make instead of overwriting it with the autosaved position.
This commit also fixes a bug where an autosaved position would not be restored, or would be restored at an unexpected time, if `setFrameSize:` was not sent to the split view shortly after its `initWithCoder:`. (Such a `setFrameSize:` message is often sent due to a window `setFullPlatformWindow:` call in `AppController.j`'s `awakeFromCib`, but it's not necessarily sent.)
2012-07-03 13:53:52 +01:00
Alexander Ljungberg
c9b7d1e842
Refs #1559 . Autosave split view positions for frame size changes.
...
This covers the case where the whole split view is resized and the divider moves as a consequence. For example if the split view was made much smaller the fixed position of the divider previously autosaved might not even be inside of the split view frame anymore, and on restore from autosave that side of the split view might unexpectedly become collapsed.
The new behaviour also more closely matches Cocoa's, although there is still a slight difference in implementation.
2012-07-03 13:44:59 +01:00
Martin Carlberg
e5f4a7c39a
Added support for CPNullPlaceholderBindingOption and made some clean up of code
2012-07-03 12:36:19 +02:00
Alexander Ljungberg
814e72879e
Manual test for split view autosave.
2012-07-03 11:09:39 +01:00
Alexander Ljungberg
5f9463a030
Refs #1558 . Test all split view divider types.
2012-07-03 10:54:27 +01:00
Alexander Ljungberg
37d4a06aa4
Fixes #1558 . Support "thick divider" split view style in nib2cib.
...
The thick divider style is converted to the pane splitter style in nib2cib since we only use two styles in Cappuccino.
2012-07-03 10:44:07 +01:00
aparajita
fb590550cd
Merge pull request #1589 from slevenbits/nib2cib-fixes
...
nib2cib fixes
2012-07-02 06:57:09 -07:00
Aparajita Fishman
2f27291c53
Tweaked debug output of custom image resources in nib2cib
2012-07-02 09:55:52 -04:00
Aparajita Fishman
fc23863d85
Added support for alternate button title in nib2cib
2012-07-02 09:55:52 -04:00
aparajita
8651a59f43
Merge pull request #1587 from slevenbits/non-bordered-buttons
...
Non-bordered buttons should retain their size, not shrink to fit
2012-07-02 06:41:49 -07:00
Aparajita Fishman
2f1e9d76ec
Non-bordered buttons should retain their size, not shrink to fit.
2012-07-02 09:40:00 -04:00
Mike Holman
2e1a72030e
Fix CPPredicateEditor CPTextField action bug.
2012-07-02 16:17:35 +08:00
aparajita
c9f32ac77b
Merge pull request #1584 from slevenbits/splitview-autosave
...
CPSplitView autosave optimization
2012-06-30 13:34:50 -07:00
Aparajita Fishman
6efa30c52a
autosave of position should not happen until divider tracking is completely done.
...
Also renamed a local variable that looked like an ivar.
2012-06-30 16:19:06 -04:00
Martin Carlberg
ef30e21506
Missed to remove some line in manual merge
2012-06-30 09:20:50 +02:00
Martin Carlberg
70b5f9ee98
Merge branch 'popup_button_binder_subclass' of https://github.com/cacaodev/cappuccino into binding_support_popup_button
...
Conflicts:
AppKit/CPPopUpButton.j
2012-06-30 08:41:14 +02:00
aparajita
3137839322
Merge pull request #1583 from slevenbits/splitview-userinfo
...
Splitview userinfo
2012-06-29 13:11:23 -07:00
Aparajita Fishman
345a865cc8
Post OS X 10.5, Cocoa adds a userInfo with the divider index when the user drags the divider
2012-06-29 13:09:47 -07:00
aparajita
2a4ef4394c
Merge pull request #1582 from slevenbits/nib2cib-images
...
nib2cib image fixes
2012-06-29 11:33:13 -07:00
Aparajita Fishman
3ba5be1ec6
nib2cib image fixes
...
- nib2cib will now log the path and size of custom image resources in super verbose mode.
- Alternate images for buttons were not being set by nib2cib, that has been fixed.
- Fixed the name of the imagesize binary in the Xcode project.
2012-06-29 11:29:53 -07:00
Aparajita Fishman
606f3dfe6b
Replaced Java-based image utility with Cocoa command line app, cleaned up some fontinfo stuff
2012-06-29 11:29:46 -07:00
cacaodev
c865644e6c
Test for CPPopUpButton bindings.
2012-06-29 19:42:20 +02:00
Martin Carlberg and cacaodev
fec1586380
CPPopUpButton bindings support (set for all and reverse for selection related bindings) using a CPBinder subclass instead of dedicated selectors.
2012-06-29 19:40:23 +02:00
cacaodev
8e2afde3e4
CPKeyValueBinding -reverseSetValueFor: -> extract a method for getting the source value for a given binding. the goal is to facilitate subclassing.
2012-06-29 19:37:35 +02:00
Aparajita Fishman
5410884e03
Fixed the documentation for CPArray -indexOfObject methods
2012-06-29 09:02:35 -07:00
Aparajita Fishman
e9ceb1d0c6
Documentation tweak
2012-06-28 15:25:39 -07:00
Alexander Ljungberg
8d14bdd819
CPToolbar autovalidate.
2012-06-28 22:41:41 +01:00
Alexander Ljungberg
23f3a01e3c
Merge pull request #1579 from slevenbits/cptoolbar-delegate
...
CPToolbar delegate fix
2012-06-28 20:27:23 +01:00
aparajita
3540dd1c26
Merge pull request #1578 from slevenbits/initialize-fix
...
Implement missing +initialize checks and regularize checks
2012-06-28 12:09:42 -07:00
Aparajita Fishman
cae5486ec6
Added missing class checks in +initialize, regularized checking code
2012-06-28 12:05:18 -07:00
Alexander Ljungberg
a769618e3e
Don't copy an array we'll copy again 2 lines later.
...
If the delegate returns nil we're just copying nil, and if it does return an array we only use it for a single read-only `arrayByAddingObjectsFromArray:`.
2012-06-28 19:15:20 +01:00
Alexander Ljungberg
80d537958e
Fixed: CPToolbar delegate toolbarDefaultItemIdentifiers: is optional.
...
This fix makes it possible for a toolbar defined in a cib to have a delegate set without defining `toolbarDefaultItemIdentifiers:` like in Cocoa. You might be implementing other delegate methods.
2012-06-28 19:12:05 +01:00
aparajita
d923fb56e2
Merge pull request #1577 from slevenbits/key-loop-fix
...
Key loop fix
2012-06-28 10:06:30 -07:00
Aparajita Fishman
7747bbffcf
Fixed key loop calculation, might as well use _initialFirstResponder instance variable instead of accessor
2012-06-28 10:01:07 -07:00
ggsato
db47d8fb85
fixed needsUntitled evaluation
2012-06-28 12:01:37 +09:00
Alexander Ljungberg
c52315cd8d
Refs #1572 . Merge extra commit re highlights.
2012-06-25 21:58:02 +01:00
Alexander Ljungberg
a2787f8783
Formatting.
2012-06-25 21:57:28 +01:00
Ilya Kulakov
913308d886
Refs #1572 . Fix highlighted status is not preserved.
...
When higlightsBy == CPNoCellMask and showsStateBy == CPChangeBackgroundCellMask
higlighted status must be preserved when a user switch state from Off to On.
2012-06-26 03:54:59 +07:00
Alexander Ljungberg
21bb383193
Refs #1527 . Fix button performClick: highlight.
...
Critically this is what enables button highlighting on key equivalents.
2012-06-25 18:13:16 +01:00
Alexander Ljungberg
bd83885eca
Refs #1527 . Backwards compatibility.
...
If no highlight or state masks were encoded (button was encoded prior to them being added), make sure to let the default settings stand.
2012-06-25 17:42:31 +01:00
Alexander Ljungberg
d34d139658
Refs #1572 . Default CPButton type.
...
If a button is created in code it should act like a regular momentary push in button by default.
2012-06-25 17:21:56 +01:00
Alexander Ljungberg
f5c201c0be
Refs #1572 . Fixed: CPPushInCellMask in showsStateBy.
...
Code didn't match comment.
2012-06-25 17:18:07 +01:00
Alexander Ljungberg
10fcc0c452
Refs #1572 . Minor fixes.
2012-06-25 16:26:44 +01:00
Alexander Ljungberg
378822b777
Merge pull request #1572 from slevenbits/cpbutton-masks
...
CPButton and subclasses respect highlightsBy and showsStateBy masks now.
Conflicts:
AppKit/CPButton.j
Tests/Manual/CPButtonTest/AppController.j
Tests/Manual/CPButtonTest/Info.plist
Tests/Manual/CPButtonTest/Resources/MainMenu.cib
Tests/Manual/CPButtonTest/Resources/MainMenu.xib
2012-06-25 16:05:03 +01:00
Alexander Ljungberg
edebb81ed4
Merge pull request #1570 from aradabaugh/cpbutton-types
...
Enable additional button types for CPButton
2012-06-25 15:40:23 +01:00
Ilya Kulakov
7cf3ac3b40
CPButton and subclasses respect highlightsBy and showsStateBy now.
2012-06-25 18:57:10 +07:00
Ilya Kulakov
c46c365823
Extenend CPButtonTest to test highlightsBy and showsStateBy.
2012-06-25 18:57:06 +07:00
Ilya Kulakov
66f5e1fb64
Take into account highlightsBy and showsStateBy when decoding cib.
...
nib2cib was modified to take into account these variables
during conversion nib->cib.
2012-06-25 18:57:01 +07:00
Ilya Kulakov
c80417c433
Add highlightsBy method that returns current higlightsBy mask.
2012-06-25 18:56:56 +07:00
Martin Carlberg
32e3df1e80
Added key value binding support for CPPopupButton
2012-06-25 08:23:14 +02:00
Malte Tancred
3f65153d4f
Corrected the format specifier for the flags variable.
2012-06-23 22:46:25 +02:00
Adam Radabaugh
5fbf0f83cb
Make the check for CPOnOffButton tracking correctly use the highlights mask.
2012-06-23 14:26:46 -06:00
Adam Radabaugh
84c8427bb4
Merge branch master
2012-06-23 14:21:45 -06:00
cacaodev
539a8f0ca9
An OJTest for the table view's content binding
2012-06-22 21:59:41 +02:00
cacaodev
6281f188f8
Merge branch 'cptextfield-cpthemestateeditable' into CPTableViewLion
2012-06-22 18:27:25 +02:00
cacaodev
a444a7de19
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-06-22 18:27:18 +02:00
cacaodev
4369f4b5bb
Set CPThemeStateEditable in setEditable: Add to Aristo theme desc. for table view data views
2012-06-22 18:12:35 +02:00
cacaodev
3689a7f17f
CPTableView: support -editColumn:row:... for view-based tables even if this is not the prefered way to edit a view. If called, just makes the view first responder.
2012-06-22 17:55:44 +02:00
Alexander Ljungberg
d39849b297
Improve token field keyboard navigation when tokens are selected.
...
If one or more token is selected and the left arrow key is pressed, collapse the selection to the left of the first selected token.
Similarly, on right arrow key collapse to the right of the last token.
Note that shift-left and shift-right have no effect if the first or last token respectively in the field are already selected.
2012-06-21 19:24:22 +01:00
Alexander Ljungberg
7764921c21
Select all support for CPTokenField.
...
Cmd-A (Mac) or Ctrl-A (other) finishes any ongoing editing and selects all tokens in a token field.
This commit also adds support for the `selectText:` and `selectAll:` methods.
2012-06-21 19:17:34 +01:00
Alexander Ljungberg
26ceb25e7b
Merge pull request #1569 from slevenbits/rwelephant-token-field
...
Token field improved autocomplete, key bindings support, clean up
2012-06-21 10:32:33 -07:00
Aparajita Fishman
13423e43d5
Removed stray console.log
2012-06-20 11:05:22 -07:00
Aparajita Fishman
45da163230
text tweak
2012-06-18 09:31:34 -07:00
aparajita
281e3c925c
Merge pull request #1566 from slevenbits/CPArrayController-tweaks
...
CPArrayController tweaks
2012-06-18 09:03:22 -07:00
Aparajita Fishman
6f50900b1b
Added missing removeObjectAtArrangedObjectIndex, added missing return
2012-06-18 09:00:59 -07:00
cacaodev
6b051d77ab
Comment
2012-06-17 12:14:36 +02:00
cacaodev
10ae5bfbc0
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-06-17 12:10:37 +02:00
Alexander Ljungberg
2200e40001
Fixed: browser shortcuts wouldn't work when a token field was active.
...
We now leave the default propagation policy of Cappuccino in place, which normally is NO for regular characters but YES for things which could be shortcuts.
2012-06-16 12:31:50 +01:00
Alexander Ljungberg
44b609f604
Don't make space for editing in token field if tokens are selected.
...
If the editor is placed while there is a token selection it can cause the token view to become scrollable to a white area at the bottom even that there is no editing cursor. And even if the editor is not at the bottom, the empty space made for the editor makes no sense when no editing cursor is visible.
2012-06-16 12:31:50 +01:00
Alexander Ljungberg
d5918157ff
Overwrite selected tokens by typing support.
...
If tokens are selected in `CPTokenField` and new text is entered, the selected tokens are overwritten by the newly entered text.
2012-06-16 12:31:50 +01:00
Alexander Ljungberg
19b53746cf
Fix nil representedObjectForEditingString: response handling.
...
If `tokenField: representedObjectForEditingString:` returns nil, act the same as if the delegate method didn't exist. This matches Cocoa.
2012-06-16 12:31:50 +01:00
Alexander Ljungberg
d0769ec360
Oops. Fix object value fix.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
3c20bf8ad6
Allow token field insertText: to be somewhat overridden.
...
If `insertText:` is overridden to do nothing, nothing in inserted.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
3eab2a528f
Make token field object value more like Cocoa.
...
If a half typed token is in the field, Cocoa tries to convert it to a representedObject before responding to objectValue. Now CPTokenField does the same.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
fb404a0671
Hide private token field API. Fix return type.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
6d6cf52180
Minor token field optimisation.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
e9ba326610
Inlineable range functions.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
55ca956f50
Remove nonstandard CPCopyRange.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
f43c643d5a
Allow token field subclasses to override defaultCompletionDelay.
...
Also fixed incorrect return type.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
69f5fc536c
Key bindings support for token field.
...
Also improve compatibility with `CPTextField` superclass and subclassing support by properly using `interpretKeyEvents:` like `CPTextField`.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
132ac7c03f
Token field 'keyUp:' support.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
5683af9bc8
Improve token field subclassing support.
...
Token field now triggers autocompletion from textDidChange: which better meets the expectations of Cappuccino programmers, and is closer to how Cocoa does it.
Eliminated custom non-Cappuccino key press handler.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
429933f601
Fix token field keyDown: handling.
...
`CPTokenField` had custom key down handling making it function poorly with Cappuccino's event handling and subclasses.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
317364681a
Fixed: make sure autocomplete menu fits within browser.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
9575fd7771
Autosize token field autocomplete menu.
...
The new menu is much more efficient for the user:
* Less tall items makes it much easier to select among many completions.
* Exactly wide enough for widest item.
* Tall enough to show all items (instead of just 3 as before).
* Uses a maximum width and height defined by the screen edges and some Cocoa-like constants.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
85cfb18906
Place token autocomplete underneath what's being completed.
...
This matches Cocoa.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
33fe1573ad
Ensure autocomplete menu is on top.
...
The menu should appear above other normal windows and controls like a regular CPMenu. To do this, put the pop up in its own window with the `CPPopUpMenuWindowLevel` window level.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
2574fac44a
Remove token field reference.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
b166995327
Move autocomplete into reusable class.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
feaf9c6f20
Improve CPTokenField autocomplete scrolling.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
0ef03d31b8
Refactor CPTokenField autocomplete.
...
The new code is simpler (single responsibility principle) and makes it easier to improve on autocomplete.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
80ee88d3a7
Hide another non-public API in CPTokenField.
2012-06-16 12:31:48 +01:00
Alexander Ljungberg
bbc45dd947
Support tokenField:representedObjectForEditingString: delegate method.
...
This improves support for represented objects and is used both when an autocompletion suggestion is used or when the name of a token is typed in by hand.
The behaviour of taking an array of strings from `completionsForSubstring` and then asking for a represented object once a choice has been accepted matches the behaviour of Cocoa.
2012-06-16 12:31:47 +01:00
Alexander Ljungberg
d07ee3ea23
Hide non-public API in CPTokenField.
...
Also improve documentation.
2012-06-16 12:31:47 +01:00
Alexander Ljungberg
7ffd65476b
Fixed: token field auto completions.
...
Auto completions are strings, not represented objects. Revert "Fix CPTokenField autocompletion to deal with represented objects"
This reverts commit 8b9a0edeba .
2012-06-16 12:31:47 +01:00
Alexander Ljungberg
ca0a07cab8
Formatting.
2012-06-16 12:31:47 +01:00
Antoine Mercadal
0d29f15b70
Merge pull request #1513 from BlairDuncan/MenuTimestampFix
...
Fix for menu selection that was broken with the change to CPEvent timestamp
2012-06-14 17:02:06 -07:00
Antoine Mercadal
714d36d8c8
Merge branch 'CPImageView-bindings' of https://github.com/cacaodev/cappuccino into pull1534
2012-06-14 13:05:04 -07:00
Antoine Mercadal
cd94819099
Merge branch 'issue1435' of https://github.com/stewa/cappuccino into issue1435
2012-06-14 11:58:49 -07:00
Antoine Mercadal
52199776d5
Merge pull request #1537 from mrcarlberg/cptableview_selection_radius
...
Added a themed attribute for round rect selection of rows. [+1]
2012-06-14 10:29:58 -07:00
Antoine Mercadal
f8df87edcf
Merge pull request #1561 from tancred/xcodeapp_always_creates_support_sources
...
Create support sources folder if necessary.
Reviewed.
2012-06-14 10:27:43 -07:00
Antoine Mercadal
dc68daa859
Merge pull request #1564 from tancred/xcodecapp_sync_last_event_id_more_frequently
...
Make XcodeCapp synchronize file system event status more frequently.
Reviewed.
2012-06-14 10:24:40 -07:00
Malte Tancred
1fd021770e
Split -synchronizeLastEventId in two methods.
...
The first method (updateUserDefaultsWithLastEventId) just
sets the default while the other (synchronizeUserDefaultsWithDisk)
forces a synchronization with the disk.
2012-06-14 11:43:52 +02:00
Antoine Mercadal
6f32e598e9
Add manual tests for disabled button with image
2012-06-13 15:22:53 -07:00
Antoine Mercadal
19794b06ab
nib2cib sets _imageDimsWhenDisabled to YES for buttons
2012-06-13 15:22:26 -07:00
Antoine Mercadal
ecdb064a5b
Makes CPButton to dim image when disabled by default
2012-06-13 15:21:45 -07:00
Antoine Mercadal
d67a03bfb4
make disabled buttonbar buttons more visible
2012-06-13 14:30:26 -07:00
Antoine Mercadal
c361d7a52a
Merge branch 'new-cpbuttonbar-artwork'
2012-06-13 10:12:05 -07:00
Malte Tancred
0018be6fd8
Make XcodeCapp synchronize file system event status more frequently.
...
This is a small fix that makes XcodeCapp update the latestEventId value
in the defaults database at the end of each FSEvents callback.
Prior to this fix, the synchronization was performed only when the user
actively decided to stop listening to a project.
2012-06-13 10:37:08 +02:00
Antoine Mercadal
4a4aa5fc10
update artwork for CPButtonBar
2012-06-12 19:03:32 -07:00
Alexander Ljungberg
8791195673
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-06-13 02:21:07 +01:00
Alexander Ljungberg
72374257ef
Minor optimisation and clean up.
2012-06-13 02:20:58 +01:00
Alexander Ljungberg
1b9def2101
Allow asymmetric toolbar margins. Foundation for theming.
...
Toolbars cannot be themed yet but when theming becomes possible this code should adapt readily.
2012-06-13 02:17:13 +01:00
Alexander Ljungberg
7a467e249e
Manual test for toolbars.
2012-06-13 01:40:59 +01:00
Alexander Ljungberg
a66942b1b1
Fix and tweak toolbar margins.
2012-06-13 01:40:20 +01:00
Alexander Ljungberg
acd3425c43
Dynamic CPToolbar height,
...
* Support for tall custom widgets. You can now finally have that CPTableView you always wanted in your toolbar.
* "Labels only" mode now makes sense, resulting in a narrow text only toolbar instead of a very tall toolbar with centred labels.
* Use any size toolbar icons such as 48x48 and the toolbar adapts automatically (unlike Cocoa).
2012-06-13 01:26:33 +01:00
Alexander Ljungberg
70bc45ba12
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:26:43 +01:00
Alexander Ljungberg
026c210e64
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:05:16 +01:00
Alexander Ljungberg
3bc1849041
Improve toolbar item layout.
...
The height of all items is determined by the tallest item, like in Cocoa. But unlike Cocoa our toolbar is presently fixed height so in order to make this look well for small or large items, the whole row of items is now vertically centred, making the allocation of margin above and below automatic.
Furthermore if a toolbar item has a small view or a small icon, it is now centred within the available space above the label. For example, for a tiny icon in one item next to a normal size icon the tiny icon would be centre aligned with the larger icon.
2012-06-12 23:04:33 +01:00
Antoine Mercadal
17668aca17
Merge remote-tracking branch 'upstream/master'
2012-06-12 11:59:26 -07:00
Antoine Mercadal
2a48b0ca54
make actualResizeEvent a private method
2012-06-12 11:57:19 -07:00
Antoine Mercadal
5acc15ea9e
Merge https://github.com/jivadevoe/cappuccino into pr-1545
2012-06-12 11:45:34 -07:00
Malte Tancred
52fff2056b
Fixed code standard issues.
2012-06-12 17:44:17 +02:00
Alexander Ljungberg
2a955884b8
Fix header.
2012-06-11 13:14:00 +01:00
Alexander Ljungberg
ad5403b538
Setting the shadow style just once will do.
2012-06-11 13:13:36 +01:00
cacaodev
4daef7fc07
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-06-10 08:57:30 +02:00
Alexander Ljungberg
f538cbc51d
Re #1560 . Remove obsolete function.
2012-06-10 01:18:56 +01:00
Alexander Ljungberg
e232b18b94
Merge pull request #1560 from mrcarlberg/cappuccino
...
---
I needed to sort a lot of objects and was not impressed by the speed.
Sharing my improvements...
2012-06-10 01:00:40 +01:00
Alexander Ljungberg
fcf62080d6
Re #1562 . Make native comparison more realistic.
...
This might have a small speed implication.
2012-06-10 00:59:08 +01:00
Alexander Ljungberg
58103ce0f3
Re #1562 . Also performance test selector sort.
...
It looks like issue #1560 will cause a different sorting function to be used for selectors vs descriptors so performance of both should be monitored for regressions.
2012-06-10 00:58:27 +01:00
Alexander Ljungberg
0827f584be
Re #1562 . Simplify.
2012-06-10 00:39:37 +01:00
Alexander Ljungberg
f042996e7f
Re #1562 . Only load sort text for tests which use it.
2012-06-09 23:16:52 +01:00
Alexander Ljungberg
7b307a6fb4
Re #1562 . Format code.
2012-06-09 23:08:27 +01:00
Alexander Ljungberg
bb8a7bacdc
Merge pull request #1562 from cacaodev/cappuccino
...
---
for random numeric array and text array.
2012-06-09 16:49:23 +01:00
Martin Carlberg
0696b22971
Fixed formatting
2012-06-08 20:18:22 +02:00
Martin Carlberg
d7ff93f7f2
SortUsingDescriptors: Using the selector in the descriptor instead of always using compare:
2012-06-08 19:48:39 +02:00
cacaodev
0483f9d714
CPArrayPerformanceTest: fixed native sort testing, added tests for random numeric array and text array
2012-06-08 18:19:37 +02:00
Malte Tancred
56c0f7f6f1
Create support sources folder if necessary.
...
Make sure the the xCodeSupport/Sources folder is always
present. The objj tool will fail if it's missing.
The Sources folder could be missing if it's not checked
into a repos for example.
2012-06-08 13:21:47 +02:00
Martin Carlberg
dc30092b60
A very fast sortUsingDescriptors:
...
I needed to sort a lot of objects and was not impressed by the speed.
Sharing my improvements...
2012-06-07 23:25:58 +02:00
cacaodev
25a4a00b16
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-06-07 15:08:51 +02:00
aparajita
7ccd6f842b
Merge pull request #1557 from cacaodev/CPTableView-selectedColumn-typo
...
CPTableView -selectedColumn : missing return statement
2012-06-06 08:08:23 -07:00
cacaodev
299a664b9c
CPTableView -selectedColumn : missing return statement
2012-06-06 14:24:28 +02:00
Alexander Ljungberg
0ed398310f
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-06-02 13:19:13 -07:00
Alexander Ljungberg
55709cb83a
Test CPDate testInitWithString with a date prior to 1970.
...
This verifies that there are no problems with negative time intervals.
2012-06-02 13:18:58 -07:00
Alexander Ljungberg
d0c7796e7c
Match CPDate distantPast and distantFuture with Cocoa.
2012-06-02 13:17:34 -07:00
aparajita
544dff205d
Merge pull request #1556 from cacaodev/CPDate-referenceDate
...
CPDateReferenceDate should be 'Jan 1 2001' instead of 'Feb 1 2001'
2012-06-02 12:41:46 -07:00
Alexander Ljungberg
25763962b2
Code formatting.
2012-06-02 11:53:04 -07:00
Alexander Ljungberg
fc858933be
Re #1556 . Make CPDate testSince1970 agree with new reference date.
2012-06-02 11:32:19 -07:00
Alexander Ljungberg
6877aaaf61
Re #1556 . Unit test CPDate dateWithTimeIntervalSinceReferenceDate:.
2012-06-02 11:27:19 -07:00
Alexander Ljungberg
e4ab1256da
Merge pull request #1556 from cacaodev/cappuccino
...
---
See <https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html#//apple_ref/occ/clm/NSDate/dateWithTimeIntervalSinceReferenceDate :>
2012-06-02 11:23:22 -07:00
cacaodev
f2dd6b5dce
CPDateReferenceDate should be 'Jan 1 2001' instead of 'Feb 1 2001'
2012-06-02 19:38:34 +02:00
Blair Duncan
eeceaa0c9b
unlite if mouse is moved off and cursor up hilites last item if none
2012-06-01 20:17:09 -04:00
Alexander Ljungberg
bc79d57712
Clean up.
2012-05-27 22:21:11 +01:00
cacaodev
36bbab1d84
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-05-27 22:29:39 +02:00
Blair Duncan
59b6ddc29e
Merge branch 'autosaveTableColumnsFix' of github.com:BlairDuncan/cappuccino into autosaveTableColumnsFix
2012-05-26 22:23:49 -04:00
Blair Duncan
f04032aa97
added updated test file to show bug that this fixes
2012-05-26 22:19:34 -04:00
Blair Duncan
96cba7281a
removed unnecessary comment and updated test file
2012-05-26 22:13:22 -04:00
aparajita
954ec26e80
Merge pull request #1551 from ggsato/subclassingDocController
...
fixed shared CPDocumentController instantiation and added its test
2012-05-26 12:44:18 -07:00
cacaodev
63e8c732cc
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-05-26 08:04:10 +02:00
cacaodev
086c0e6ef0
Merge remote-tracking branch 'upstream/master' into CPTableView-content-binding
2012-05-26 08:03:56 +02:00
ggsato
fabe1d8991
formatting and now subclassing is tested by Open a document
2012-05-26 11:08:57 +09:00
Antoine Mercadal
02b65e6dfb
Fix a bug in Nib2Cib.j when configInfo is null
2012-05-25 18:06:05 -07:00
Alexander Ljungberg
aa546374f3
Fixed: typo in aa4eff9.
2012-05-26 00:22:23 +01:00
Alexander Ljungberg
288ec78c3e
Fixed: split view autosave.
...
The fix to prevent incorrect autosaving prevented correct autosaving as well.
2012-05-26 00:04:12 +01:00
Martin Carlberg
2f875615a2
Removed hardcoded width in disclosure button
2012-05-25 11:14:43 +02:00
Martin Carlberg
49adcd85fc
Removed useless space after capp_lint warning
2012-05-25 10:54:10 +02:00
Martin Carlberg
8e785c2210
Removed set and get methods and blank line before if added.
2012-05-25 10:47:07 +02:00
ggsato
310422adb1
Added another way to subclass CPDocumentController
2012-05-25 17:09:31 +09:00
ggsato
0dbebf2f04
Added another way to subclass CPDocumentController
2012-05-25 16:54:10 +09:00
Alexander Ljungberg
46aabf0ea2
Code formatting.
2012-05-25 01:12:57 +01:00
Alexander Ljungberg
1a14ef2418
Fixed: capp_lint handling of string literals with escapes.
...
This could cause capp_lint to warn about what it perceived as code inside of string literals if the string literal ended with an escaped backslash.
2012-05-25 01:07:35 +01:00
Alexander Ljungberg
aa4eff9f8d
Format code, fix accidental global.
2012-05-25 00:04:46 +01:00
Alexander Ljungberg
9ffaf538e2
Remove unary + warning from capp_lint.
...
A statement like `x = +y;` actually does have an effect in JavaScript.
2012-05-24 23:58:01 +01:00
Alexander Ljungberg
2a21ce4a0c
Support function argument types in capp_lint.
...
Syntax such as function(/*CPString*/anArgument) {} should not generate a warning, and in general inline /**/ comments should be ignored for linting purposes.
2012-05-24 23:52:30 +01:00
Alexander Ljungberg
09d5957c82
Code formatting.
2012-05-24 23:40:15 +01:00
Alexander Ljungberg
2b8b570dd4
Fixed: capp_lint exponential warnings.
...
capp_lint issued warnings over numerical literals like 2.1e+6 even that they were correctly formatted.
2012-05-24 23:22:24 +01:00
Alexander Ljungberg
a7bee74fb0
Report the original line contents in capp_lint.
...
capp_lint does some preprocessing of lines to simplify the lint tests, but the user will expect the regular, non processed lines in the output.
2012-05-24 22:34:50 +01:00
Alexander Ljungberg
1f803f52d1
Add some illustrative capp_lint doctests.
2012-05-24 19:37:30 +01:00
Alexander Ljungberg
0d5b4d4958
Fixed: if linted text didn't end with a newline the last character would be ignored.
2012-05-24 19:26:05 +01:00
Alexander Ljungberg
24cce3ca8a
Make LintChecker().lint_text('<code>') possible.
...
Made LintChecker()'s "view" and lint_text's "filename" arguments optional. Filename will default to <stdin> like Python does when you pipe to it. Also return found errors from lint_text as a convenience.
2012-05-24 19:24:50 +01:00
ggsato
2a0ee14130
wrapped window.status clear statement
2012-05-25 01:52:09 +09:00
Alexander Ljungberg
e25394a322
Code formatting.
2012-05-24 17:10:46 +01:00
ggsato
ab1dc15393
moved types declaration
2012-05-24 23:58:59 +09:00
ggsato
3a750591bb
moved types declaration
2012-05-24 23:55:04 +09:00
ggsato
7da9877c5f
fixed shared CPDocumentController instantiation and added its test
2012-05-24 23:12:07 +09:00
Alexander Ljungberg
66ff5dcb86
Merge pull request #1550 from ggsato/cappuccino
...
---
This is a tiny little minor fix of MainMenu.xib template.
Before
https://www.dropbox.com/s/cqq8zhy8o2yof51/NibTemplate_Before.png
After
https://www.dropbox.com/s/78j95f1gl596vro/NibTemplate_After.png
2012-05-24 13:54:57 +01:00
ggsato
f50a6ea7a3
fixed menu labels by removing numbers at Identity Label
2012-05-24 18:09:17 +09:00
Adam Radabaugh
253d7497ef
Merge branch 'master' of git://github.com/cappuccino/cappuccino
2012-05-23 00:15:22 -06:00
Aparajita Fishman
1efc2e3c15
Fixed parsing in CGSizeFromString and CGPointFromString
2012-05-22 12:52:54 -07:00
Adam Radabaugh
909c6ed171
Fix style issue in CPControl
2012-05-19 16:56:57 -06:00
Aparajita Fishman
b4f916351e
Added capp_lint check for space inside parens and dependent statement on same line, cleaned up CPString.j
2012-05-19 14:20:07 -07:00
Adam Radabaugh
a47a5b76eb
Fix style issue in CPButton.j
2012-05-18 23:15:26 -06:00
Adam Radabaugh
919bfb7960
Fix style issue in CPControl
2012-05-18 17:11:04 -06:00
Antoine Mercadal
bc09c99952
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-05-18 12:51:34 -07:00
Antoine Mercadal
28ccb27d4f
Merge branch 'cpstring_append_path_component_cocoa_way' of https://github.com/mrcarlberg/cappuccino into PR_mrcarlberg_cpstring_append_path_component_cocoa_way
2012-05-18 12:47:41 -07:00
Jiva DeVoe
d205c4eac7
updating to remove a comment and to fix a formatting issue
2012-05-18 10:25:06 -07:00
Jiva DeVoe
18662deec6
removed the if statement before the invalidate
2012-05-17 23:52:41 -07:00
Jiva DeVoe
d955eceafa
fixed an errant semicolon
2012-05-17 23:34:26 -07:00
Jiva DeVoe
995d529fb7
Added a very hacky workaround for the jittery resize bug in webkit. Ref: https://github.com/cappuccino/cappuccino/issues/1325
2012-05-17 23:10:04 -07:00
Aparajita Fishman
d4e460dac5
When popover closes implicitly, popoverShouldClose delegate method should be called.
...
Added extra button popover to test -close method, which does not consult popoverShouldClose.
2012-05-17 17:02:45 -07:00
cacaodev
0314005e0e
Added CPImage -data. If needed, generates data for canvas compatible browsers. Added a test in CPImageViewTest where an image is created from the data of another image
2012-05-17 23:02:49 +02:00
cacaodev
7831085a97
Merge remote-tracking branch 'upstream/master' into CPImageView-bindings
...
Conflicts:
Tests/Manual/CPImageViewbindingsTest/Resources/MainMenu.cib
2012-05-17 14:01:20 +02:00
cacaodev
dfb2340e83
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-05-16 21:02:03 +02:00
cacaodev
db8f2fdf75
Added support for CPTableView content binding, generally used with view-based tables.
...
Grouped the 3 ways to set objectValue on a dataview (content binding, column value binding or regular delegate method) under one main method: _setObjectValueFortableColumn:row:ForView:
Also fixed a bug where the dragging rows didn't have their bindings applied. Columns and row dragging are now using the previous method for setting data view objectValue.
Updated TableBindings example: table with content binding vs. columns with value binding.
2012-05-16 15:57:26 +02:00
aparajita
d18e77329f
Merge pull request #1542 from BlairDuncan/controlDidFailToFormatStringFix
...
controlDidFailToFormatString should send a string not an HTML element
2012-05-15 21:39:14 -07:00
Blair Duncan
8f4acc98d4
controlDidFailToFormatString should send a string not an HTML element
2012-05-16 00:03:00 -04:00
Adam Radabaugh
95f7ba29cc
Update latest nib2cib with demo of button types
2012-05-15 14:38:54 -06:00
Adam Radabaugh
7ab20145d1
Merge branch 'master' of git://github.com/cappuccino/cappuccino
...
Conflicts:
Tests/Manual/CPButtonTest/Resources/MainMenu.cib
2012-05-15 14:15:03 -06:00
Blair Duncan
5f7d1e8dc3
controlDidFailToFormatString should send a string not an HTML element
2012-05-15 16:07:56 -04:00
Antoine Mercadal
6010288124
Merge pull request #1541 from cacaodev/CPPopover-setBehavior
...
CPPopover typo: setBehaviour: -> setBehavior:
Reviewed.
2012-05-15 12:49:59 -07:00
cacaodev
8a10105f48
CPPopover typo: setBehaviour: -> setBehavior:
2012-05-15 21:42:14 +02:00
Antoine Mercadal
478fb43d2a
Fix all Manual tests showing empty UI. (re-run nib2cib on all of them)
2012-05-15 12:08:19 -07:00
Alexander Ljungberg
4b7cef637b
Refs #1538 . Reapply formatting.
2012-05-14 21:21:45 +01:00
Alexander Ljungberg
69c72d366e
(Fix commit attribution) Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
Conflicts:
Foundation/CPObject.j
Tests/Foundation/CPMutableArrayTest.j
2012-05-14 21:20:41 +01:00
Alexander Ljungberg
5e7125e310
Refs #1538 . Clean up, accidental global.
2012-05-14 21:12:31 +01:00
Alexander Ljungberg
bc370a2a5a
Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-14 21:12:17 +01:00
Martin Carlberg
0abd9855c2
Moved new description functionallity from CFDictionary to CPDictionary.
...
Added testcase for both CPDictionary and CPArray. Fixed failing testcase.
Checked all new code with capp_lint for correct formatting.
2012-05-14 10:14:05 +02:00
Alexander Ljungberg
3525bd0183
Code formatting.
2012-05-13 14:26:19 +01:00
Darrell Walisser
098f72651c
-correct documentation
2012-05-12 15:05:48 -04:00
Darrell Walisser
8c1d147319
-remove next sheet context hack
...
-order of notifications/didEndSelect are correct now
2012-05-12 14:22:54 -04:00
Martin Carlberg
327debe3a8
Some more clean-up
2012-05-11 23:39:41 +02:00
Martin Carlberg
4af27541d0
Clean-up
2012-05-11 23:33:37 +02:00
Martin Carlberg
70182a0ea2
Description methods in CPArray and CPDictionary will display JavaScript object attributes instead of displaying [Object object]
...
Don't you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them.
Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint
and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-11 17:40:11 +02:00
Martin Carlberg
183260d9e3
Added a themed attribute for round rect selection of rows.
...
Selections in the tableview can now have round corners. The default is a regular
rect, but if the selecction radius is changed. Nice good looking round rect
selections will appear.
2012-05-11 16:14:14 +02:00
Martin Carlberg
df2cf923e1
MainBundle path has no '/' at the end when running in CommonJS.
...
This will make relative paths fail. For example if OBJJ_INCLUDE_PATHS has the path "../../MyLibrary".
MyLibrary will not be found when the path is joined with mainBundlePath without an ending '/'.
This is working when running in Browser.
2012-05-11 15:52:44 +02:00
Martin Carlberg
c35ccde682
Added stringByAppendingPathComponent: and stringByAppendingPathExtension: to CPString. Also, changed CPString path behaviour to correspond to Cocoa behaviour.
2012-05-11 15:32:18 +02:00
Alexander Ljungberg
afbfde0909
Code formatting.
2012-05-10 16:01:22 +01:00
Alexander Ljungberg
e72093c91e
Merge pull request #1531 from BlairDuncan/cappuccino
...
---
2012-05-10 15:50:10 +01:00
Blair Duncan
1ffdaf0f8b
typo, LOG should be log
2012-05-10 09:01:03 -04:00
Blair Duncan
74431972d8
added missing LOG math global and replaced any math. with correspoinding global
2012-05-10 08:55:19 -04:00
Stefan Wallström
19804720af
CPTableView: Don't update selection etc unless becoming first responder succeeds.
...
Fix for issue #1435
2012-05-10 13:42:37 +02:00
Alexander Ljungberg
1f8555ffd2
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-05-10 00:19:49 +01:00
Alexander Ljungberg
4218c49a7e
Refs #1529 . Verify that the actual issue error is gone.
2012-05-10 00:17:25 +01:00
Alexander Ljungberg
8aaf298466
Fixes #1529 . Fixed: Incorrect CPDecimalNumber result for 220000/220.
...
And in general divisions where the quotient had fewer digits than the dividend when disregarding exponent would fail.
We want to stop dividing when we've gone over all the digits in the dividend and the remainder is 0.
2012-05-10 00:16:56 +01:00
Alexander Ljungberg
82e2c7a0e8
Refs #1529 . Simpler test: 11/11.
2012-05-10 00:02:44 +01:00
Alexander Ljungberg
27fa01648f
Code formatting, delete stray */.
2012-05-10 00:01:03 +01:00
Alexander Ljungberg
ab25408429
Refs #1529 . Unit test exposing division error.
2012-05-09 23:39:11 +01:00
Alexander Ljungberg
d896baf38b
Code formatting.
2012-05-09 19:09:35 +01:00
Darrell Walisser
53798c1545
-allow any window to become a sheet
2012-05-06 12:07:02 -04:00
Darrell Walisser
1e6f0090da
-allow any window to become a sheet
2012-05-06 12:06:23 -04:00
aparajita
0dcca6d388
Merge pull request #1527 from BlairDuncan/reNib2cibTestFiles
...
ran nib2cib on all of current test files xib's
2012-05-04 18:04:55 -07:00
Blair Duncan
934691fffb
nib2cib all of current test files xib's
2012-05-04 20:10:55 -04:00
Alexander Ljungberg
6bc26eb0cc
Test app to verify CPProgressIndicator rendering, nib2cib and coding.
2012-05-03 20:42:41 +01:00
Alexander Ljungberg
bdcc1539ac
Use an ephemeral subview for the bar of a progress indicator.
...
This is clearer code and avoids encoding the 'pill view' automatically.
2012-05-03 20:40:50 +01:00
Alexander Ljungberg
6715fbbce2
nib2cib support for CPProgressIndicator size. Fixed: a regular size spinner in IB became twice as large in Cappuccino.
2012-05-03 20:27:05 +01:00
Alexander Ljungberg
da055f83b3
Fixed: CPProgressIndicator encoder wasted space and caused errors.
...
The errors would cause exceptions such as "Not allowed to load local resource: file:///<some local path from the machine that ran nib2cib>" when loading cib driven app through a web server.
2012-05-03 19:45:12 +01:00
Alexander Ljungberg
1476efce90
Minor formatting.
2012-05-03 01:36:17 +01:00
Adam Radabaugh
2078d0e23b
Restore copywrite info in headers.
2012-05-01 15:16:44 -06:00
Adam Radabaugh
ea0107f67f
Enable additional button types in CPButton with manual test.
2012-05-01 15:11:34 -06:00
Darrell Walisser
c71f5baef2
-implement orderOut: to control sheet dismissal
...
-lots of comments and a few debug prints
2012-04-28 20:36:10 -04:00
Darrell Walisser
66f55df44a
-use _endSheet to end sheets
...
-do not call orderFront: if the sheet is already visible
2012-04-28 20:32:13 -04:00
Darrell Walisser
8fd5f30b87
-call orderOut: to dismiss the alert sheet
2012-04-28 20:28:09 -04:00
Darrell Walisser
8bc4a287a6
-update docs for sheet notifications
2012-04-28 11:31:01 -04:00
cacaodev
d1dd177bfd
CPImageView: support for CPDataBinding. Test.
2012-04-28 17:12:22 +02:00
cacaodev
80b6788638
CPImage -initWithData:
2012-04-28 17:11:37 +02:00
Darrell Walisser
ce6444c30e
-implement CPWindow sheet notifications on delegate
...
-raise error when window already has a sheet, or attaching sheet to a sheet
2012-04-28 10:13:02 -04:00
cacaodev
5e3d9df81a
In CPTableViewLionCibTest, use valueURL binding for image views; general capp lint.
2012-04-28 10:09:39 +02:00
cacaodev
a0d52d415b
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-04-28 09:00:53 +02:00
Alexander Ljungberg
c437537749
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-27 01:19:56 +01:00
Alexander Ljungberg
c16c0309c8
Fixed: CPOutlineView setMenu: was not effective.
...
A CPOutlineView without a delegate `outlineView:menuForTableColumn:item` method, would not display its context menu as specified by `setMenu:` or in IB.
2012-04-27 01:19:47 +01:00
aparajita
1dcd380bb2
Merge pull request #1283 from cacaodev/CPRulePredicateEditor
...
CPRuleEditor & CPPredicateEditor fixes and enhancements
2012-04-26 12:02:07 -07:00
cacaodev
6fe3d53a13
Merge remote-tracking branch 'upstream/master' into CPRulePredicateEditor
2012-04-26 20:34:18 +02:00
cacaodev
92cdda1d22
capplinted CPRuleEditor/*.j
2012-04-26 20:34:09 +02:00
Aparajita Fishman
3eb4155489
Switched to /usr/bin/env bash for better cross-platform compatibility
2012-04-26 19:11:05 +02:00
Aparajita Fishman
e657e7a684
Make capp_lint use a single code base for command line and SublimeLinter
2012-04-26 18:14:06 +02:00
Alexander Ljungberg
5446bedfcc
Fixes #1519 . Fixed: capp_lint __init__ takes at least 2 arguments error.
...
Some SublimeLinter specific bits appear to have made it into the standalone capp_lint.
2012-04-26 16:02:41 +01:00
Alexander Ljungberg
be36803570
Fixed: CPPredicateEditor "Display value must be…" exception in recent revisions.
2012-04-26 15:35:55 +01:00
Alexander Ljungberg
998bdb550b
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-26 15:25:59 +01:00
Alexander Ljungberg
a0c7305334
Fixed: collection views cleared their selection whenever the content was changed.
...
This was unlike Cocoa and prevented CPArrayController's selectsInsertedObjects from working.
2012-04-26 15:19:18 +01:00
cacaodev
edb86ebeeb
CPPredicateEditorValueBinder cleaning, conforms to recent CPBinder updates
2012-04-26 16:09:32 +02:00
cacaodev
bfe53a1d54
Merge branch 'CPPredicateEditorRowNode-formatting' into CPRulePredicateEditor
2012-04-26 15:39:16 +02:00
cacaodev
3ab2ebf71f
Merge remote-tracking branch 'upstream/master' into CPRulePredicateEditor
...
Conflicts:
AppKit/CPRuleEditor/CPRuleEditor.j
2012-04-26 15:38:30 +02:00
Darrell Walisser
0f43cdee00
-sheet attached to modal window runs in modal context
...
-events in modal run loop get passed to sheet's parent window, so it can move and resize
2012-04-25 21:04:38 -04:00
Blair Duncan
9ef9bf9f42
CPFlashView a few minor fixes, includes Test file
2012-04-25 17:07:13 -04:00
Antoine Mercadal
b04dbb647b
Typo in method name + make some methods private
2012-04-25 12:41:22 -07:00
aparajita
72092732f3
Merge pull request #1516 from zittix/Xcodecapp_mising_help_fix
...
Add missing help file in XcodeCapp to avoid startup crash
2012-04-25 08:10:26 -07:00
zittix
7f0ff5fd0a
Add missing help file in XcodeCapp
2012-04-25 16:25:58 +02:00
Antoine Mercadal
0318d23ab6
Fix stupid error in tooltips management when initializing from a coder
2012-04-24 18:10:33 -07:00
Antoine Mercadal
8fdf78cf67
Move the tooltip code into the CPView code (remove category). Fix problem with tooltips not working when using deploy
2012-04-24 17:57:05 -07:00
Darrell Walisser
06348bbe0b
-keep parent window behind sheet when orderFront: on sheet or left mouse down on parent window
2012-04-24 20:54:09 -04:00
Antoine Mercadal
3ec4d3e374
Encode/Decode tooltip in CPView
2012-04-24 16:27:36 -07:00
Antoine Mercadal
9866bf19a4
Support for setting ToolTips right from IB
2012-04-24 16:13:37 -07:00
Aparajita Fishman
1e3c668c9b
Added instructions for using pre-commit hook
2012-04-24 10:37:40 +02:00
Aparajita Fishman
36bfc7c675
Fixed decode methods to return the correct defaults, removed unnecessary containsValueForKey and || with defaults
2012-04-24 10:15:19 +02:00
Blair Duncan
d6429e532b
typo fix
2012-04-24 00:02:12 -04:00
Blair Duncan
864db16e33
Fix for issue 1491, don't scroll if active menu container is menubar
2012-04-23 23:54:13 -04:00
Blair Duncan
02ebb6e4f7
highlite menu item only if the active item was found
2012-04-23 23:06:31 -04:00
Alexander Ljungberg
44521a3c22
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-23 23:56:59 +01:00
Alexander Ljungberg
c5afd3d39f
Fixes #1512 . Patch to improve rhino-narwhal platform support.
...
This rhino-narwhal patch can be applied to add JAVA_OPTS support when running Cappuccino utilities through rhino. This generally improves configurability for special cases, and specifically enables a work around for the "failed to map segment from shared object" error on some platforms.
2012-04-23 23:45:29 +01:00
Blair Duncan
5b5034da63
CPEvent - send a valid timestamp for periodic events
2012-04-23 18:19:37 -04:00
Aparajita Fishman
2fd67f6ba8
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-23 23:24:27 +02:00
Blair Duncan
5b6779a3a9
Fix for menu selection that was broken with the change to CPEvent timestamp
2012-04-23 16:51:10 -04:00
Alexander Ljungberg
74820a5040
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-23 19:16:05 +01:00
Alexander Ljungberg
be76424513
Fixes #1460 . Add an xcode-select warning to bootstrap.sh.
2012-04-23 19:15:37 +01:00
Alexander Ljungberg
2d4e544931
Don't mention a website which no longer exists.
2012-04-23 18:48:21 +01:00
Aparajita Fishman
1077294e9a
Added missing -adjustSubviews method, code cleanup.
2012-04-23 12:08:12 +02:00
Aparajita Fishman
bd691d5307
Hopefully finally fixed the problem with CPScrollView/CPScroller initialization. Fixes #1485 .
2012-04-23 01:12:24 +02:00
Aparajita Fishman
48ef639408
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-22 23:14:18 +02:00
Aparajita Fishman
9830b2b115
Subviews may not be accessed during initWithCoder. Fixes #1485 .
2012-04-22 23:13:58 +02:00
Blair Duncan
ca381029f1
updated background image for sample test file
2012-04-22 11:57:56 -04:00
Alexander Ljungberg
40e07bbb45
Missing semicolons.
2012-04-22 15:22:00 +01:00
Alexander Ljungberg
7efc8230a2
Fixed: a collection view wouldn't become the first responder when its items were clicked.
2012-04-20 17:30:17 +01:00
Alexander Ljungberg
38dd03652a
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-20 15:14:37 +01:00
Alexander Ljungberg
21a34f88b2
Fixed: don't crash when removing objects from an array controller which has its arrangedObjects.@count observed.
2012-04-20 15:12:59 +01:00
Aparajita Fishman
092cb01bb3
Added capp_lint to Tools
2012-04-20 11:57:18 +02:00
Alexander Ljungberg
d9640aa205
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-19 22:44:06 +01:00
Alexander Ljungberg
469414cb35
Fixed: a CPURLRequest created without using the designated initialiser wouldn't work.
...
Now `init` calls the designated initialiser like in Cocoa.
2012-04-19 22:43:45 +01:00
cacaodev
f42e0d42fd
CPCib CPCoding: use new CPData -*base64 methods
2012-04-18 09:01:57 +02:00
cacaodev
99798ffea7
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-04-17 22:13:24 +02:00
aparajita
f96c113065
Merge pull request #1509 from cacaodev/CPData-bytes-base64
...
CFData: completed bytes(), base64() and adds CPData +dataWithBytes and +dataWithBase64:
2012-04-17 10:44:53 -07:00
cacaodev
7fe576163d
CFData: Adds lazy getters bytes(), base64().
...
CPData: Adds +dataWithBytes and +dataWithBase64:
Tests.
2012-04-17 19:08:29 +02:00
Alexander Ljungberg
314be1ec11
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-17 15:28:11 +01:00
Alexander Ljungberg
0d810e64b7
Stub out CPDateFormatter and nib2cib support.
2012-04-17 15:27:47 +01:00
Blair Duncan
e4d3334313
removed unnecessary comment
2012-04-16 21:04:12 -04:00
Blair Duncan
5384a9e86f
Fix for issue 1507 CPTableview autosave tablecolumns
2012-04-16 21:00:33 -04:00
Aparajita Fishman
5763ebdf2b
Fixed CPEvent -timestamp to return seconds since startup, as documented in Cocoa.
...
Miscellaneous cleanup of timestamp usage as well.
2012-04-15 11:30:27 -04:00
aparajita
3f58c4ea6f
Merge pull request #1494 from cacaodev/CPImageView-bindings
...
CPImageView: support CPValueURLBinding and CPValuePathBinding.
2012-04-15 05:52:22 -07:00
cacaodev
22f75fa9cd
Very minor UI changes
2012-04-15 09:52:57 +02:00
cacaodev
a76fbb0073
nib2cibed CPOutlineViewCibTest
2012-04-13 22:27:47 +02:00
cacaodev
299a035b7f
Typo
2012-04-13 22:27:21 +02:00
Randall Luecke
340b86e97f
CPAlert shouldn't use 'alert' as a variable name
2012-04-13 10:59:30 -04:00
Aparajita Fishman
4fff92f3ee
Ignore NS_*.j userland NS classes in XcodeCapp
2012-04-13 08:25:19 -04:00
cacaodev
a41ff7f2d0
TableView Example: fix row selection after drop
...
make editable textfield bordered
Finished CPOutlineView view-based. With example
2012-04-13 09:19:36 +02:00
cacaodev
b11294d9cf
Updated Cib test with the table content binding feature
2012-04-13 09:19:36 +02:00
cacaodev
fda6694e0f
merge content binding feature
2012-04-13 09:19:35 +02:00
cacaodev
399734fad4
CPTableView -_dragViewForColumn:event:offset:
...
Set the dragView frame before dataviews are added to it. Otherwise, dataviews will be expanded depending on their autoresize mask and appear cropped on the right.
2012-04-13 09:19:35 +02:00
cacaodev
0b5f0e5e61
CPTableView: Fixed a bug where an error was thrown when trying to edit a view-based cell. View-based cells don't need their editing to be handle by the table (begin or end), instead they are edited directly. Added an editable textfield on the right column view. values are commited via bindings. Focus not shown when you edit because of a bug in CPTextField
2012-04-13 09:19:35 +02:00
cacaodev
f87dbec170
Add performance tests for the loadDataViewsInRows:columns: in view-based examples and in cell-based example CPTableCibTest. You need to re-build the fmw if you want to compare before/after view-based API.
2012-04-13 09:19:35 +02:00
cacaodev
67f7649f6c
CPTableView with Lion's view-based API
...
Added : -makeViewWithIdentifier:owner:
-rowForView: columnForView: less performant tahn cocoa because we cycle through all visible rows. But these methods are generally used once when editing manually.
Added identifier property to CPView.
retro and forward (in IB) compatible with the existing API. You can use IB table view based without the new API. Existing table views / Nib won't break.
CPTableView view based example. Featuring: IB made data views, different views in the same column, subviews binding in IB
When the view is found automatically in the cib, instantiate with _delegate as the owner (cocoa behavior).
2012-04-13 09:19:23 +02:00
cacaodev
c2cad3cca3
nib2cib NSNib support. NSNib are represented as data inside nib files. We need to extract them, write, nib2cib, feed CPCib with the data.
2012-04-13 09:19:23 +02:00
cacaodev
5a99011feb
nib2cib support for CPView identifier property.
2012-04-13 09:19:23 +02:00
cacaodev
392702cc18
nib2cib Converter.j : Add a flag to disable ibtool step in case the input is already compiled. Set SharedConverter class var in init (not a singleton, represents the current Converter).
2012-04-13 09:18:54 +02:00
cacaodev
0c8715dd8d
Merge remote-tracking branch 'upstream/master' into CPImageView-bindings
2012-04-12 23:26:11 +02:00
cacaodev
487d38fd21
Merge remote-tracking branch 'upstream/master' into CPImageView-bindings
2012-04-12 23:12:09 +02:00
Aparajita Fishman
c028c0ad26
Fixed infinite loop when finished editing a tableview cell.
2012-04-12 17:09:20 -04:00
cacaodev
925a922d90
Remove first row in the plist
2012-04-12 21:41:26 +02:00
Aparajita Fishman
aeb2671fc0
CPImageView enhancements
...
- Changed from deprecated image scaling constants to new ones.
- Added support for CPImageScaleProportionallyUpOrDown (thanks BlairDuncan).
- Cleaned up image layout code.
2012-04-12 14:55:46 -04:00
Aparajita Fishman
502edbd152
nib2cib enhancements
...
- Added support for User Defined Runtime Attributes in IB.
- Added support for userland NS classes in IB.
- Added support for file-based nib2cib configuration.
- Converted nib2cib to Objective-J from straight Javascript.
- Updated man page for new features.
- Test app.
2012-04-12 12:09:24 -04:00
Aparajita Fishman
5fed81e1dc
CFURL/CPURL fixes/enhancements
...
- Fixed bizarre bug where local variable path was being set as attribute of object in CPURL -pathComponents.
- Added CPURL -URLByDeletingLastPathComponent.
- Linted CFURL.js.
- CFURL constructor should copy when passed a CFURL.
- Added CFURL.createCopyDeletingLastPathComponent.
- Added test for URLByDeletingLastPathComponent.
2012-04-12 10:45:01 -04:00
Blair Duncan
ed2e637219
Merge branch 'master' of git://github.com/cappuccino/cappuccino into afterDocumentLoadFix
2012-04-11 06:53:53 -04:00
Aparajita Fishman
6293380406
Let jake proceed if a man page cannot be copied
2012-04-10 22:42:46 -04:00
Blair Duncan
3649b0ed9c
Added test
2012-04-10 19:28:00 -04:00
Antoine Mercadal
73641cb726
Merge remote-tracking branch 'upstream/master'
2012-04-10 16:10:14 -07:00
Antoine Mercadal
71cfeae5f1
fix typo preventing the highlighting color to be draw.
2012-04-10 16:08:17 -07:00
Aparajita Fishman
c40aaa04f6
Merge branch 'master' of github.com:cappuccino/cappuccino into cappuccino
2012-04-10 18:42:43 -04:00
Aparajita Fishman
f4f4554cde
Fixed test of result of sudo()
2012-04-10 18:42:26 -04:00
aparajita
1b0fa21f28
Merge pull request #1498 from BlairDuncan/unnecessaryGlobals
...
Unnecessary globals
2012-04-10 14:57:40 -07:00
Aparajita Fishman
5c0e079873
CPBinder: In reverseSetValueFor:, suspend observation to avoid unwanted setValueFor:
...
isssue #1463
Manual test and ojtest.
2012-04-10 17:28:20 -04:00
Blair Duncan
6ede1ccb04
Unnecessary globals
2012-04-10 17:25:46 -04:00
aparajita
7173d3c866
Merge pull request #1496 from BlairDuncan/testBranch
...
Fix for issue 1425 CPOutlineView expand all items
2012-04-10 14:15:10 -07:00
cacaodev
c989c30e00
Use new CPBinder methods from #1495
2012-04-10 22:57:20 +02:00
Blair Duncan
13fbfb6cac
fix to enables the startup loader to continue if dynamically loaded
2012-04-10 16:55:42 -04:00
cacaodev
d649fc2413
Merge remote-tracking branch 'upstream/master' into CPImageView-bindings
2012-04-10 22:26:23 +02:00
aparajita
8015106976
Merge pull request #1495 from cacaodev/CPBinder
...
CPBinder: consolidate setValueFor: with placeholders management
2012-04-10 13:22:23 -07:00
Blair Duncan
6b6c44c4d5
Fix for issue 1425 CPOutlineView expand all items when option key is pressed while clicking the disclosure triangle
2012-04-10 16:11:31 -04:00
cacaodev
742bfcb0e7
Fix non-applicable syntax
2012-04-10 22:06:50 +02:00
cacaodev
f222d7bfe7
CPBinder: move placeholder handling to superclass, add 2 subclassable methods for appying the regular value or a placeholder value.
...
Update binder subclasses for CPTextField, CPCheckBox, CPColorWeel.
2012-04-10 21:48:09 +02:00
Aparajita Fishman
f6bdf06e45
Fix _CPFormatLogMessage to do something intelligent if aLevel and/or aTitle is empty or not passed
2012-04-10 15:07:39 -04:00
Aparajita Fishman
c04f188adc
Fix for dump_theme failing without admin rights, common.jake linting
2012-04-10 14:26:00 -04:00
Antoine Mercadal
1e2964ad8f
Fix a crash do to calling non-existing selector
...
That said, the popover is not moving correctly with the
attached view as it did. Patch in a following commit
2012-04-09 19:20:47 -07:00
Aparajita Fishman
dd63174493
Merge branch 'master' of github.com:cappuccino/cappuccino into cappuccino
2012-04-09 15:53:53 -04:00
Aparajita Fishman
91642080d6
Eliminate flashing of insertion point when becoming first responder due to double setTimeout
2012-04-09 15:53:31 -04:00
cacaodev
ccf18bb9cb
CPPredicateEditorRowNode formatting
2012-04-09 19:54:00 +02:00
Antoine Mercadal
64a74d9ac6
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-04-09 10:28:02 -07:00
Aparajita Fishman
bc8dc10ac3
Fix for #1433
2012-04-09 13:25:38 -04:00
Antoine Mercadal
324e75650d
code style cleaning
2012-04-09 10:24:39 -07:00
Antoine Mercadal
8c205faf2d
Merge https://github.com/rvanzon/cappuccino into rvanzon-xcc
2012-04-09 10:23:59 -07:00
Richard van Zon
d56a15db83
Using fm instance and ignore errors
2012-04-09 08:06:53 +02:00
Aparajita Fishman
342bde7767
Started linting CPRuleEditor classes
2012-04-09 01:56:59 -04:00
Aparajita Fishman
ec80a4c9e6
Add some missing imports
2012-04-09 00:59:57 -04:00
aparajita
2a1af53d79
Merge pull request #1456 from cacaodev/CPTabView
...
CPTabView: Do not track the segment when the delegate disallows item selection
2012-04-08 21:38:53 -07:00
Alexander Ljungberg
c528563421
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-08 18:51:15 +02:00
Alexander Ljungberg
a3a01c2419
Missing semicolons, whitespace.
2012-04-08 18:50:54 +02:00
Alexander Ljungberg
40d30459b8
Missing semicolons.
2012-04-08 18:10:54 +02:00
Alexander Ljungberg
b746824933
Formatting.
2012-04-08 18:10:41 +02:00
cacaodev
1e9958c4c7
Handle CPValueBinding in the custom binder. Added a CPImageView with CPValueBinding to the test app.
...
Removed setBackgroundColor:gray for placeholders because it's a bad idea (non cocoa and need to restore bg when the value != placeholder).
2012-04-08 10:01:04 +02:00
aparajita
3230ea2519
Merge pull request #1492 from daboe01/master
...
fix for issue 1451
2012-04-07 13:25:39 -07:00
aparajita
22fc8337a3
Merge pull request #1257 from aparajita/_CPImageAndTextView-API
...
Add textFrame method to locate the text within the view
2012-04-07 10:51:10 -07:00
Aparajita Fishman
86d5818c0f
Revert "Use /var/tmp, in Lion /tmp is not world writable"
...
This reverts commit e9d076adcd .
2012-04-07 10:42:27 -07:00
cacaodev
b6a173cc0c
CPImageView: support CPValueURLBinding and CPValuePathBinding. Readonly. With test.
2012-04-07 13:16:16 +02:00
daboe01
ec9c682052
Small progress indicator images fixed ( http://www.preloaders.net/en/terms_of_use )
2012-04-06 13:56:06 +02:00
Aparajita Fishman
e9d076adcd
Use /var/tmp, in Lion /tmp is not world writable
2012-04-05 20:28:14 -07:00
Aparajita Fishman
d59bc012b6
Added dump_theme tool
2012-04-05 20:25:14 -07:00
Aparajita Fishman
eb292e6d87
Factored image creation code so -description can be added
2012-04-05 19:57:30 -07:00
Aparajita Fishman
129a8cb411
Added ability to specify bundle, which makes this usable with non-main bundle images.
2012-04-05 19:42:23 -07:00
Aparajita Fishman
d76706b865
Cocoa always sends NSControlTextDidEndEditingNotification and the action when resigning, whether or not editing had begun.
2012-04-05 18:04:10 -07:00
aparajita
159c5c7342
Merge pull request #1253 from aparajita/better-theme-template
...
Improvements to the ThemeDescriptor capp template
2012-04-05 17:07:40 -07:00
Aparajita Fishman
4d50eea29b
capp templates
...
- Small comment tweaks
2012-04-05 17:06:15 -07:00
daboe01
0ec10515cd
Small progress indicator images
2012-04-05 20:45:19 +02:00
Aparajita Fishman
c2f20c21e6
Added CGInsetUnion and CGInsetDifference
2012-04-04 23:17:24 -07:00
Aparajita Fishman
e2ead56256
Collection KVC fixes, nextObject correctness
...
- Moved common CPArray/CPSet collection KVC operators to _CPCollectionKVCOperators.
- Implemented KVC operator dispatch using Objective-J.
- Fixed infinite loop with empty collection in @min, @max and @sum operators.
- Correctly return valueForUndefinedKey when necessary.
- valueForUndefinedKey reason uses raw description for consistency, class' overridden description may not helpful at all.
- Don't create a forwarder for @ operators with property paths.
- Fixed CPSet -valueForKeyPath to correctly deal with nil/undefined/empty values.
- Added tests for collection KVC operators.
- enumerator -nextObject should always compare against nil for clarity, correctness, and consistency.
2012-04-03 22:16:55 -07:00
Aparajita Fishman
029e45d027
Use === when possible, made it clearer where the ternary operator ends
2012-04-03 17:17:26 -07:00
Aparajita Fishman
93cc97002a
Cocoa conformance and bug fixes
...
- showRelativeToRect:ofView:preferredEdge: must take provide a view, and if the rect is empty it defaults to the view's bounds.
- If If showRelativeToRect is called while a popover is closing, it is ignored.
- If showRelativeToRect is called when the popover is already open, it should just reposition the existing popover.
- close should NOT consult the delegate's popoverShouldClose. Only performClose should do that.
- If a window is closed, all of its popovers immediately order out.
- Updated demo app to cover more cases.
- Note that child popovers are currently not supported, as this requires support for child windows in CPWindow.
2012-03-31 18:40:47 -07:00
Aparajita Fishman
8fed89164f
Add the appkit_tag_dom_elements flag to the NibApplication index-debug.html template
2012-03-30 11:19:40 -07:00
Aparajita Fishman
48b9f3198f
Methods that return CGPoint should always copy!
2012-03-30 10:53:00 -07:00
Aparajita Fishman
5893b33962
Merge branch 'master' of github.com:cappuccino/cappuccino into cappuccino
2012-03-27 16:29:51 -07:00
Alexander Ljungberg
d2f3ceaf67
Documentation.
2012-03-27 23:45:18 +01:00
Alexander Ljungberg
271b935ba2
+ (BOOL)automaticallyNotifiesObserversOf<Key> support.
2012-03-27 23:42:17 +01:00
Aparajita Fishman
3ddab9e26a
Added configurable list of source directories for framework Jakefile
2012-03-27 11:20:31 -07:00
Aparajita Fishman
d68278e41f
Use isMenuBar instead of testing class
2012-03-27 11:19:41 -07:00
Alexander Ljungberg
25676b4460
Fixed: reverse value transformations were not applied for table view bindings.
2012-03-27 13:56:25 +01:00
Alexander Ljungberg
56c7e1991e
Fixed: check box binding value transformers were ignored.
2012-03-27 13:53:32 +01:00
Alexander Ljungberg
ff68ccdeab
Fix CPPopUpButtonTest.
2012-03-27 13:51:52 +01:00
Alexander Ljungberg
4acbfd5587
Formatters are a part of Foundation.
2012-03-27 10:37:15 +01:00
Alexander Ljungberg
8df2e608ab
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-03-27 10:02:52 +01:00
Alexander Ljungberg
38f8b1a931
Raise an exception if a view is added to itself as a subview.
...
This is better than a DOM node exception.
2012-03-27 10:02:27 +01:00
Alexander Ljungberg
099ee1e249
RC1 bootstrap.
2012-03-26 21:09:37 +01:00
Aparajita Fishman
9e8f659faf
Stop generating useless XML from doxygen.
2012-03-26 12:47:05 -07:00
Aparajita Fishman
cd148c36c9
Menu tracking fixes:
...
- Finally fixed #1457 .
- Fixed case where mouse is dragged and then released over a submenu, which should release the menu.
- Fixed case where clicking without dragging, then clicking again on a menu title would not close the menu.
2012-03-26 12:38:50 -07:00
Alexander Ljungberg
aba7fd5527
Make CPPopUpButton selectedTag private API to match Cocoa.
2012-03-26 19:55:50 +01:00
Alexander Ljungberg
68c794bf9d
This will be Cappuccino 0.9.6.
2012-03-26 19:55:17 +01:00
Alexander Ljungberg
ca9b3a7dbf
Demonstrate that pop up button test is using tags.
2012-03-25 22:01:16 +01:00
Alexander Ljungberg
4eba585286
Fix manual pop up button test.
2012-03-25 21:40:52 +01:00
Alexander Ljungberg
4172ecfdf2
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-03-25 14:15:39 +01:00
Alexander Ljungberg
da80176935
Minor optimisation.
2012-03-25 14:15:18 +01:00
Alexander Ljungberg
f50802b85b
Fixes #1164 . Support CPOutlineView selectionShouldChangeInOutlineView: delegate method.
2012-03-25 13:58:41 +01:00
Alexander Ljungberg
5351bf7e12
Select outline view item parent with left key.
...
If there's a single item selected and it's not expanded, pressing the left arrow key on the keyboard now selects the item's parent unless the delegate vetoes.
2012-03-25 13:47:32 +01:00
Aparajita Fishman
96a038559e
CPPopover fixes
...
- Removed animationStyle for now.
- Made sure that popoverDidClose is not called until animation is finished.
- Don't create a new attached window unless: there isn't one; the popover behavior has changed; the current attached window is still visible.
- Don't call popoverWillShow if there is not content view controller.
- Removed unused _shown instance variable.
- Removed redundant !_attachedWindow checks followed by _attachedWindow message that returns a BOOL.
- Documentation tweaks.
- Fixed up some demo issues.
2012-03-24 20:56:31 -07:00
Aparajita Fishman
c321084990
Whitespace
2012-03-24 17:57:13 -07:00
aparajita
e13d070439
Merge pull request #1483 from cacaodev/CFPropertyList-XML-date-deserialization
...
CPDate deserialization from XML Property List, with test.
2012-03-24 17:49:37 -07:00
Aparajita Fishman
1a8fc7f07f
CPPopover fixes/enhancements
...
- Lion-style popovers now zoom open just like their Lion counterparts (except for opacity, the browser couldn't handle that at the same time).
- Fixed a number of subtle drawing issues caused by not aligning path points correctly.
- The anchor arrow deals correctly with corner cases where the middle of the reference rect is not within the corners of the popover.
- Code cleanup: factored redundant code, removed unused code.
- Added corner cases to the demo app, changed demo app to reuse a single popover.
2012-03-23 19:53:46 -07:00
cacaodev
9ef95e1f68
Support for decoding date type in XML 1.0, with test.
2012-03-23 22:28:42 +01:00
aparajita
28ed2f9bd0
Merge pull request #1482 from cacaodev/CPViewController-bundle-fix
...
CPViewController The cib should be initialized with bundle information.
2012-03-23 09:30:23 -07:00
cacaodev
93f51eaa42
CPViewController The cib should be initialized with bundle information.
2012-03-23 10:09:48 +01:00
Aparajita Fishman
7c807dd887
Moved animationStyle to dedicated methods so they can be documented
2012-03-23 01:57:24 -07:00
Aparajita Fishman
429b42d3e0
Implement what is documented, that loadView without a cib name will create an empty view
2012-03-23 01:49:44 -07:00
Aparajita Fishman
08f013171e
CPPopover tweaks:
...
- Added animationStyle (Lion/iOS) to CPPopover. iOS style does not zoom open, it just appears.
- Tweaked the Lion animation a bit to be a bit less rushed and match Mac OS X timing better.
- Fixed some typos.
2012-03-23 01:49:01 -07:00
Aparajita Fishman
d620032d0d
Switch from CPRect/Point to CGRect/Point functions
2012-03-22 18:58:41 -07:00
Alexander Ljungberg
3bc5605633
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-03-23 00:35:00 +00:00
Alexander Ljungberg
3a0068186a
Implement stopping support for CPArray enumerateObjectsUsingBlock:.
2012-03-23 00:34:09 +00:00
Alexander Ljungberg
e19a782954
Test CPArray enumerateObjectsUsingBlock:.
2012-03-23 00:26:05 +00:00
Aparajita Fishman
88783efa7b
Needed an _isLazy flag to get correct behavior
2012-03-22 15:43:18 -07:00
Aparajita Fishman
a249588f52
UIKit does NOT call viewDidLoad from setView, made this explicit in the docs
...
viewDidLoad is meant to deal with asynchronous *lazy* instantiation of a view via a cib or loadView. setView is neither asynchronous nor lazy.
2012-03-22 14:22:20 -07:00
Alexander Ljungberg
2951a83e73
CPArray enumerateObjectsWithOptions:usingBlock:.
2012-03-22 17:05:59 +00:00
Aparajita Fishman
b99ece088d
Prevent doxygen from parsing @implementation within comments
2012-03-21 12:48:12 -07:00
Aparajita Fishman
ebd797d6d7
Documented need to use CPColorWithImages() instead of PatternColor()
2012-03-20 13:48:50 -07:00
aparajita
fa7a68f3f8
Merge pull request #1479 from aparajita/DOM-class
...
Put view class in the DOM
2012-03-20 13:02:55 -07:00
Aparajita Fishman
8167c46cfc
Added documentation for registerThemeValues methods
2012-03-20 12:51:30 -07:00
Aparajita Fishman
9456810c7e
Add registerThemeValues methods in CPView, allows runtime registration of theme values using same format used in ThemeDescriptors.j
2012-03-20 12:21:05 -07:00
Alexander Ljungberg
79f2ec5d17
Refs #1480 . Change NSSortDescriptors to CPSortDescriptors in docs.
2012-03-19 21:03:04 +00:00
Alexander Ljungberg
38a0a261c0
Merge pull request #1480 from Kentzo/cappuccino
...
---
2012-03-19 20:57:52 +00:00
Ilya Kulakov
91eb23ba87
Implement -sortedArrayUsingDescriptors: for CPSet.
2012-03-20 03:43:49 +07:00
Aparajita Fishman
706129bcbd
Implement a mechanism to display a DOM element's CPView class
2012-03-18 16:19:01 -07:00
Aparajita Fishman
97b77e9b7b
Changed to using data-cappuccino-view attribute
2012-03-18 15:33:19 -07:00
Alexander Ljungberg
3b85a67faf
Fixed: table column divider lines were drawn on top of the header bottom line.
2012-03-18 18:01:24 +00:00
Alexander Ljungberg
f2571e6536
Don't draw a table corner view if there is no vertical scrollbar.
...
This could either be due to autohiding or they usage of overlay scrollbars. Not showing it matches Cocoa and makes sense because it takes up space for no reason without the scrollbar.
2012-03-18 17:56:20 +00:00
Alexander Ljungberg
bec8a4b1c6
Fixed: scroll views with a bezel border had two strange dots in the upper corners instead of a Lion-like bezel.
2012-03-18 16:56:04 +00:00
Alexander Ljungberg
028fb03ef1
Slightly optimise scroll view border drawing code.
2012-03-18 16:41:39 +00:00
Alexander Ljungberg
65aa08a9d9
Format code.
2012-03-18 16:38:51 +00:00
Alexander Ljungberg
22058a7a93
New corner view test which tests more cases and demonstrates the actual code rather than a category.
2012-03-18 16:30:46 +00:00
Alexander Ljungberg
90514bd3cb
Test table view notifications for deselectAll. Verify absence of CPTableViewSelectionIsChangingNotification when changing programmatically.
2012-03-18 15:21:09 +00:00
Alexander Ljungberg
bd7d258fcd
Slightly less shiny outline view disclosure triangle. Subtle is more Cocoa like.
2012-03-18 14:15:40 +00:00
Alexander Ljungberg
c21e40e819
Simplify.
2012-03-18 14:13:15 +00:00
Alexander Ljungberg
e0c8ae6335
Minor outline view optimisation: don't apply a context rotation of 0 degrees.
2012-03-18 14:02:14 +00:00
Alexander Ljungberg
e9d5d33cb2
Fixed: blurry outline view disclosure triangle.
...
The triangle centring was such that for a regular size disclosure control the right pointing triangle (collapsed state) was not drawn on integral coordinates.
2012-03-18 14:00:38 +00:00
Alexander Ljungberg
0d9b49df85
Optimise CPIndexSet.
2012-03-18 00:44:02 +00:00
Alexander Ljungberg
db5e5d7da6
Test stopping CPIndexSet enumeration.
2012-03-18 00:39:07 +00:00
Alexander Ljungberg
44236795b5
CPIndexSet enumerateIndexesInRange:options:usingBlock:.
2012-03-17 18:18:08 +00:00
Alexander Ljungberg
a26bca5dbe
CPIndexSet enumerateIndexesWithOptions:usingBlock:.
2012-03-17 18:03:21 +00:00
Alexander Ljungberg
872b446695
CPIndexSet enumerateIndexesUsingBlock:.
2012-03-17 17:36:31 +00:00
Alexander Ljungberg
2b0ed8234c
Format code.
2012-03-17 17:19:37 +00:00
cacaodev
27cda34f8b
CPTableView: When columns or rows dragging ends, enqueue the dragged views so they can be available when you drag again the column if they haven't been unloaded before.
...
The 2nd time you drag the same column/row, reduces -dragViewFor... duration by 90% according to webkit profiling.
2012-03-17 16:10:54 +01:00
Aparajita Fishman
39ec1cfd27
Put the view's class in the DOM for easier debugging
2012-03-16 13:25:13 -07:00
Alexander Ljungberg
b7dcd24e11
Adjust size of spinner progress indicators properly in nib2cib.
2012-03-16 18:36:09 +00:00
Alexander Ljungberg
5097030143
Fixed: spinner style progress indicators were nib2cibbed to progress bars.
2012-03-16 18:23:47 +00:00
Alexander Ljungberg
516fac037f
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-03-15 00:14:39 +00:00
Alexander Ljungberg
1bf632a575
Rename shouldShowOutlineViewForItem to shouldShowOutlineDisclosureControlForItem.
...
ShouldShowOutlineView is not a great delegate method name for a control called an outline view. The original Cocoa name refers to an 'OutlineCell' which we don't have so that's not appropriate either.
2012-03-15 00:14:25 +00:00
Alexander Ljungberg
6137aa8637
Optimise shouldShowOutlineView.
2012-03-14 23:23:12 +00:00
Alexander Ljungberg
4be4506ffc
Implement outline view outlineView:shouldShowOutlineViewForItem: delegate method (corresponding to shouldShowOutlineCellForItem in Cocoa).
2012-03-14 23:08:01 +00:00
aparajita
d3c368ba92
Merge pull request #1477 from cacaodev/CFBundle-loadStatus-fix
...
CFBundle: isLoaded() should return a bool
2012-03-14 14:27:04 -07:00
cacaodev
9b0d03b024
CFBundle: isLoaded() should return a bool
2012-03-14 21:10:35 +01:00
Alexander Ljungberg
c21d2fd017
Fixed: toolbar search fields created in IB were cut in half height-wise due to a too small max size.
2012-03-14 16:02:25 +00:00
Alexander Ljungberg
2940b5e787
Fixed: nib2cibbed search fields had the bottom pixel cut off.
2012-03-14 15:58:35 +00:00
Alexander Ljungberg
cf18bcaaf9
Clean up.
2012-03-14 15:50:07 +00:00
Alexander Ljungberg
c4eaf083b4
Code formatting. Don't shadow compressor function name.
2012-03-13 20:29:38 +00:00
Alexander Ljungberg
df6b592d11
Refs #1474 . Allow -T argument before -- in objjc and document it in help.
...
Seems like all options should be before -- really.
2012-03-13 20:27:20 +00:00
Alexander Ljungberg
109e8b1e33
Merge pull request #1474 from ternarylabs/cappuccino
...
---
2012-03-13 20:06:33 +00:00
Alexander Ljungberg
85c88d7c93
Whitespace.
2012-03-13 20:03:11 +00:00
Alexander Ljungberg
d8e5fa3087
Merge pull request #1441 from cacaodev/cappuccino
...
---
With manual test.
See comments in the code about how to make bindings adoptions easier and avoid repeating code.
2012-03-13 19:58:29 +00:00
cacaodev
697a7b308a
CPColorWell : Implements CPValueBinding (color), supports markers.
...
With manual test.
2012-03-13 20:35:31 +01:00
Alexander Ljungberg
dcc031f23a
Fixed: small size toolbars in bridge windows didn't show the bottom shadow line.
...
Switched to using a somewhat vertically resizable three part image. The centre image part is being compressed which normally would look poor but you can't tell since it's a gradient.
2012-03-13 14:45:33 +00:00
Alexander Ljungberg
061ea47953
Test N-part image layout.
2012-03-13 13:51:01 +00:00
Alexander Ljungberg
f0e5161b7b
Tile narrow vertical three part images horizontally, and short horizontal three part images vertically.
...
This allows you to use a 1px wide vertical three part image to stretch to any width.
2012-03-13 13:36:52 +00:00
Alexander Ljungberg
eada36af26
More minor formatting.
2012-03-12 21:01:27 +00:00
Alexander Ljungberg
a02c687df9
Fix missing semicolon.
2012-03-12 20:14:11 +00:00
Alexander Ljungberg
e636087f4a
Fixed decodeBytesForKey in theory.
...
There's no way to encode bytes today in the first place.
2012-03-12 20:06:23 +00:00
Alexander Ljungberg
4876f77914
Refs #1476 . Format code.
2012-03-12 20:05:18 +00:00
Alexander Ljungberg
ed6bed9bf7
Format code.
2012-03-12 19:43:28 +00:00
Alexander Ljungberg
87cb2eb19d
Merge pull request #1476 from cacaodev/cappuccino
...
---
In nib2cib, this typo was preventing from decoding base64 data included in nib files.
2012-03-12 19:20:01 +00:00
Alexander Ljungberg
53334251b8
Fix a typo in CPGradient comment and attempt to better explain what's going on.
2012-03-12 12:04:34 +00:00
Alexander Ljungberg
a069f2945b
Optimise.
2012-03-11 22:13:05 +00:00
Alexander Ljungberg
5a0e1d7bb3
Support any angle in CPGradient drawInRect:angle:.
2012-03-11 19:40:22 +00:00
Alexander Ljungberg
ed1d77c86d
Skeleton CPGraphicsContext isFlipped.
2012-03-11 19:39:25 +00:00
Alexander Ljungberg
74054442a2
CPGradient initWithColors:.
2012-03-11 19:38:02 +00:00
Alexander Ljungberg
59ef8329c0
Handle CPGradient colorSpace argument.
2012-03-11 15:37:45 +00:00
Alexander Ljungberg
20cffaa7fe
Fix CPGradient angle.
2012-03-11 14:07:17 +00:00
Alexander Ljungberg
ebeb1040e8
Simplify CPGrahicsTest slightly by connecting delegates in IB.
2012-03-11 14:06:31 +00:00
Alexander Ljungberg
cdb919dea3
Add reference renderings to CPGraphicsTest. Add visual tests of CPGradient.
2012-03-11 13:13:50 +00:00
Alexander Ljungberg
c509e6131a
Fixed: CPGradient reversed its colours.
2012-03-11 13:12:17 +00:00
Alexander Ljungberg
db6a4d7042
Stub out CPView inLiveResize.
...
CPWindow should send `viewWillStartLiveResize` and `viewWillEndLiveResize` to make this work.
2012-03-10 12:43:47 +00:00
Alexander Ljungberg
a32b5ea72b
nib2cib support for table view background colour.
2012-03-10 12:02:17 +00:00
Alexander Ljungberg
58a2fce110
Code formatting.
2012-03-10 12:01:40 +00:00
Alexander Ljungberg
3d9ae42dbf
Starter CPGradient with drawInRect:angle:.
2012-03-10 11:55:13 +00:00
Alexander Ljungberg
c4a16d10bc
Starter CPColorSpace implementation.
2012-03-10 11:53:47 +00:00
Alexander Ljungberg
eeca40c6f0
Implemented CPColor colorWithSRGBRed:green:blue:alpha:.
2012-03-10 11:52:49 +00:00
Alexander Ljungberg
2a031e82a4
Constrain CPColor components to [0.0, 1.0].
2012-03-10 10:11:35 +00:00
cacaodev
0e6ce205ab
CPPropertyListSerializationTest for CPPropertyListXMLFormat_v1_0 format
2012-03-09 20:52:08 +01:00
Alexander Ljungberg
9acbe0f2f8
Fix incorrect parameter type.
2012-03-09 19:49:58 +00:00
Alexander Ljungberg
3ee9c1a439
Fixed misplaced var, formatting.
2012-03-09 19:17:28 +00:00
Alexander Ljungberg
0eeff20af6
Code formatting.
2012-03-09 16:52:21 +00:00
Alexander Ljungberg
a1cf9f1cd4
Table view cell layout test.
2012-03-09 15:36:21 +00:00
cacaodev
3897f422fe
Use setter
2012-03-09 15:22:19 +01:00
cacaodev
9d785d1a3c
CFPropertyList typo: CFData has _bytes, not bytes. In nib2cib, this typo was preventing from decoding base64 data included in nib files
2012-03-09 14:39:53 +01:00
Alexander Ljungberg
66f818872c
Simplify shadow view code.
2012-03-09 12:50:52 +00:00
Alexander Ljungberg
342bacb25c
Manual test for CPImageView with and without shadow.
2012-03-09 12:49:38 +00:00
Alexander Ljungberg
8e81be0319
Clean up.
2012-03-09 12:06:30 +00:00
Alexander Ljungberg
3acfa142bc
Merge pull request #1475 from miLibris/cappuccino
...
---
Remove CPShadowView constants in CPImageView
2012-03-09 12:00:05 +00:00
Alexander Ljungberg
94a58c810e
Calculate a default key view loop for windows loading from cibs even if autorecalculatesKeyViewLoop is NO.
2012-03-08 12:23:05 +00:00
Alexander Ljungberg
757a2bf400
nib2cib support for CPWindow autorecalculatesKeyViewLoop.
2012-03-08 12:05:12 +00:00
Luc Vauvillier
b18fbd685b
CPImageView : Remove shadow vars dependency
2012-03-08 12:49:31 +01:00
Alexander Ljungberg
56b5a9ec22
Make CPWindow autorecalculatesKeyViewLoop default to NO rather than null.
2012-03-08 11:39:59 +00:00
Georges Auberger
70432f0198
Added -T directive to enable ObjectiveJ.Preprocessor.Flags.IncludeTypeSignatures flag on preprocessor
2012-03-07 22:10:16 -08:00
Alexander Ljungberg
0736f86f32
Fixed: "[CPString count] unrecognized selector" error when binding an array controller's content array to a key of another AC's selection.
...
This change also avoids wrapping a selection proxy in a KVO array proxy, which isn't helpful and probably hurts performance.
2012-03-07 16:49:41 +00:00
Alexander Ljungberg
107d739489
Add support for checkbox placeholder bindings options.
2012-03-07 14:33:32 +00:00
Alexander Ljungberg
32a86a911f
Allow custom binders to set default placeholders.
...
This makes it easier to write custom binders.
2012-03-07 14:31:53 +00:00
Alexander Ljungberg
9a32733f88
Fixed: incorrect bindings option in array controller test.
2012-03-07 13:04:20 +00:00
Alexander Ljungberg
0f655e3264
Fixed: sending CPWindow setAutorecalculatesKeyViewLoop:NO caused the window to recalculate the key view loop.
...
Although the intention might have been to do 'one final calculation run to provide a sensible default', the result is unintuitive and does not match Cocoa's behaviour.
If the key view loop has been manually set up and the user then calls `setAutorecalculatesKeyViewLoop:NO` they don't expect their work to be overwritten.
2012-03-01 20:35:20 +00:00
Alexander Ljungberg
55a4afa341
Merge pull request #1471 from tfc/cappuccino
...
---
...and fixed my last documentation commit for CPSplitView.
2012-03-01 18:15:53 +00:00
Jacek Galowicz
3b5aa1a2ab
CPScrollView: Documented delegate methods
2012-03-01 18:44:51 +01:00
Jacek Galowicz
658e569251
Fix of last commit
...
My commit 1d8092e431 added some
documentation, but destroyed the order of the text.
2012-03-01 18:41:44 +01:00
Alexander Ljungberg
4eacfd83d6
Refs #1469 . Formatting.
2012-03-01 10:48:07 +00:00
Alexander Ljungberg
ad0fd0a34e
Merge pull request #1469 from tfc/cappuccino
...
---
This regards CPSplitViews new delegate method
- (BOOL)splitView: (CPSplitView)aSplitView shouldAdjustSizeOfSubview: (CPView)aSubView
which was introduced in b27a3cdbe5 by Alexander Ljungberg.
2012-03-01 10:44:51 +00:00
Jacek Galowicz
1d8092e431
Added a documentation line for CPSplitView.
...
This regards CPSplitView's new delegate method
- (BOOL)splitView: (CPSplitView)aSplitView shouldAdjustSizeOfSubview: (CPView)aSubView
which was introduced in b27a3cdbe5 by Alexander Ljungberg.
2012-03-01 08:46:06 +01:00
cacaodev
57c8d223ad
CPCollectionView dragging: fix a bug where the dragging view was created from content instead of selection
2012-02-29 18:45:11 +01:00
cacaodev
8641738777
Merge remote-tracking branch 'upstream/master' into CPCollectionView-dragged-view
2012-02-29 18:42:25 +01:00
Richard van Zon
ee190d07c5
Added support for directory symbolic links
2012-02-29 13:13:31 +01:00
Alexander Ljungberg
87cc62d1d8
Fixed with nib2cib: CPBox title position 'none' was converted to 'on top'.
2012-02-24 20:53:02 +00:00
Alexander Ljungberg
a16388b57d
Allow toolbar size to be changed even after the toolbar has been created.
2012-02-24 20:38:05 +00:00
Alexander Ljungberg
98e54d2e09
Support for "small" size toolbars (CPToolbar sizeMode).
...
Support only in nib2cib and coding ATM. Calling setSizeMode: on an existing toolbar will not have an effect.
2012-02-24 20:10:36 +00:00
Alexander Ljungberg
bd02ec057c
Style fix.
2012-02-24 19:44:26 +00:00
Alexander Ljungberg
6ac804d37c
CPWorkspace openFile and openURL.
2012-02-24 19:44:13 +00:00
Alexander Ljungberg
4b764dc8b4
Throw an exception when trying to set a null minimum item size for a collection view.
2012-02-17 16:25:16 +00:00
Alexander Ljungberg
3a8ad56d4b
Fixed: don't crash when loading a collection view with no item prototype view from a cib.
2012-02-17 16:23:59 +00:00
Alexander Ljungberg
f5bee48d98
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-02-17 14:26:56 +00:00
Alexander Ljungberg
24fbfbee60
Unit test for previous fix.
2012-02-17 14:26:28 +00:00
Alexander Ljungberg
a1bc5ad4d3
Fixed: app would freeze on collection view setSelectionIndexes:nil.
2012-02-17 14:23:21 +00:00
Alexander Ljungberg
4aa3824a2a
Minor collection view optimisation.
2012-02-17 14:05:03 +00:00
Aparajita Fishman
37d92c1182
Revert "Merge pull request #1438 from aradabaugh/master", it broke a few things
...
This reverts commit e081dbf127 , reversing
changes made to 71e8f0201a .
2012-02-16 08:21:31 -08:00
cacaodev
d581dec6cf
CPTabView: Do not track the segment when the delegate disallows item selection.
2012-02-13 00:32:22 +01:00
Antoine Mercadal
a0eadc6c4a
Merge branch 'CPStepper-nib2cib' of https://github.com/cacaodev/cappuccino into stepper-nib2cib
2012-02-11 16:08:27 +01:00
Alexander Ljungberg
fdf672cf0a
Include a toolbar in NibAppRemixed as a (very minimal) example.
2012-02-10 19:57:50 +00:00
Alexander Ljungberg
b8dacb1ffa
Fixed with nib2cib: toolbars with default items such as NSToolbarShowColorsItem didn't convert right.
2012-02-10 19:57:00 +00:00
Alexander Ljungberg
81a99dd190
Merge pull request #1454 from cacaodev/cappuccino
...
---
2012-02-10 15:47:30 +00:00
cacaodev
6a42d601c5
CPTabView: remove duplicate code.
2012-02-10 16:31:45 +01:00
cacaodev
59ce74a3df
CPTabView : _selectedIndex was undefined after decoding an empty tab view (no items).
...
A visible bug was that the first item added was not immediately selected. Updated CPTabViewNib example, shows the bug fixed.
2012-02-10 16:29:50 +01:00
Alexander Ljungberg
eacee00fc8
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-02-08 15:58:00 +00:00
Alexander Ljungberg
fe70a5541e
Fixes #1450 : a scroll view with non hiding legacy scrollbars would crash if the document view had a size of 0 pixels in either dimension.
2012-02-08 15:52:59 +00:00
Alexander Ljungberg
c9d4089b9a
Throw an exception when trying to set a scroller's knob proportion to NaN or Inifinity.
2012-02-08 14:54:50 +00:00
Alexander Ljungberg
8fdb872605
Clean up.
2012-02-08 13:48:43 +00:00
Antoine Mercadal
8b28041cf0
Merge pull request #1449 from cacaodev/CPControllerSelectionProxy-typos
...
CPControllerSelectionProxy: accidental globals.
2012-02-07 08:37:59 -08:00
cacaodev
4d3f8c3c8c
CPStepper: nib2cib support, with test.
2012-02-07 16:38:48 +01:00
Antoine Mercadal
f8cb4a15cb
Merge pull request #1446 from cacaodev/CPArrayController-setSelectionIndexes-fix
...
CPArrayController : setAvoidsEmptySelection:YES should not apply when setting an empty selection explicitely. With tests.
2012-02-03 01:30:01 -08:00
Randall Luecke
dd7d36da43
call layoutSubviews when the tableview lays out its subviews.
2012-02-02 19:34:11 -05:00
cacaodev
12201d38f3
CPArrayController : setAvoidsEmptySelection:YES should not apply when setting an empty selection explicitely. With tests.
2012-02-03 00:48:49 +01:00
Randall Luecke
3b4ad1d583
Remove 2nd call to setHeaderView:
2012-02-02 17:06:31 -05:00
cacaodev
d44df8a9da
CPControllerSelectionProxy: accidental globals.
2012-02-02 10:50:26 +01:00
Ross Boucher
ab88f72827
Merge pull request #1445 from cacaodev/CPFont-cleaning
...
CPFont: fix typo in fontWithName:size: caching, rearrange constructor methods. With test.
2012-02-01 12:58:03 -08:00
cacaodev
75a00e8c4a
CPFont: fix typo in fontWithName:size: caching, rearrange constructor methods. With test.
2012-02-01 14:05:37 +01:00
Randy Luecke
76c5500488
Merge pull request #1444 from lynnchin/patch-1
...
Update line 171 to remove "%s" to populate the result string.
2012-02-01 00:15:24 -08:00
lynnchin
8cb7c05c88
Update line 171 to remove "%s" to populate the result string.
2012-02-01 19:13:59 +11:00
Randy Luecke
e081dbf127
Merge pull request #1438 from aradabaugh/master
...
Enable additional buttonTypes for CPButton
2012-01-31 22:23:42 -08:00
Ross Boucher
71e8f0201a
Merge pull request #1443 from rafnocx/master
...
CPFont.j typo (line 180)
2012-01-31 20:04:28 -08:00
rafnocx
c9ecb20b50
fix CPFont constructor (line 180) possible typo
2012-02-01 13:14:56 +11:00
Randall Luecke
7dc213995c
Added CPObject's performSelector:withObject: and tests
2012-01-31 16:35:49 -05:00
aradabaugh
bea34a9b35
Removes duplicate action for radioGroup.
2012-01-30 00:26:46 -07:00
aradabaugh
5ae405a89b
Add visual test for CPButton buttonTypes.
2012-01-30 00:17:58 -07:00
Alexander Ljungberg
66fcbe7871
Visual CPSplitView test.
2012-01-27 20:58:54 +00:00
Alexander Ljungberg
b27a3cdbe5
Rewritten split view resizing which plays well with a mix of fixed size and non-fixed size panes.
2012-01-27 20:44:38 +00:00
Alexander Ljungberg
9d7b822409
Add support for split view shouldAdjustSizeOfSubview: delegate method.
2012-01-27 17:04:04 +00:00
Alexander Ljungberg
ab3f260757
Fixed: CPSplitView tried to auto save even without an auto save name.
2012-01-27 16:38:17 +00:00
Alexander Ljungberg
b26b0a321b
Reinstate defensive coding for numeric parameters in CPTableView.
2012-01-27 14:54:10 +00:00
Alexander Ljungberg
9536858599
Unit test CPSplitView.
2012-01-27 14:47:00 +00:00
Alexander Ljungberg
c7d3ccb13a
Add missing header to CPTabView.
2012-01-27 12:33:07 +00:00
Alexander Ljungberg
a081f98fd1
Refs #1440 . Whitespace cleanup.
2012-01-27 12:32:11 +00:00
Alexander Ljungberg
7096ea549e
Merge pull request #1440 from cacaodev/cappuccino
...
---
- selectedTabViewItem should return nil when there are no items (i.e. _selectedIndex == CPNotFound).
Added an empty Tab View to CPTabViewNib test app.
Needs a jake sudo-install for changes to take effect.
2012-01-27 12:26:27 +00:00
Alexander Ljungberg
8e007985a1
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-01-27 12:20:17 +00:00
Alexander Ljungberg
e03e774113
Format delegate signatures in collection view documentation.
2012-01-27 12:19:52 +00:00
cacaodev
7a41282912
CPTabView: Fix a bug where a CPTabView would not reflect immediately the replacement of the selected item's view.
...
Updated CPTabViewNib to show a setView: on the current item.
If the view changes on a non selected item, the tabView content will be
updated when this item is selected.
2012-01-26 14:45:42 +01:00
cacaodev
c8f8c01d2f
CPTabView : _setTabView: on newly decoded CPTabViewItems
...
A CPTabViewItem needs to know about its tabView.
2012-01-26 14:34:52 +01:00
cacaodev
7f6db7bf98
CPTabView: Fix a bug where -selectedTabViewItem was raising instead of returning nil when no tab items (i.e. _selectedItemIndex = -1) and causing nib2cib to fail.
...
Added An empty Tab View to CPTabViewNib test app.
Needs a jake sudo-install for changes to take effects.
2012-01-26 10:44:46 +01:00
aradabaugh
e058efb622
Correcting minor whitespace styling.
2012-01-25 11:40:15 -07:00
cacaodev
bafd62d42d
CPCollectionView Implemented - (CPView)draggingViewForItemsAtIndexes:(CPIndexSet)indexes withEvent:(CPEvent)event offset:(CGPoint)dragImageOffset
...
and the corresponding delegate method from where you can ask for the default dragged view. Multiple selection not implemented yet.
2012-01-25 17:25:23 +01:00
aradabaugh
c14643849f
Minor style change.
2012-01-24 22:51:32 -07:00
aradabaugh
edd09ef06a
Enables additional buttonTypes for CPButton
2012-01-24 22:50:01 -07:00
Randy Luecke
d06fccf157
Merge pull request #1436 from aradabaugh/master
...
Fixes CPShadowView shadowViewEnclosingView to use self instead of shadowView
2012-01-20 12:37:38 -08:00
aradabaugh
6bc3d49ba2
Correcting use of self in CPShadowView shadowViewEnclosingView:
2012-01-20 13:33:24 -07:00
aradabaugh
a8d8736899
Fixes CPShadowView shadowViewEnclosingView to use self instead of shadowView.
2012-01-20 00:33:40 -07:00
Randall Luecke
b1e4a43cd3
Fixed and finished the documentation for CPSet and CPMutableSet.
2012-01-19 01:19:20 -05:00
Antoine Mercadal
eafbebcebb
fix crash when setting title while to content view is set
2012-01-16 14:19:09 +01:00
Antoine Mercadal
0c72c52ba2
improve manual test of CPBox
2012-01-14 12:31:28 +01:00
Antoine Mercadal
e8194d9c2e
Fix some sizing problem with CPBox titles. close #1431
2012-01-14 12:31:12 +01:00
Antoine Mercadal
f0e1b67197
Merge remote-tracking branch 'upstream/master'
2012-01-13 13:56:16 +01:00
Antoine Mercadal
7ba27cf617
Add manual test for CPBox title
2012-01-13 13:52:31 +01:00
Antoine Mercadal
c9f765645c
Support for CPBox title in nib2cib
2012-01-13 13:52:12 +01:00
Antoine Mercadal
5daa8cb289
Support for title in CPBox. close #1428
2012-01-13 13:51:50 +01:00
Aparajita Fishman
789d832808
Tab -> spaces
2012-01-12 18:44:19 +06:30
cacaodev
0908139218
Merge branch 'master' of git://github.com/cappuccino/cappuccino into CPRulePredicateEditor
2012-01-07 09:39:34 +01:00
cacaodev
926bcfb514
CPRuleEditor : Moved _CPRuleEditor*Button customization from class to controller and added initWithCoder methods.
2012-01-06 22:49:42 +01:00
Antoine Mercadal
d7971322cb
Merge pull request #1291 from miLibris/CPTheme-coding-fixes
...
_CPThemeAttribute fix : encode missing _defaultTheme value
2012-01-06 07:21:09 -08:00
Antoine Mercadal
6ddeb167b3
Merge pull request #1424 from anddam/master
...
Edit in press utility.
2012-01-06 07:20:30 -08:00
Andrea D'Amore
c1be09c692
press: fixing basedir being added twice to png destination path
2012-01-06 15:25:54 +01:00
Aparajita Fishman
1c2a304ee5
Assignment of function is a statement and should be semicolon terminated. Some miscellaneous linting as well.
2012-01-05 17:51:37 -10:00
Antoine Mercadal
1a51acf2fc
fix doc style under Windows. Thanks to @jakemarsh (fork removed). close #1401
2012-01-03 17:21:02 +01:00
Antoine Mercadal
47a5296f0b
Merge pull request #1405 from applicaster/linux_rhino
...
Compilation problems on ubuntu
2012-01-03 07:47:32 -08:00
Antoine Mercadal
1189e8c849
Merge pull request #1422 from cacaodev/CPPredicate
...
CPCompoundPredicate -isEqual: typo.
2012-01-02 03:22:02 -08:00
cacaodev
8d59fc1334
CPPredicateEditor tests: updated xib to Xcode 4.2 and nib2cibed.
...
SmartFoldersDemo: disable the size-to-fit like feature in the controller because 1/ CPPredicateEditor should have its own sizeToFit and 2/ It was shadowing other resizing bugs.
2011-12-31 17:19:14 +01:00
cacaodev
ce2316a8ee
CPCompoundPredicate: Fixed typo in -isEqual:. With test.
2011-12-31 16:19:38 +01:00
cacaodev
0aae4f2627
Merge branch 'master' of git://github.com/cappuccino/cappuccino into CPRulePredicateEditor
2011-12-31 15:37:59 +01:00
Alexander Ljungberg
ec9ddc0819
Merge pull request #1421 from cacaodev/cappuccino
...
---
2011-12-31 13:27:45 +01:00
cacaodev
a5bd55dcac
Rename CPExpression_* classes in NSExpression.j (nib2cib)
2011-12-31 09:33:12 +01:00
Alexander Ljungberg
b0b1bd88a6
Fix clean up, clean up more.
2011-12-29 20:18:40 +01:00
Alexander Ljungberg
75d5619abd
Clean up.
2011-12-29 20:12:11 +01:00
Alexander Ljungberg
522a641690
Merge pull request #1420 from cacaodev/cappuccino
...
---
Added isEqual:
Renamed CPExpression classes
Fixed -filteredArrayUsingPredicate: for proxy arrays.
2011-12-29 20:04:35 +01:00
cacaodev
fe1bd1a978
Cleanup: removed log statements, some comments, css transition hack for fading the drop line separator.
2011-12-29 18:44:06 +01:00
cacaodev
b39f509263
CPArray (CPPredicate): -filteredArrayUsingPredicate: and -filterUsingPredicate:
...
Use CPArray methods (not js array) because the receiver can be a CPArray subclass. With tests.
Fixes the bug reported here: https://groups.google.com/forum/?pli=1#!topic/objectivej/8q9hqbZZUv0
2011-12-29 17:16:53 +01:00
cacaodev
7a8173bf6f
CPRuleEditor : Fixes a bug where a rule editor embedded in a scroll view was not updating its frameSize when rows where added/removed.
...
Reported here: https://groups.google.com/d/msg/objectivej/G2MFGGSHaOY/ojcQaoNSpcAJ
I also adjusted the plus button right padding to give enough space for the scroller.
Edited CPRuleEditorCibTest xib to unhide the vertical scroller.
2011-12-25 22:16:01 +01:00
cacaodev
1ea95bf6e0
CPExpression: renamed private classes to follow naming rules.
2011-12-17 16:10:06 +01:00
cacaodev
08d690b65d
Completed isEqual: support for CPExpression & CPPredicate subclasses
2011-12-17 15:37:43 +01:00
cacaodev
edf07a8fbc
CPRuleEditor: In -initWithFrame: the _CPRuleEditorLocalizer was not initialized by default.
2011-12-17 15:28:41 +01:00
cacaodev
fab7d41446
CPRuleEditor: renamed private class RowObject -> _CPRuleEditorRowObject
2011-12-13 10:32:34 +01:00
cacaodev
f33a55f1d0
CPPredicateEditor: bindings compatibility. Send control action only after a UI interaction to prevent sending unwanted notifications to the binder.
...
Send action through the responder chain even if target or action is nil. CPControl relies on this to send updates to the binder.
2011-12-13 10:32:34 +01:00
cacaodev
96a3eef4e1
CPRuleEditor IE7/8/9 compatibility, closes #1279
2011-12-13 10:32:22 +01:00
cacaodev
93dc4d1bc9
CPRuleEditor: -bind:toObject:withKeyPath:options: removed a useless check that was causing an exception when keyPath was a compound key path.
...
CPPredicateEditor test app: bind textfield and editor to a CPObjectController.
2011-12-13 09:54:24 +01:00
cacaodev
d973670026
CPPredicateEditor: - Templates merging. Means that from the same left item you can have different views on the right:
...
* date is (today, yesterday)
* date is less than [text field]
- CPPredicateEditorCibTest example: templates merging in the 'mixed' criterion.
- ojtest AppKit/CPPredicateEditorTest testing the merging feature.
- Cleaned and rearranged code related to the right control action method.
- re-enable tooltips.
2011-12-13 09:50:26 +01:00
cacaodev
c327956537
CPRuleEditor: Since commit 2b52f7d, CPRuleEditor's delegate method -ruleEditor:displayValueForCriterion:inRow: is more restricive: you must return the same view object for a specific criterion in a given row.
...
In CPRuleEditorCibTest, the delegate has been updated to follow this rule, it also fixes a bug where the predicate was not correctly handling custom control values.
2011-12-13 09:49:35 +01:00
Randy Luecke
80f5ab09f3
Merge pull request #1410 from vhbit/master
...
Fixed a bug when changing selection in CPPopUpButton wasn't propagated back to bound object
2011-12-10 20:22:02 -08:00
Randy Luecke
5c8f201a92
Merge pull request #1406 from james-dessart-hb/master
...
Issue #1297 - fixing CPBrowser selection when using up/down arrow keys
2011-12-10 20:21:06 -08:00
Randy Luecke
cf777d7f41
Merge pull request #1417 from BlairDuncan/master
...
Unnecessary globals
2011-12-10 20:20:22 -08:00
Blair Duncan
bb7876759a
unnecessary globals
2011-12-10 23:10:22 -05:00
Aparajita Fishman
800d6498d6
Added some missing semicolons
2011-12-10 10:48:54 -08:00
Aparajita Fishman
0648b4279f
Added usage documentation for Framework.j
2011-12-10 09:48:08 -08:00
Antoine Mercadal
1a73abe7c3
Merge pull request #1267 from primalmotion/nib2cib-do-not-truncate-bold-labels
...
Do not truncate bold labels.
So this is a temp fix as @aparajita has a better way to handle this. As the patch is very straightforward, it will be easy to revert it when a more correct fix will come up. But while waiting, I think it's a good idea to have correct displaying of the bold labels.
2011-12-07 10:23:06 -08:00
Valerii Hiora
cce4f7883c
Merge branch 'master' of git://github.com/cappuccino/cappuccino
2011-12-07 09:58:36 +02:00
Alexander Ljungberg
3dff67e0b1
Faster CPNotificationCenter removeObserver.
...
Removing observers is now faster, significantly so when there are very many observers and one or more is removed while a notification is being posted.
2011-12-07 01:48:16 +00:00
Alexander Ljungberg
24326883ca
More extensive Notification Center tests.
2011-12-07 01:38:41 +00:00
Alexander Ljungberg
a5854f129d
Fixes #1411 . In IE, no table/outline view selection highlights would render for certain CIBs.
...
This fix also enables `setSelectionHighlightStyle: CPTableViewSelectionHighlightStyleSourceList` in Internet Explorer. Even that the gradient effect can't be rendered and the fallback regular rendering will be used, the proper field value might still be useful for subclasses or saving out to CIBs etc.
2011-12-06 23:29:57 +00:00
Alexander Ljungberg
052c07f3e3
Refs #1412 , #1413 . Manual test for the last two fixes.
2011-12-06 23:26:13 +00:00
Alexander Ljungberg
9367566e61
Fixes #1412 . IE rendered clearColor shadows in black.
2011-12-06 23:01:26 +00:00
Alexander Ljungberg
107103bcbb
Fixes #1413 : Internet Explorer colorWithCSSString crash.
...
Syntax such as [[CPColor colorWithCSSString:@"rgba(0,0,0,0.5)"] cssString] lead to a CSS string incompatible with browsers without the CSS rgba feature.
2011-12-06 22:45:26 +00:00
Alexander Ljungberg
20ae47971c
Missing semicolons.
2011-12-06 22:43:00 +00:00
Valerii Hiora
d4ecb03d15
Fixed: On changing selection of CPPopUpButton value wasn't reverse
...
transformed to binded object
2011-12-06 22:41:30 +02:00
James Dessart
f4eb47519d
Issue #1297 : Added tableViewSelectionDidChange: to the table view delegate in order to propagate keyboard-driven selection changes up to the browser
2011-12-02 15:46:07 -04:00
Alexander Ljungberg
e37bfeeb09
Merge branch 'master' of github.com:cappuccino/cappuccino
2011-12-01 18:18:29 +00:00
Alexander Ljungberg
bb0972ba49
Fixed: notifications were sent to removed observers.
...
If one observer of a notification centre notification removed another observer, that other observer would still be notified even that it was no longer observing.
Now the code agrees with its comments.
2011-12-01 18:18:15 +00:00
Antoine Mercadal
ddc5994869
tooltips are now themable.
2011-11-28 12:05:43 +01:00
Darrell Walisser
a2eb9e728c
Various fixes for sheet bugs
...
-handle attempt to close sheet while it is animating in
-fixes Safari 5.1 animate out bug by using a timer to
initiate the in/out process
-allow window shadow to become 0 width/height for smoother animation
2011-11-24 19:28:04 -05:00
lowell
2169ba35ad
[XcodeCapp] Silenced build warning: -[id<NSTableViewDelegate> tableView:heightOfRow:] expects an NSInteger for the second argument.
2011-11-24 13:59:39 -08:00
lowell
50b447b05d
[XcodeCapp] App controller should conform to NSTableView data source and delegate protocols. Protocol methods don't need to be declared in the adopting class' interface because they will have already been declared in the protocol declaration.
2011-11-24 13:58:03 -08:00
Antoine Mercadal
bc14ad6b9d
small improvments in XcodeCapp, including handling quick remove/create existing files
2011-11-24 17:59:09 +01:00
Neer Friedman
ffa33788c4
enquote ENVIRONMENTS environment variable
2011-11-24 18:04:26 +02:00
Neer Friedman
23c9c6bf44
concat command parts in Objective-j/Jakefile
2011-11-24 18:03:20 +02:00
dwalisser
604a49634d
Merge remote-tracking branch 'upstream/master'
2011-11-24 09:43:10 -05:00
Alexander Ljungberg
476c02976b
Code formatting.
2011-11-23 00:28:27 +00:00
Aparajita Fishman
6ac28e1a77
A few text tweaks to make the prompts more friendly.
2011-11-18 01:02:32 -08:00
Antoine Mercadal
4ec7cea6c4
update doxygen displayed Cappuccini version to 0.9.5
2011-11-16 15:12:22 +01:00
Alexander Ljungberg
0036f329f5
Fixed: in recent builds, WithBindingsTest failed with a "CPScroller does not contain theme attribute 'scroller-width'" error.
2011-11-16 12:57:01 +00:00
Alexander Ljungberg
15af54efda
Fixed with CPTokenField: quickly entered tokens would be ignored.
...
If the autocomplete state had not been set yet, tokens could not be finished using the token separator, return or tab. Instead the user typed text remained in its 'non token' state.
2011-11-16 12:52:27 +00:00
Alexander Ljungberg
07966bb7fe
Fixed with CPTokenField: crash if added to a window in a unit test.
2011-11-16 12:50:05 +00:00
Alexander Ljungberg
e7d9b0503b
Fixes #1398 . Fixed with CPTokenField: deleting tokens in front of selected tokens would shift the selection to the right.
2011-11-16 12:04:03 +00:00
Alexander Ljungberg
072b43d178
Fixes #1397 . Fixed with CPTokenField: make sure selection is initialised when loading from cib.
2011-11-16 11:55:38 +00:00
Alexander Ljungberg
281d2295ae
Code formatting.
2011-11-15 23:47:56 +00:00
Darrell Walisser
3c7783f97c
Revert "-fix uninitialized _selectedRange member when loading from cib",
...
putting in another branch
This reverts commit 2a82703e46 .
2011-11-15 10:31:44 -05:00
Darrell Walisser
2a82703e46
-fix uninitialized _selectedRange member when loading from cib
2011-11-15 10:14:07 -05:00
Alexander Ljungberg
79cf4370b4
Update bootstrap to 0.9.5 as well.
2011-11-14 18:49:30 +00:00
Alexander Ljungberg
6217fc8459
Given the large number of changes, this will be Cappuccino 0.9.5 instead.
2011-11-14 18:37:00 +00:00
Alexander Ljungberg
f1fd3d170a
Merge branch '0.9.2b' of github.com:cappuccino/cappuccino into 0.9.2b
2011-11-14 18:27:08 +00:00
Antoine Mercadal
4e410f8a81
Merge remote-tracking branch 'upstream/0.9.2b' into 0.9.2b
2011-11-14 16:46:36 +01:00
Antoine Mercadal
7a1b273d8d
simplify the ignored path matching
2011-11-13 23:34:49 +01:00
Antoine Mercadal
820531342d
fix during tidying shadow files
2011-11-13 21:58:45 +01:00
Antoine Mercadal
353db3277a
fix file level mode deactivated, fix auto ignore not working
2011-11-13 21:36:52 +01:00
Antoine Mercadal
82f37549ae
reactivate 10.7 file level API
2011-11-13 20:28:11 +01:00
Alexander Ljungberg
09e1bd6bf1
The 0.9.2 GM will be tagged v0.9.2 simply.
2011-11-11 16:52:48 +00:00
Alexander Ljungberg
44f3abf262
Don't mention "steam" in TOOLS-README.
2011-11-11 16:45:43 +00:00
Antoine Mercadal
8c09af5013
Merge remote-tracking branch 'upstream/master'
2011-11-10 14:11:12 +01:00
Antoine Mercadal
0781e932c6
Merge branch 'xcc-improvments'
2011-11-10 14:10:45 +01:00
Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Alexander Ljungberg
b1f6f3ddfa
Missing semicolons.
2011-11-10 12:30:05 +00:00
Alexander Ljungberg
7147266ddf
objjc option to compile to plain JavaScript (suitable for linting).
2011-11-10 11:59:26 +00:00
Alexander Ljungberg
357212bff7
Missing semicolons.
2011-11-10 11:34:26 +00:00
Alexander Ljungberg
ed4fc3b20f
objjc compile to stdout, argument parsing, --help.
2011-11-10 10:37:46 +00:00
Alexander Ljungberg
7e8b71dd52
Semicolons.
2011-11-10 10:36:47 +00:00
Alexander Ljungberg
267f00bfe1
Put spaces around = in [name] = function... generated JS to reduce lint warnings.
2011-11-10 09:41:21 +00:00
Alexander Ljungberg
8f90dbce99
Allow almost anything as a key equivalent unless a text field is the first responder.
...
After testing in Cocoa, even unexpected keys such as tab can be used when a text field isn't selected. Some keys such as the arrow keys and escape act like key equivalents even with a text field active.
2011-11-10 00:52:38 +00:00
Alexander Ljungberg
00485dba89
Refs #1019 . Clean up.
2011-11-10 00:12:48 +00:00
Alexander Ljungberg
8fd4f5e4b6
Merge branch 'master' of github.com:cappuccino/cappuccino
2011-11-09 23:36:47 +00:00
Scott Rice and Alexander Ljungberg
e7e69b3fd4
Fixed issue #1019 in IE
2011-11-10 07:35:50 +08:00
Alexander Ljungberg
2463c1dc05
IE compatibility.
2011-11-09 23:02:31 +00:00
Alexander Ljungberg
bc590286f2
Missing semicolons.
2011-11-09 22:55:11 +00:00
Aparajita Fishman
8c83816ec8
Made [CPMenu -removeAllItems] KVO compliant
...
Fixes https://github.com/cappuccino/cappuccino/issues/1395
2011-11-09 14:50:52 -08:00
Alexander Ljungberg
699069ce8f
Typo fix.
2011-11-09 20:48:01 +00:00
Alexander Ljungberg
ec0cd22c1d
Merge pull request #1382 from kjamieson/cappuccino
...
---
Currently CPTextField only updates its internal string value from the actual HTML input element on a keyUp event. If the CPTextField loses focus before the keyUp event is received, the internal value does not get updated and any text entered since the last keyUp event is lost.
This is easily reproduced when editing a text field by quickly entering text and hitting the enter/return key to insert a new line (before the keyUp event has fired), or when holding down a key (to repeatedly enter the same character), and then tabbing out of the text field -- the value gets reset to whatever the value was before the key was held down.
This fix changes CPTextField#insertNewLine and CPTextField#resignFirstResponder to reload the string value from the input element if it has changed (in the same way as if a keyUp event had been triggered)
2011-11-09 20:43:13 +00:00
Antoine Mercadal
8da3a8866d
remove white space
2011-11-08 23:07:41 +01:00
Antoine Mercadal
21f6fdff48
synchronize support folder if missing shadow files
2011-11-08 23:05:51 +01:00
Antoine Mercadal
ed82a1fc87
remove useless argument
2011-11-08 22:45:00 +01:00
Antoine Mercadal
1fa143453d
Merge branch 'xcc-improvments' of github.com:primalmotion/cappuccino into xcc-improvments
2011-11-08 22:37:32 +01:00
Antoine Mercadal
1240bab7ed
typo in help (ref to xcodecapp-cocoa)
2011-11-08 22:35:11 +01:00
Aparajita Fishman
4af29d83d7
Merge branch 'xcc-improvments' of github.com:primalmotion/cappuccino into xcc-improvments
2011-11-08 13:32:23 -08:00
Aparajita Fishman
6aed29af91
Fixed ignore paths to be safe, new help file
2011-11-08 13:30:21 -08:00
Aparajita Fishman
37f1f50000
Fixed ignore paths to be safe, new help file
2011-11-08 13:25:48 -08:00
Aparajita Fishman
a93654c66b
Cleaned up event handling, fixed bug with shadow paths
2011-11-08 11:36:41 -08:00
Alexander Ljungberg
0d2dd94c81
Refs #1394 . Don't attempt MacPorts autoreconf fix if the right autoconf isn't available.
2011-11-08 14:21:28 +00:00
Alexander Ljungberg
c2f97e9aa3
Make 80 character line wrap more consistent throughout bootstrap.
2011-11-08 12:35:26 +00:00
Alexander Ljungberg
e04bf6de95
Merge pull request #1394 from anddam/cappuccino
...
---
adding autoreconf to fix issues reported at [1]
[1] http://groups.google.com/group/objectivej/browse_thread/thread/b0cddeb1046bfcf4/3f0b0cbbe57ed64b
Conflicts:
bootstrap.sh
2011-11-08 11:55:47 +00:00
Alexander Ljungberg
38499c006a
Merge branch '0.9.2a'
2011-11-07 23:06:04 +00:00
Alexander Ljungberg
80cac38682
0.9.2 installation instructions.
2011-11-07 22:58:43 +00:00
Alexander Ljungberg
2b16d36aa2
Same as previous commit but for real.
2011-11-07 21:41:22 +00:00
Alexander Ljungberg
dc9d49a12c
GCC is not required to merely install Cappuccino.
2011-11-07 21:39:11 +00:00
Alexander Ljungberg
03c81dfa9c
Merge branch 'master' of github.com:cappuccino/cappuccino
2011-11-07 21:18:00 +00:00
Alexander Ljungberg
b096e5dd0a
Talk even less about Narwhal. Give the logo some space.
2011-11-07 21:12:06 +00:00
Antoine Mercadal
7ae519145f
some processing optimizations
2011-11-07 22:03:48 +01:00
Antoine Mercadal
592c3c1652
try to deactivated the kFSEventStreamCreateFlagNoDefer flag in FSEventStream
2011-11-07 21:36:43 +01:00
Antoine Mercadal
e940f294a6
store the last eventID before processing anything to avoid mutliple events
2011-11-07 21:20:39 +01:00
Antoine Mercadal
759de8f45f
remove debug print
2011-11-07 21:11:27 +01:00
Antoine Mercadal
c92c6c37f7
if we were not able to know what event file it is, just consider it's a modification
2011-11-07 21:08:08 +01:00
Antoine Mercadal
f425601043
fix bug with undescores in project path. Readd the project.pbx (not so useless) :)
2011-11-07 20:12:23 +01:00
Aparajita Fishman
68ba089a26
Cleanup Debug dialog, insert Debug… item below Help
2011-11-07 11:08:37 -08:00
Alexander Ljungberg
5ff7169546
Don't suggest changing NARWHAL_ENGINE to jsc if it's already jsc.
2011-11-07 19:00:20 +00:00
Alexander Ljungberg
7365a95b4d
Friendly welcome screen.
...
Thanks to primalmotion.
2011-11-07 18:57:10 +00:00
Antoine Mercadal
788427ec09
Preference is now Debug, and is only active when XCC is launch while holding Option key
2011-11-07 19:52:02 +01:00
Alexander Ljungberg
01ed8ad583
Bootstrap without tusk. Reduce visibility of narwhal.
...
The tusk ecosystem is not maintained anymore within the Cappuccino community. The new installation system is not very elegant but it makes it very easy to release new versions of Cappuccino, while taking the first step on the road towards node.js.
2011-11-07 18:35:29 +00:00
Alexander Ljungberg
f516ba7a7d
This is Cappuccino 0.9.2.
2011-11-07 18:33:17 +00:00
Andrea D'Amore
ab5603bd5a
adding autoreconf to JSC's builtin libedit
2011-11-07 17:31:22 +01:00
Antoine Mercadal
5c560e82b3
ensure attached window is not nil when positioning or instanciate it
2011-11-07 15:05:34 +01:00
Antoine Mercadal
263a94af18
remove useless pbxproj that was provoking a warning at build
2011-11-06 10:58:43 +01:00
Antoine Mercadal
9d1cf360b6
rename folder to XcodeCapp and update Jakefiles
2011-11-06 10:54:19 +01:00
Antoine Mercadal
60f664a5c2
rename project to XcodeCapp
2011-11-06 10:48:32 +01:00
Antoine Mercadal
a1c7aa7790
Merge remote-tracking branch 'upstream/master'
2011-11-05 16:55:22 +01:00
Antoine Mercadal
a29096ca5c
Some other improvments
...
- Add preferences window
- Allow user to choose to use the 10.6 mode on 10.7
- Allow user to choose if he wants to resume listening at startup
- Allow use to choose if XCC should react to inode modification (file level API)
- Support for clean mirrored path when origin files has some _ in their names
- Other various fixes
2011-11-05 16:46:34 +01:00
Antoine Mercadal
0ef64f4091
support for NSProgressIndicator. close #1385
2011-11-05 13:41:16 +01:00
Johannes Fahrenkrug and Antoine Mercadal
945deeba60
added a missing @ for the divider-color theme attribute of _CPCornerView. It broke jake (sudo-)install
2011-11-05 07:41:01 +08:00
Antoine Mercadal
aa775675b5
add manual test for zombie group rows ( #1376 )
2011-11-05 00:25:23 +01:00
Antoine Mercadal
db76044880
fix zombie group rows style. closes #1376
2011-11-05 00:24:54 +01:00
Antoine Mercadal
edc58e358b
handle moving files when using file level API (10.7)
2011-11-04 23:23:16 +01:00
Aparajita Fishman
1133efb3f1
Merge branch 'refs/heads/cppopover-fix-transient-delegate-calls' into cappuccino
2011-11-04 12:50:30 -07:00
Aparajita Fishman
d524accc98
Fix typo, unintended globals, use constants for CPCoding keys
2011-11-04 12:50:00 -07:00
Aparajita Fishman
543f91dd6e
Fixed typos and error message
2011-11-04 12:09:07 -07:00
Randall Luecke and Aparajita Fishman
9848dabfa8
Fix typo in popover error.
2011-11-04 12:03:00 -07:00
Antoine Mercadal
bc59efc3ba
cleanup plist and shadow files under 10.6
2011-11-04 19:48:48 +01:00
Aparajita Fishman
9af63ca32f
Fixed compile warning
2011-11-04 10:53:23 -07:00
Aparajita Fishman
eb8a566ae8
Fixed support for 10.6
2011-11-04 10:44:01 -07:00
Aparajita Fishman
38eb3e489e
Merge branch 'xcc-improvments' of github.com:primalmotion/cappuccino into xcc-improvments
...
Conflicts:
Tools/xcodecapp-cocoa/AppController.m
Tools/xcodecapp-cocoa/TNXCodeCapp.m
Tools/xcodecapp-cocoa/defines.h
2011-11-04 09:16:52 -07:00
Aparajita Fishman
97f7eaf499
UI overhaul, first attempt at 10.6 compatibility.
2011-11-04 09:15:07 -07:00
Aparajita Fishman
d3356eea5c
Merge branch 'master' of github.com:cappuccino/cappuccino into cappuccino
...
Conflicts:
AppKit/CPPopover.j
2011-11-03 22:32:38 -07:00
Aparajita Fishman
7a57bd73c3
Fixed typos and error message
2011-11-03 22:30:54 -07:00
Randall Luecke
b517c93190
Fix typo in popover error.
2011-11-04 01:28:43 -04:00
Antoine Mercadal
7a9fded2e4
fallback into date mode in 10.6
2011-11-04 01:13:16 +01:00
Antoine Mercadal
8ed2096de7
update weird delegate name
2011-11-03 23:14:44 +01:00
Antoine Mercadal
791a1eb130
reactive support for 10.6 EXPERIMENTAL, this support may be removed very soon
2011-11-03 22:10:46 +01:00
Antoine Mercadal
9dab10ce19
Fixes
...
- Fixes all logic error
- Add sanity checks
- Drop useless and buggy chunck of code
2011-11-03 22:02:48 +01:00
Antoine Mercadal
fd95c2ced6
fix About window released when close
2011-11-03 20:19:53 +01:00
Antoine Mercadal
c32fef0eb9
forget to add hg and Build folders
2011-11-03 17:54:15 +01:00
Antoine Mercadal
c77b35c07b
Major XCC improvments
...
This patch contains the following:
- FSEvent is now at files level instead of folders level. This allows to drop the registry in plist and improve the performances
- When you remove a J file, the mirrored H file is removed too
- .xcodecapp-ignore has been added to the FSEvent stream. ignored token are updated in live
- By default XCC ignores all .git, .svn, .hg .xCodeSupport, Frameworks and Build folders
- When you quit XCC without stop listening of the project, at next launch it will resume on the same project
- Help has been added
- Help is displayed at first user launch
- The Error & Warning table doesn't pop ups automatically, instead it displays Growl (you can then open the panel for more informations)
- The code has been refactored into several classes, one for UI thing, another one for XCC worker
- Several bugs has been fixed
- The about window now displays the version number
- The main window has been removed
- Several other small enhancements.
This is XCC 2.0.
2011-11-03 17:47:33 +01:00
Antoine Mercadal
4303ea3584
cache delegates methods for _CPAttachedView
2011-11-02 16:59:34 +01:00
Antoine Mercadal
ddb6f63ea7
use coherent delegate name
2011-11-02 15:55:58 +01:00
Antoine Mercadal
06985a5b6c
fix test
2011-11-02 12:06:05 +01:00
Antoine Mercadal
4841f209b3
fix delegate methods not sent in transient mode when closing
2011-11-02 11:59:20 +01:00
Aparajita Fishman
7e6ed01dd2
Merge branch 'refs/heads/cpwindow-setmovable' into cappuccino
2011-10-31 12:41:32 -07:00
Aparajita Fishman
b7e41894af
fixed up the test app ui
2011-10-31 12:39:53 -07:00
Alexander Ljungberg
5dfcfc32e7
Fixes #1388 . Fixes #1389 . Make bootstrap.sh work again.
2011-10-29 11:59:18 +01:00
aparajita
fb74541796
Merge pull request #1388 from Ch00rD/master
...
A few simple updates to the install script and docs.
2011-10-28 20:51:56 -07:00
Sjoerd van Geffen
2f7b29593e
replaced "280north" by "cappuccino" for github install script and docs references.
...
Replaced "280north" by "cappuccino" for github username and all github
URL references in the install script and documentation.
2011-10-29 02:09:18 +02:00
Aparajita Fishman
7ce6b1cfda
CPBundleName and CPBundleVersion have to get set in the Jakefile
2011-10-28 16:56:47 -07:00
Aparajita Fishman
7ad1d14d15
Added CPBundleName to Info.plist
2011-10-28 11:30:13 -07:00
Antoine Mercadal
444c30e389
add manual test case
2011-10-28 17:56:37 +02:00
aparajita
06fc31c33b
Merge pull request #1322 from aparajita/framework-template
...
Framework capp template
2011-10-27 15:55:48 -07:00
aparajita
4c58077cee
Merge pull request #1321 from aparajita/capp-postinstall
...
Support for capp postinstall scripts
2011-10-27 15:55:13 -07:00
Aparajita Fishman
25253942a6
replace tab with spaces
2011-10-27 15:53:32 -07:00
Aparajita Fishman
4d75b47713
Added default version
2011-10-27 15:51:22 -07:00
Alexander Ljungberg
63c500c444
Fixed: overlay scroll knobs never quite reached the edge.
...
The calculation of the number of pixels outside of the clip view assumed fixed, space consuming scrollbars even when overlay scrollbars were used, leading CPScrollView to always think a few more pixels could be revealed.
2011-10-27 15:57:29 +01:00
Alexander Ljungberg
208c3fea35
Fix scroller gap for hidden overlay scrollers.
...
If there is no vertical scroller, or there is no horizontal scroller, due to autohiding or scroll view settings, a single visible overlay scroller should extend all the way to the edge of its dimension.
2011-10-27 14:44:19 +01:00
Alexander Ljungberg
3201b5921c
Fix unterminated var block.
2011-10-27 13:43:02 +01:00
Alexander Ljungberg
e92a7825bf
Optimise bottom corner view in overlay scrolling mode.
...
In particular, there is no need to update nor even draw the bottom corner view when in overlay mode.
2011-10-27 13:35:55 +01:00
Alexander Ljungberg
65b1fb2bae
Use the scroll view test 1 background in test 2.
...
The background makes it easier to see the scrolling in action.
2011-10-27 12:52:12 +01:00
Alexander Ljungberg
98df7e1eb8
Refs #1373 . Improve documentation.
2011-10-27 11:51:10 +01:00
Antoine Mercadal
86079af3b1
implement CPWindow setMovable: API. close #1358
2011-10-26 11:05:07 +02:00
Alexander Ljungberg
eeab0cf1b2
Merge remote-tracking branch 'primalmotion/lionscrollview'
2011-10-25 17:05:03 +01:00
Antoine Mercadal
ac16b7ad0b
fix a wrong autoresizing mask in manual test of CPScrollView2
2011-10-25 17:18:08 +02:00
Antoine Mercadal
e9b87d7acc
update the CPScrollView2 manual test to use the new API
2011-10-25 17:14:32 +02:00
Antoine Mercadal
b37893d9bb
change names of class methods to [set]GlobalScrollerStyle
2011-10-25 17:14:14 +02:00
Alexander Ljungberg
6f4ecdfbd9
Merge remote-tracking branch 'primalmotion/lionscrollview'
...
Conflicts:
AppKit/CPScrollView.j
2011-10-25 15:54:16 +01:00
Antoine Mercadal
697921b486
autodetect is user computer is using legacy or overlay mode
2011-10-25 14:35:46 +02:00
Antoine Mercadal
3c01d4aa8b
do not put scroller mode here
2011-10-25 14:33:47 +02:00
Antoine Mercadal
a1eafdfbd8
update manual test for CPScrollView2
2011-10-25 12:45:18 +02:00
Antoine Mercadal
2cfb171b38
support for system wide scroller style. Set default to legacy mode in info.plist
2011-10-25 12:39:51 +02:00
Antoine Mercadal
2742e3d77b
fix flashScrollers doesn't work
2011-10-25 12:11:11 +02:00
Alexander Ljungberg
5488d8f633
Refs #1373 . Use self in some class methods to make subclassing easier.
2011-10-24 23:54:50 +01:00
Alexander Ljungberg
35c7155983
Refs #1373 . Use legacy style scrollbars by default.
...
The Lion style scrollbars are inconvenient for users without a touch scrolling device, and we do not have a way to detect whether the user has such a device yet.
2011-10-24 23:51:18 +01:00
Alexander Ljungberg
b90a8a58fd
Fix some comments.
2011-10-24 23:42:44 +01:00
Alexander Ljungberg
85fa2011b2
Merge pull request #1373 from primalmotion/cappuccino
...
---
This patch makes CPScrollView acts like Lions NSScrollView.
A online demo can be found here: http://nightlies.archipelproject.org/CPScrollView2/
2011-10-24 20:45:58 +01:00
Alexander Ljungberg
063b05d964
Fixes #1384 . Avoid user defaults QUOTA_EXCEEDED_ERR crash.
...
Switch to cookie based user defaults if HTML 5 local storage exists but is disabled, as is the case when Safari is in 'private browsing' mode.
Don't crash if the local storage quota is reached. Instead log a warning and silently fail to store the new user default.
2011-10-24 01:12:02 +01:00
Alexander Ljungberg
ac90a0c0fb
Remember multiple split view pre-collapse positions. Autosave.
...
If more than one subview is collapsed, remember the pre-collapse divider position for each subview separately.
Autosave pre-collapse positions to restore positions when uncollapsing after a reload.
2011-10-23 13:30:37 +01:00
Alexander Ljungberg
3efe33d2fb
Split view resize cursors for rightwards collapse.
...
If the right/lower subview is collapsible and the divider is at its uncollapsed maximum position, continue showing the two way resize cursor to indicate additional movement is actually possible. Also show the shrink cursor when the mouse is over the divider to the left/above of a collapsed subview.
2011-10-23 12:51:51 +01:00
Alexander Ljungberg
3e5ea97768
Eliminate excessive splitViewDidResizeSubviews: messages.
...
Merely clicking a divider without moving it should not result in a splitViewDidResizeSubviews: message. Fixed errors with setPosition:ofDividerAtIndex:'s no change detection.
2011-10-23 12:28:46 +01:00
Alexander Ljungberg
a970657312
Fix split view splitViewDidResizeSubviews: delegate method.
...
Only call splitViewDidResizeSubviews: after the subviews have actually finished being resized. Make sure to call splitViewDidResizeSubviews: when views are collapsed, even if _adjustSubviewsWithCalculatedSize performed no work.
2011-10-23 11:25:25 +01:00
Alexander Ljungberg
240615c71b
Fixed split view right collapse size restore.
...
When a collapsed split view subview was restored, e.g. by double clicking the divider, and the collapsed subview was on the right hand side of the divider, the pre-collapse split view position was not restored.
2011-10-23 00:09:47 +01:00
Alexander Ljungberg
d3f4e205af
Support split view collapse rightwards.
...
When a divider is dragged to the right past half of the minimum width of a collapsible subview, or the divider is double clicked and the delegate returns YES for shouldCollapseSubview:forDoubleClickOnDividerAtIndex:, the subview is collapsed. This is the mirror operation of collapsing towards the left.
2011-10-23 00:01:53 +01:00
Alexander Ljungberg
cc63c239f6
Fix StaticResource.includeURLs caching.
...
The cache was being shadowed by a local variable, forcing the list of includeURLs to be recreated for every call to StaticResource.includeURLs.
2011-10-21 16:06:52 +01:00
Alexander Ljungberg
4b82cae638
Add missing semicolons.
2011-10-21 15:58:50 +01:00
Alexander Ljungberg
68c8d15ed4
Improve split view delegate error handling.
...
Fixed: if the split view delegate sent non numeric responses when asked to constrain divider positions, subviews would be resized with corrupt size information, which in turn could lead to infinite loops and redraw errors. These bad results are now handled more gracefully.
2011-10-21 15:55:34 +01:00
Alexander Ljungberg
021f5bb030
Fixed: disappearing or fuzzy table header dividing lines at certain table sizes.
2011-10-20 18:51:59 +01:00
Alexander Ljungberg
fc5d9a413d
Fixes #1380 . Fixes #1383 . Avoid "popen error (pipe): Too many open files" error when building Cappuccino.
2011-10-20 13:49:16 +01:00
Kevin Jamieson
e09acb9208
Update internal string value of CPTextField when a newline is entered or the field loses focus.
2011-10-17 22:00:38 -07:00
Alexander Ljungberg
2f57404c9c
Clarify and format bootstrap messages.
2011-10-17 21:51:43 +01:00
Alexander Ljungberg
a29bdf0cf4
Merge pull request #1361 from hammerdr/cappuccino
...
---
Tusk seems to need OJTest to be alone in order to calculate and/or
download dependencies (which are the Objective-J and Cappuccino
pre-built packages).
2011-10-17 21:30:31 +01:00
Alexander Ljungberg
c29597689c
Tweak bootstrap instructions.
2011-10-17 19:41:41 +01:00
Alexander Ljungberg
797fbca6d4
Merge pull request #1381 from primalmotion/cappuccino
...
---
running tusk install browserjs jake shrinksafe AND extra packages (OJtest, objj and capp)
in a single instruction prevent the installation of the lasts.
This patch splits the procedure in two separate instructions and should fix all problems.
2011-10-17 19:25:11 +01:00
Antoine Mercadal
6ed4b289d8
Fix bootstrap errors
...
running tusk install browserjs jake shrinksafe AND extra packages (OJtest, objj and capp)
in a single instruction prevent the installation of the lasts.
This patch splits the procedure in two separate instructions
2011-10-17 20:04:54 +02:00
Alexander Ljungberg
7dd07b2f5b
Refs #1378 . Unit test for radio group actions.
2011-10-10 14:31:49 +01:00
Alexander Ljungberg
b371fda0a5
Refs #1378 . Position the continuous button test window so it's visible.
2011-10-10 14:21:08 +01:00
Alexander Ljungberg
3bdb11d804
Merge pull request #1378 from primalmotion/cappuccino
...
---
Cocoa compliance.
* updated manual test: log a text only when user clicks a radio button butnot when using the CPButton that uses setState:
* ignore .xCodeSupport folders.
2011-10-10 14:07:17 +01:00
Antoine Mercadal
199b777dcc
update CPButtonTest to test setState: behavior
2011-10-10 14:52:08 +02:00
Antoine Mercadal
70ccec2e82
do not send action when using setState: programatically
2011-10-10 14:49:59 +02:00
Antoine Mercadal
a195624549
ignore .xCodeSupport folders
2011-10-10 14:49:06 +02:00
Alexander Ljungberg
e417eba6bd
CPSplitView autosave support.
2011-10-09 19:11:38 +01:00
Antoine Mercadal
210bb3e5c9
prevent scrollers to show track on mouse enter when ratio is 1
2011-10-06 16:41:36 +02:00
Antoine Mercadal
140ae354a1
try to get 'NSScrollerKnobStyle'. for NSTableView in Xcode, this is not positioned and cause a crash
2011-10-06 15:10:19 +02:00
Antoine Mercadal
2451b08306
fix accidental global
2011-10-06 13:38:31 +02:00
Alexander Ljungberg
04d33e772f
Allow binding a table column value to an array controller reached through a key path.
...
Cocoa might not support this but it is reasonable and consistent, and allows indirect bindings when using multiple CIB files.
2011-10-06 01:59:56 +01:00
Alexander Ljungberg
3592fd8dae
Whitespace cleanup.
2011-10-06 01:59:48 +01:00
Alexander Ljungberg
889e8d3b6e
Test automatic table bindings.
2011-10-06 00:36:13 +01:00
Alexander Ljungberg
908fc67f96
Whitespace cleanup.
2011-10-06 00:11:59 +01:00
Antoine Mercadal
c9a645285a
make labels selectable in test project to test accessibility of stuff under the overlay scrollers
2011-10-05 17:54:53 +02:00
Antoine Mercadal
3655724810
fix missing labels in test project
2011-10-05 17:51:49 +02:00
Antoine Mercadal
866047c116
fix sone visual glitches
2011-10-05 17:46:51 +02:00
Antoine Mercadal
8912d31bec
do not fade in scrollers on overing
2011-10-05 17:32:44 +02:00
Antoine Mercadal
1e65342814
add manual test for CPScrollView specificities
2011-10-05 17:07:17 +02:00
Antoine Mercadal
c7ca352205
remove debug print
2011-10-05 17:00:31 +02:00
Antoine Mercadal
4b1ce8bc0b
better art for default knob style
2011-10-05 16:55:08 +02:00
Antoine Mercadal
422e940bc7
use default knob style as default. logic.
2011-10-05 16:24:37 +02:00
Antoine Mercadal
76e2a2b8ca
support new properties in nib2cib
2011-10-05 16:24:12 +02:00
Antoine Mercadal
e3565bdc7d
fix visual glitch when scroller are hidden and overed
2011-10-05 15:57:18 +02:00
Antoine Mercadal
86f01cfaec
add a timer before fading out the scroller when overed
2011-10-05 11:34:06 +02:00
Antoine Mercadal
6e4007adc0
add support for the different scroller knob styles
2011-10-05 11:27:32 +02:00
Antoine Mercadal
8c6913c399
small theming adjustment
2011-10-04 17:03:23 +02:00
Antoine Mercadal
efdfd0db10
fix some bugs and update arts
2011-10-04 16:21:24 +02:00
Antoine Mercadal
d6412eec58
tidy up the CPScrollView class file
2011-10-04 14:36:08 +02:00
Antoine Mercadal
53a6d2de83
support for changing scroller styles
2011-10-04 14:05:02 +02:00
Antoine Mercadal
7fe990e9f6
keep scroller visible if mouse is over, even if timer fire
2011-10-03 21:15:21 +02:00
Antoine Mercadal
7b7ad0715b
add artwork
2011-10-03 21:08:06 +02:00
Antoine Mercadal
1a57d032b9
make CPScrollView acting like Mac OS X Lion ones
2011-10-03 21:07:46 +02:00
Alexander Ljungberg
77bb169680
Merge pull request #1371 from primalmotion/cappuccino
...
---
CPTokenField has the theme state ```CPTextFieldStatePlaceholder``` even if tokens are present, resulting with a wrong positioning of tokens.
2011-10-03 17:10:12 +01:00
Antoine Mercadal
b424c19eee
optimization
2011-10-03 17:28:32 +02:00
Antoine Mercadal
4d597069cf
fix problem in CPTokenField with wrong theme state if containing tokens
2011-10-03 17:08:21 +02:00
Alexander Ljungberg
5afbdf7f20
Merge pull request #1370 from primalmotion/cappuccino
...
---
Store the conversion date before starting to actually convert. This should avoid to loop indefinitly in case of long conversion time.
Also convert tabs to space, and remove trailing spaces.
2011-10-03 15:10:12 +01:00
Antoine Mercadal
33f558b221
Fix conversion loop
...
Store the conversion date before starting to actually convert. This should avoids to loop indefinitly in case of long conversion time.
Also convert tabs to space, and remove trailing spaces.
2011-10-03 15:22:16 +02:00
Stephen Ierodiaconou
b05d0dd1ec
Fix for comparing decimal numbers < 1.0 with 0.0
2011-10-01 10:50:23 +01:00
Alexander Ljungberg
b2b305cc4b
Merge pull request #1274 from aparajita/cappuccino
...
---
- Enhanced -description method of CPImage and CPColor to show the exact content, especially for pattern colors.
- Added CPColorWithImages() convenience function, analogous to PatternColor() function used in theme descriptors.
- Added @cond/@endcond in CPColor to ignore local variables.
- Sample app included. See the console for samples of -description output for all color/image types.
2011-09-27 20:53:41 +01:00
Aparajita Fishman
c5a9ee544c
Comment cleanup, replace CPRect with _CGRect.
2011-09-25 17:06:02 -07:00
Aparajita Fishman
368d66f76e
Copy the input frame, it should not be modified in place.
2011-09-25 16:59:44 -07:00
Nicolas Goy and Aparajita Fishman
5aaae61b46
Modified CPStepper to support theming better by adding the ability to size buttons through theme
2011-09-25 15:19:14 -07:00
Alexander Ljungberg
29fe50c2d7
Merge pull request #1365 from primalmotion/cappuccino
...
---
My previous patches was preventing to change the CPPlatformWindowt title once it was opened using windows setTitle:
This patch fix it.
2011-09-21 13:04:24 +01:00
Antoine Mercadal
d0c59ee253
fix bug preventing the CPPlatformWindow's title to change once opened
2011-09-21 14:00:35 +02:00
Aparajita Fishman
d2e39238f4
Jakefile improvements...
...
- 'jake clean' now cleans instead of clobbers.
- Added task 'clean-sprites', cleans sprited images.
- Added task 'clobber-theme', clobbers all traces of Aristo.
- Added missing semicolons, followed JavaScript lint suggestions for using dot notation instead of [""].
2011-09-19 21:42:59 -07:00
Darrell Walisser
6eace4258f
-initial stab at doc-modal sheets
2011-09-18 16:08:10 -04:00
Alexander Ljungberg
4aec3f7466
Refs #1355 . Manual window title test.
...
In the PlatformWindows test, change the window title both when theWindow is a non platform window and when it is a platform window to verify that the browser window title changes only when it should.
2011-09-17 11:07:38 +01:00
Alexander Ljungberg
c8991e07b9
Merge pull request #1355 from primalmotion/cappuccino
...
---
if setTitle: is called on a CPWindow with the primaryPlatformWindow as platformWindow,
the main pages title is changed. This patch prevent changing the primaryPlatformWindows title.
This is not optimal, but this is better than changing the title at each window setTitle: call
2011-09-17 10:55:43 +01:00
Alexander Ljungberg
48157db973
Refs #1360 . Fixed: index was always 0 in CPTokenField tokenField:shouldAddObjects:atIndex: delegate method.
2011-09-16 21:52:09 +01:00
Alexander Ljungberg
d070e5fce5
Merge branch 'master' of github.com:cappuccino/cappuccino
2011-09-16 21:47:20 +01:00
Alexander Ljungberg
a8fae51ea8
Refs #1360 . Cursor movement fixes, optimisations.
...
Don't move the cursor forward if no token was inserted. Only count new tokens once.
2011-09-16 21:46:20 +01:00
Alexander Ljungberg
2815d462be
Refs #1360 . Test for CPTokenField tokenField:shouldAddObjects:atIndex:.
2011-09-16 20:51:45 +01:00
Alexander Ljungberg
85f8ca9241
Refs #1360 . Format code.
2011-09-16 19:29:53 +01:00
Alexander Ljungberg
b5fb9e8c23
Merge pull request #1360 from jigzat/cappuccino
...
---
Enabled tokenField:shouldAddObjects:atIndex delegate method and used on _autocompleteWithDOMEvent method to have some control over tokens. Not sure why wasnt enabled, it needed very few code. Maybe no one needed it til now.
This is my first collaboration ever, so Im not sure if is of any use.
2011-09-16 19:10:23 +01:00
Klaas Pieter Annema
1addc002d3
Merge branch 'master' of github.com:cappuccino/cappuccino
2011-09-16 12:00:05 +02:00
Klaas Pieter Annema
e99e2660e9
more fixes and tests for _CPKVCArray
2011-09-16 11:43:42 +02:00
Aparajita Fishman
03d1bb8bce
Added missing statement separator, concatenated var block, fixed symlink deletion/creation sometimes failing.
2011-09-15 17:09:15 -07:00
Klaas Pieter Annema
5b00f7f2e8
improve _CPKVCArray
...
_CPKVCArray now consistently calls both single and multiple indexes accessors consistently
Tests that verify the behavior are included
2011-09-15 22:32:23 +02:00
Klaas Pieter Annema
97b7f0901e
add tests for key view loop behavior
2011-09-15 17:50:37 +02:00
Klaas Pieter Annema
67b2671dad
improve key view loops
...
- include the window's content view at the start of the key view loop
- set the initial first responder to the window's content view (and keep it that way unless it is explicitly changed)
- CPWindow should return NO from acceptsFirstResponder (Cocoa compliance).
- change the type of setInitialFirstResponder, this is compliant with Cocoa. The new key view loop code will break if initial first responder is anything but a view
- change the implementation of selectNextKeyView:, selectPreviousKeyView:, selectKeyViewFollowingView: and selectKeyViewPrecedingView: to follow to Cocoa's documentation
2011-09-15 16:39:24 +02:00
aparajita
7886d49e65
Merge pull request #1359 from primalmotion/fix-and-improve-doxygen-theme
...
Fix and improve doxygen theme
2011-09-09 21:48:17 -07:00
Samir Gartner
e5284e9b43
Fixed some possible error of my part where selectedRange is moved beyond bounds
2011-09-09 22:31:17 -05:00
Samir Gartner
c6403baa04
Fixed cursor position issue in a little escapade...guess that's all for now folks
2011-09-09 13:28:37 -05:00
Samir Gartner
662b1ec696
Submitted the right CPTokenField file, was missing the part to use the delegate approved tokens. Still lacks a way to put the cursor after the last token (if the delegate returns more than one token)
2011-09-09 12:48:18 -05:00
Derek Hammer
9570e541d9
Move OJTest install to after the tusk install of other packages.
...
Tusk seems to need OJTest to be alone in order to calculate and/or
download dependencies (which are the Objective-J and Cappuccino
pre-built packages).
2011-09-09 11:41:01 -05:00
Samir Gartner
043df71185
Enabled tokenField:shouldAddObjects:atIndex delegate method and used on _autocompleteWithDOMEvent method to have some control over tokens. Not sure why wasn't enabled, it was very few code. Maybe no one needed it 'til now
2011-09-08 22:56:52 -05:00
Antoine Mercadal
8dab47f4da
mozilla compat
2011-09-08 18:12:32 +02:00
Alexander Ljungberg
90d069df2b
Refs #1343 . Remove now obsolete README.md.
...
Everything in the README has been fixed except 3 and 4. 4 is outside of the issue scope and 3 works as intended (nearly). The array controller does not have `setAvoidsEmptySelection:NO` so an empty selection should not be possible unless there are no items.
2011-09-08 17:02:15 +01:00
Antoine Mercadal
dcbe3ee650
fix paremeters touching their description in bubbles
2011-09-08 17:15:12 +02:00
Antoine Mercadal
e32489aba1
tiny padding improvment in generated html docs
2011-09-08 17:08:50 +02:00
Antoine Mercadal
b619c0b793
some small graphical improvments
2011-09-08 16:55:12 +02:00
Antoine Mercadal
fab61d14fa
forget to restore the bg color of the tree view
2011-09-08 14:44:05 +02:00
Antoine Mercadal
b4edc084f8
add Cappuccino logo
2011-09-08 14:00:20 +02:00
Antoine Mercadal
c7518d0c49
merge Aparajita's previous improvments on the CSS
2011-09-08 12:44:10 +02:00
Antoine Mercadal
a40345c14d
fix the slider
2011-09-08 11:46:20 +02:00
Antoine Mercadal
909471a5d7
fix the documentation generation process
2011-09-08 01:30:58 +02:00
Antoine Mercadal
38f7ea00c2
update doxygen.css
2011-09-08 00:43:32 +02:00
Alexander Ljungberg
9f459f053e
Fixed: several CPArrayController methods returned undefined instead of booleans.
2011-09-07 18:17:35 +01:00
Alexander Ljungberg
4195f3b8c6
Test that CPArrayController setSelectionIndexes: does not modify its input.
2011-09-07 18:02:53 +01:00
Alexander Ljungberg
4926824482
Fixed: CPArrayController setSelectionIndexes: sometimes modified its input.
...
Also very slightly improved performance as sometimes the input index set would be instantiated internally and then needlessly copied.
2011-09-07 17:53:48 +01:00
Alexander Ljungberg
cb2f539cf7
Send didChange in reverse order of willChange in CPObjectController setContent:.
2011-09-07 17:32:19 +01:00
Alexander Ljungberg
7f31be7cb1
Fixed: array replaceObjectsInRange:withObjectsFromArray: always failed with a "'null' is not an object' error.
...
This was caused by the new range checks in f8404c7a97 .
2011-09-07 16:18:08 +01:00
Alexander Ljungberg
78b9c5b576
Fixes #1343 . Support nested willChange… didChange… calls.
...
When multiple calls are nested, only the first willChange… and the last didChange… will notify observers, avoiding duplicate notifications for the same change.
2011-09-07 16:14:01 +01:00
Alexander Ljungberg
01e35efdbb
Refs #1343 . Recreate manual bindings test as an automatic test.
2011-09-07 16:04:35 +01:00
Aparajita Fishman and Alexander Ljungberg
bef1687b1f
Test app for bindings fixes.
2011-09-07 12:51:36 +01:00
Antoine Mercadal
afa691376e
fix unable to change mainWindow's title
2011-09-02 14:00:49 +02:00
Antoine Mercadal
be10bcf27a
Fix CPPlatformWindow's title bug
...
if setTitle: is called on a CPWindow with the primaryPlatformWindow as platformWindow,
the main page's title is changed. This patch prevent changing the primaryPlatformWindow's title.
This is not optimal, but this is better than changing the title at each window setTitle: call
2011-09-02 12:42:09 +02:00
Alexander Ljungberg
608cb86a4a
Whitespace cleanup.
2011-08-31 18:51:15 +01:00
Alexander Ljungberg
88780ff0a9
Merge pull request #1352 from primalmotion/cappuccino
...
---
In latest versions of webkit window.open(url) return undefined if url == ""
2011-08-31 18:47:43 +01:00
Antoine Mercadal
a5e241afd7
update PlatformWindows test (use the slider to play with the titles)
2011-08-31 19:17:41 +02:00
Antoine Mercadal
28772d3254
use CPWindow's title for platform window
2011-08-31 19:17:10 +02:00
Antoine Mercadal
d1f5c1eebc
patch for enventual webkit bug with window.open()
2011-08-31 18:28:47 +02:00
Alexander Ljungberg
c77a282aaf
Raise CPRangeException if CPString substringToIndex: is out of bounds.
2011-08-27 23:50:18 +01:00
Alexander Ljungberg
7a1cd5c545
Fix CPString substringToIndex documentation. The index parameter is not inclusive.
2011-08-27 23:49:40 +01:00
Alexander Ljungberg
29ff54054e
Fix a typo.
2011-08-22 23:03:34 +01:00
Alexander Ljungberg
8e1bbe0132
Merge pull request #1345 from primalmotion/cappuccino
...
---
This patch allow to send play message before
the sound is actually loaded (by remembering the play request
and playing the sound when loaded if needed)
this allows to do:
```objj
var sound = [[CPSound alloc] initWithContentsOfURL:aSoundURL byReference:NO];
[sound play];
```
2011-08-22 22:59:39 +01:00
Antoine Mercadal
a2b6585c0d
CPSound support play while loading
...
This patch allow to send 'play' message before
the sound is actually loaded (by remembering the play request
and playing the sound when loaded if needed)
this allow to do:
```objj
var sound = [[CPSound alloc] initWithContentsOfURL:aSoundURL byReference:NO];
[sound play];
```
2011-08-20 18:48:11 +02:00
Francisco Ryan Tolmasky I
aa452952a8
Merge pull request #1344 from aparajita/valueForKeyPath-tweak
...
Much more efficient test for first character of string
2011-08-18 09:43:46 -07:00
Aparajita Fishman
6ea4aa0a66
Much more efficient test for first character of string
2011-08-18 00:52:59 -04:00
Randy Luecke
2462cd7b1d
Merge pull request #1316 from primalmotion/cppopover
...
add CPPopover (Cocoa API compliant)
2011-08-17 11:17:02 -07:00
Randy Luecke
331e338c06
Merge pull request #1333 from eventualbuddha/CPAlert-subclass-builder-support
...
Allow CPAlert subclasses to use +alertWithMessageText:... et al.
2011-08-17 11:16:20 -07:00
Randy Luecke
2b68f40872
Merge pull request #1341 from cacaodev/CPTableView_drawBackgroundInClipRect
...
CPTableView: -drawBackroundInClipRect: bug
2011-08-17 11:15:33 -07:00
Randy Luecke
2f7b3c306d
Merge pull request #1335 from alexmipego/master
...
CPBox autoresize settings
2011-08-17 11:13:46 -07:00
Randy Luecke
eba5dbe654
Merge pull request #1334 from aparajita/array-range-checking
...
Added some missing range checking.
2011-08-17 11:11:49 -07:00
Randy Luecke
9ae1f548bf
Merge pull request #1338 from purem/master
...
Added zsh to xcodecapp-cocoa
2011-08-17 11:05:18 -07:00
Alexander Ljungberg
d191255a84
Merge branch 'master' of github.com:280north/cappuccino
2011-08-12 19:50:49 -04:00
Alexander Ljungberg
9bf8824109
nib2cib support for token fields.
2011-08-12 19:50:30 -04:00
Alexander Ljungberg
f773bd217c
Fixed with token field: remove false ivar '_tokenIndex' and fix tokenField:tokenField completionsForSubstring:indexOfToken:indexOfSelectedItem: ignoring its indexOfToken: parameter.
2011-08-12 19:46:39 -04:00
Alexander Ljungberg
a5f0f0e3db
CPTokenField archiving support.
2011-08-12 19:29:59 -04:00
Alexander Ljungberg
6f6bfc667b
Inverted CPCharacterSet characterSetWithCharactersInString now archive properly.
2011-08-12 19:27:02 -04:00
Alexander Ljungberg
0789f49b94
CPCharacterSet isEqual support when the set is of the characterSetWithCharactersInString kind.
2011-08-12 19:12:47 -04:00
Alexander Ljungberg
92c94eab8f
CPCharacterSet archiving support when the set is of the characterSetWithCharactersInString kind.
2011-08-12 18:50:06 -04:00
cacaodev
9f06ed725e
CPTableView: -drawBackroundInClipRect:
...
Fixes a bug where we were drawing rows from 0 instead of the first exposed when usesAlternatingBackgroundColors:YES
2011-08-11 21:06:19 +02:00
Jonathan R H Evans
c45039fd70
Added zsh to the list of shell configs that xcodecapp-cocoa checks.
2011-08-09 10:15:23 +01:00
Aparajita Fishman
8e203ec78e
Fixed range checking for insertObject:atIndex:
2011-08-08 15:14:30 -07:00
alexmipego
e32515e5cc
Make boxEnclosingView: copy the auto resizing settings of the view
2011-08-07 20:22:14 +01:00
Klaas Pieter Annema
2b77da821c
always build xcodecapp with 10.6 SDK
2011-08-06 16:43:11 +02:00
Aparajita Fishman
f8404c7a97
Added some missing range checking.
2011-08-05 14:40:13 -07:00
Brian Donovan
156610ee07
Allow CPAlert subclasses to use +alertWithMessageText:... et al.
2011-08-05 08:32:44 -07:00
Alexander Ljungberg
fcaf672bf8
Merge branch 'master' of github.com:280north/cappuccino
2011-07-29 02:43:52 -04:00
Alexander Ljungberg
dd5d8fcdce
Closes #1305 . Fixed: don't constrain max toolbar item width to the width of the label.
2011-07-29 02:42:42 -04:00
Alexander Ljungberg
e0c4f6455d
Tweak some messages.
2011-07-29 02:02:11 -04:00
Alexander Ljungberg
dd5d7e9979
Whitespace cleanup.
2011-07-29 02:01:31 -04:00
Alexander Ljungberg
408baac91e
Fix Xcode capitalisation in xcodecapp-cocoa.
2011-07-29 02:00:14 -04:00
Klaas Pieter Annema
f241142216
don't disallow setEnabled for auto enabled items
2011-07-21 14:41:47 +02:00
Klaas Pieter Annema
f0561844d8
don't close a menu item with a submenu
...
A submenu item should only close the menu if it has a non default action.
This is compliant with how Cocoa behavior.
2011-07-21 12:23:11 +02:00
Randall Luecke
bd6294b806
Updated Jakefile for xcodecapp-cocoa to use the proper variable name. This should also fix the buildbot.
2011-07-17 22:46:27 -07:00
Alexander Ljungberg
70f8e3a832
Merge pull request #1278 from aparajita/cappuccino
...
---
I discovered the following behavior that is not in conformance with Cocoa:
- Backspace, tab, escape, and space are considered key equivalents.
- Function keys (F1 - FNN) are not considered key equivalents.
- CPTextField executes `performKeyEquivalent` twice if a field is first responder.
Build this Cocoa project and debug it: http://d.pr/Xc3h
Take a look at the debug log while typing some keys. You will see that backspace, tab, escape and space do not trigger `performKeyEquivalent`, and that `performKeyEquivalent` is only executed once for the first responder.
Then run the performKeyEquivalentsTest app in this commit and look at the console log while trying keys in the text fields. If you turn the old code on, you will see how `performKeyEquivalent` is executed twice for the first responder.
For reference on key handling code, I consulted this:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html%23//apple_ref/doc/uid/10000060i-CH3-SW11
2011-07-17 22:55:18 -04:00
Alexander Ljungberg
59b302acde
Merge pull request #1177 from cacaodev/cappuccino
...
---
Adds -scrollViewWillScroll: and -scrollviewDidScroll: delegate methods to CPScrollView.
These methods are not in AppKit but exist in UIKit. Useful for lazy loading data in a view, for example a CPTableview.
Tested in the CPScrollView example.
Conflicts:
AppKit/CPScrollView.j
2011-07-17 22:05:55 -04:00
Alexander Ljungberg
f54f8dfec9
Merge branch 'master' of github.com:280north/cappuccino
2011-07-17 21:48:53 -04:00
Alexander Ljungberg
93135e7e81
Header fixes.
2011-07-17 21:47:40 -04:00
Alexander Ljungberg
b8026e19ba
Merge pull request #1320 from MCF/cappuccino
...
---
If a CPTextFields target action changed the first responder then the target action was called twice if the textfield edit was completed by hitting the enter/return key. This fixes the problem by setting the _isEditing flag to NO before the action is called in the insertNewline function.
See [this thread](https://groups.google.com/group/objectivej-dev/browse_thread/thread/ff64a4520102b3c5?hl=en ) for more details.
Also included a new manual test for an editable CPTableView to make testing the fix easier.
2011-07-17 21:43:23 -04:00
Randy Luecke
147d9282fb
Merge pull request #1323 from primalmotion/xcodecapp-cocoa-menu-for-error-panel
...
Small improvments in XcodeCapp-Cocoa
2011-07-17 15:49:21 -07:00
Antoine Mercadal
7c18b8bc5f
Small improvments in XcodeCapp-Cocoa
...
- Do not release the Error & Warning window on close (or you can't open it again)
- Small graphical updates
- Remove the Growl notification in case of error (panel is sufficient)
- Add a menu to open the error and warning panel when user wants to
2011-07-17 23:50:14 +02:00
Randall Luecke
2ccbf5d4e5
Errors in xcodecapp-cocoa now show up in their own panel. Should we keep growl?
2011-07-17 13:46:57 -07:00
Randall Luecke
da6d8c86d1
Merge branch 'xcodecapp-cocoa-merge' of https://github.com/primalmotion/cappuccino into primalmotion-xcodecapp-cocoa-merge
2011-07-17 13:45:41 -07:00
Randall Luecke
78d997b404
Remove xcodecapp-cocoa in preparation for a proper merge
2011-07-17 13:44:09 -07:00
Aparajita Fishman
89b23ef0d7
Framework capp template
2011-07-17 09:17:08 +03:00
Aparajita Fishman
b958911c63
Support for postinstall scripts
2011-07-17 09:15:26 +03:00
Randall Luecke
c6e5219f2e
Add Xcodecapp-cocoa build to Tools Jakefile
2011-07-16 23:11:13 -07:00
Randall Luecke
3bb450adbf
Merge branch 'master' of git://github.com/280north/cappuccino
2011-07-16 22:57:56 -07:00
Randall Luecke
a0f5257258
Errors in xcodecapp-cocoa now show up in their own panel. Should we keep growl?
2011-07-16 22:57:12 -07:00
Randall Luecke
6520615bb0
Merged xcodecapp-cocoa
2011-07-16 22:53:49 -07:00
Randy Luecke
4593212698
Merge pull request #1299 from farcaller/5d26066e02f6d1203981b27c8acf7f7991f4a419
...
Fixup for CPDictionary's dictionaryWithJSObject:recursively: and null objects in arrays
2011-07-16 19:45:45 -07:00
Randy Luecke
5363deb122
Merge pull request #1285 from aparajita/CPPredicate-fix
...
CPPredicate fix
2011-07-16 19:40:17 -07:00
Randy Luecke
d5a651fc43
Merge pull request #1290 from hammerdr/include-ojtest
...
Adding OJTest installation to the bootstrap.sh file.
2011-07-16 19:39:52 -07:00
Randy Luecke
4740acbcc6
Merge pull request #1292 from aparajita/doxygen-font-fix
...
Use Menlo if Consolas is not available
2011-07-16 19:36:35 -07:00
Randy Luecke
bfb2134329
Merge pull request #1293 from aparajita/CPKeyedArchiver-tweak
...
CPKeyedArchiver - Removed unused variable, fixed typo
2011-07-16 19:36:00 -07:00
Randy Luecke
ec83977fe1
Merge pull request #1312 from aparajita/CPPlatformString-missing-methods
...
Make sure CPPlatformString +sizeOfString and +metricsOfFont work with CommonJS
2011-07-16 19:33:32 -07:00
Randy Luecke
98d08ff05d
Merge pull request #1317 from aparajita/themeClass-fix
...
Have to set _themeClass when class changes
2011-07-16 19:32:54 -07:00
Randy Luecke
1eb6319b49
Merge pull request #1313 from cacaodev/CPViewAnimation
...
CPViewAnimation: current frame based on -currentValue.
2011-07-16 19:30:25 -07:00
Mike Fellows
8f7e06f9d6
Fix regression to CPTextField's insertNewline, duplicate target actions were being called when an edit on a textfield was ended with an enter/return keypress
2011-07-15 18:55:03 -07:00
Mike Fellows
81e3abe10c
Add CPTableView test for editable table cells.
2011-07-15 18:54:53 -07:00
Klaas Pieter Annema
edcee8934d
fix empty contextual menus out of bounds error
2011-07-14 16:26:58 +02:00
Klaas Pieter Annema
d115d2ef47
fix context menu only closes after two clicks
...
This is a regression from 73b4c33f05 .
Because we were only tracking wether the left mouse button went up after a contextual menu (which is opened with the right mouse)
would only close after the second left mouse up.
2011-07-14 11:15:34 +02:00
Alexander Ljungberg
d1dd725848
Merge pull request #1318 from aparajita/cappuccino
...
---
And several bugs fixed in the process.
2011-07-09 20:51:33 -04:00
Aparajita Fishman
ebdba33082
Whitespace cleanup
2011-07-09 17:08:08 -07:00
Aparajita Fishman
918f6fbb8f
CPFormatter support, bug fixes...
...
- Test application.
CPControl
---------
- Moved _formatter declaration up next to value, it was in the Target-Action Support section before.
- sendAction:to: should return a BOOL.
- Support for CPFormatter -editingStringForObjectValue.
- If a nil string is passed to -setStringValue in Cocoa, it raises an invalid parameter assertion and does nothing.
- Per Cocoa, if setting a string value fails, it tries again with an empty string.
- Removed a few extra blank lines.
- Changed NULL to nil.
CPTextField
-----------
- The string value is now cached in _stringValue to avoid constant calls to the formatter.
- There were several places where references to _inputElement were not wrapped with #if PLATFORM(DOM).
- When resigning first responder, if there is a formatter and formatting fails, reject the resignation and keep focus. Also, if the delegate responds to control:didFailToFormatString:errorDescription:, invoke it.
- _willBecomeFirstResponderByClick was not being set to NO when resigning. As a result, if you clicked in a field, tabbed to another field, and tabbed back to the original field, it would not select the text because it thought there was a mouse click.
- Don't send _sendStringValue: in keyUp: if the value has not changed. Previously it would do that for non-printing keys like navigation keys.
- insertNewLine: validates the string the same way resigning does.
- insertNewLine: would not send textDidEndEditing: if the field had no action, but it should.
- insertNewLine: should select all text (per Cocoa).
- insertNewLineIgnoringFieldEditor: and insertTabIgnoringFieldEditor: were not replacing the selection, Cocoa docs say they should.
- Per Cocoa, when setting an object value and there is a formatter, the value is first formatted as a string. If that fails, an object value for an empty string is attempted.
CPFormatter
-----------
- Fixed up the docs to match the method signatures.
- Indicated with "Ref" in argument types if the argument is pass by reference.
- isPartialStringValid:newEditingString:errorDescription: has a default implementation in Cocoa that nils the return values and returns YES.
- Fixed the name of isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:
- isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription: has a default implementation in Cocoa that invokes isPartialStringValid:newEditingString:errorDescription:
2011-07-09 17:05:23 -07:00
Antoine Mercadal
28733ec592
label are white in CPPopoverTest if popover is HUD
2011-07-09 15:29:37 +02:00
Antoine Mercadal
916b9a399b
make color matching Aristo 2.0 ones
2011-07-09 15:29:13 +02:00
Antoine Mercadal
3d62791477
fix animation lack in FF prevents Popover to close
2011-07-09 11:50:52 +02:00
Aparajita Fishman
64e6764015
Have to set _themeClass when class changes
2011-07-08 19:04:33 -07:00
Antoine Mercadal
cbed5c9cb1
support for CPPopover
2011-07-08 17:51:08 +02:00
Antoine Mercadal
0246d501e2
full support for CPPopover and nib2cib + enchanced delegates
2011-07-08 17:49:53 +02:00
Antoine Mercadal
3d5b30ab9e
add CPPopover (Cocoa API compliant)
2011-07-08 15:50:29 +02:00
Klaas Pieter Annema
4719578f10
fix 0 is a valid highlighted index
2011-07-07 20:40:22 +02:00
Klaas Pieter Annema
fe370c7066
Merge branch 'master' of github.com:280north/cappuccino
2011-07-07 18:37:24 +02:00
Klaas Pieter Annema
63d208bf20
never return a separator as the highlighted item
2011-07-07 18:33:00 +02:00
Alexander Ljungberg and Klaas Pieter Annema
5158540208
Fixed: initialise CPNumberFormatter maximumFractionalDigits to 3.
2011-07-07 16:04:12 +02:00
Alexander Ljungberg and Klaas Pieter Annema
a69f7dc81a
Test CPTextField with a formatter.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
e848e161d4
CPNumberFormatter maximum fractional digits support. Optimise by only creating CPDecimalNumberHandler when needed and caching the result.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
3db61216e1
CPFormatter support for CPControl which actually works.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
63b00186f4
Fixed: level indicator warning and critical level ranges should be inclusive.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
110d4c478d
Fixed: pressing the up arrow key in a table view would cause a crash if the previous selection was non continuous.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
49c29ded92
Nib2cib support for formatters.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
06670f2214
CPFormatter support for CPControl.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
134bfec615
Temporary numberFromString:.
2011-07-07 16:04:11 +02:00
Alexander Ljungberg and Klaas Pieter Annema
279326ffe1
CPNumberFormatter rounding mode support.
2011-07-07 16:04:10 +02:00
Alexander Ljungberg and Klaas Pieter Annema
ecb04e983e
Simple CPNumberFormatter stringFromNumber for CPNumberFormatterDecimalStyle.
2011-07-07 16:04:10 +02:00
Klaas Pieter Annema
73b4c33f05
track if the mouse was released after menu open
...
Make sure the menu isn't closed by the mouse up that is directly followed by the mouse down that opened the menu.
2011-07-07 16:04:10 +02:00
Klaas Pieter Annema
ad30f4dcbb
call delegate when submenu open and close
2011-07-07 16:04:10 +02:00
Klaas Pieter Annema
0318587f80
Set the title of a menu item's submenu
...
Correspond to Cocoa's behavior by automatically having CPMenuItem set the title of it's submenu
2011-07-07 16:04:10 +02:00
Klaas Pieter Annema
2b6fddf26c
move menu delegate logic to generic methods
2011-07-07 16:04:04 +02:00
Alexander Ljungberg
da61da392b
Fixed: initialise CPNumberFormatter maximumFractionalDigits to 3.
2011-07-06 14:08:44 -04:00
Alexander Ljungberg
984b46ba07
Test CPTextField with a formatter.
2011-07-06 13:36:41 -04:00
Alexander Ljungberg
1abce77b3a
Merge branch 'master' of github.com:280north/cappuccino
2011-07-06 13:32:46 -04:00
Francisco Ryan Tolmasky I
420606d8e8
Tests for forward invocation.
...
Reviewed by @tolmasky.
2011-07-02 13:33:53 -07:00
Francisco Ryan Tolmasky I
80c8fd9794
Fix bundletask to include .js files.
...
Reviewed by @tolmasky.
2011-07-02 08:38:10 -07:00
Antoine Mercadal
1f479c3f20
fix another problem with space in name that prevent launching XCode on the shadow project
2011-07-01 18:28:00 +02:00
Klaas Pieter Annema
0af89853d4
Merge pull request #1311 from aparajita/registerThemeValues-tweak
...
Added missing type in +registerThemeValues signature
2011-07-01 08:41:29 -07:00
Antoine Mercadal
b5bb9c8ec3
fix a bug with NSURL and spaces
2011-07-01 17:29:12 +02:00
Randall Luecke
ff13de9f75
Merge branch 'master' of git://github.com/280north/cappuccino
2011-07-01 00:05:19 -07:00
Randall Luecke
47f40eb04b
Added left/right arrow key expand and collapse... just for you @tolmasky.
2011-07-01 00:04:09 -07:00
Aparajita Fishman
1ffc7ed6fb
Make sure CPPlatformString +sizeOfString and +metricsOfFont work with CommonJS, so that OJUnitTest will work.
2011-06-29 10:52:22 -07:00
Aparajita Fishman
63710d5fae
Added missing type in method signature
2011-06-29 09:08:12 -07:00
Klaas Pieter Annema
a2ef701d18
Merge branch 'master' of github.com:280north/cappuccino
2011-06-29 16:05:26 +02:00
Klaas Pieter Annema
55e07536d9
don't start dragging if there are no rows
2011-06-29 16:04:46 +02:00
Randall Luecke
fc81483371
Fix typeo in CPToolbar.j CPToolbarItems to not respect maxSize. Closes #1305 .
2011-06-25 00:45:07 -07:00
Klaas Pieter Annema
e552b022ba
Merge branch 'pull-request-1302'
2011-06-24 12:21:02 +02:00
Antoine Mercadal
af0a479f88
small style fix
2011-06-21 17:18:16 +02:00
Andrea D'Amore
86a28d8cc1
removed warning for Growl's framework path from relase target too
2011-06-21 17:05:00 +02:00
Andrea D'Amore
3dd178a69d
fixes warnings while building: Growl bridging protocol, menu delegate, nonexistent framework search path, parser.j compiling
2011-06-21 16:09:21 +02:00
Antoine Mercadal
417334419a
display the two last path components in title (usefull for localized bundles) + increase FSEvent latency
2011-06-20 15:37:13 +02:00
Antoine Mercadal
6c34bec51e
do not return 0 if any conversion fail (return 2 instead)
2011-06-19 19:32:42 +02:00
Antoine Mercadal
c03b3c2d34
use terminationStatus, not lenght of the nib2cib output
2011-06-19 19:24:45 +02:00
Antoine Mercadal
e97d4a8e72
fix typo in FS checking
2011-06-19 18:55:06 +02:00
Antoine Mercadal
24d0af3104
warn if something goes wrong about sourcing bash profile path + add quote on paths in NSTasks' arguments
2011-06-18 21:07:15 +02:00
Antoine Mercadal
5790e99359
small style fix
2011-06-16 20:39:29 +02:00
Tobias Adamson
0d6c2c9890
Changed from using system call to NSTask, this enables the app to report on incorrect nib2cib and objj settings and usage.
...
Examples where a Growl message will now be send to indicate error
1. nib2cib or objj not found in path
2. Compilation errors with objj
3. XIB files with Cocoa components that are not supported yet
2011-06-16 18:57:34 +08:00
Ross Boucher
cbabb544ab
bootstrap should have a +x bit.
2011-06-15 12:54:11 -07:00
Alexander Ljungberg
42220e057b
CPNumberFormatter maximum fractional digits support. Optimise by only creating CPDecimalNumberHandler when needed and caching the result.
2011-06-13 23:19:06 -07:00
Derek Hammer
c5df9c973f
Making the directions go before the prompt (doh!). Changing bootstrap to
...
+x.
2011-06-13 21:50:17 -07:00
Alexander Ljungberg
91509e7d36
CPFormatter support for CPControl which actually works.
2011-06-13 18:39:17 -07:00
Derek Hammer
b89aa9af0d
Merge branch 'master' of git://github.com/280north/cappuccino into include-ojtest
2011-06-12 10:07:15 -07:00
Alexander Ljungberg
4421b55613
Fixed: level indicator warning and critical level ranges should be inclusive.
2011-06-11 04:43:16 -07:00
Alexander Ljungberg
75d9929483
Fixed: pressing the up arrow key in a table view would cause a crash if the previous selection was non continuous.
2011-06-11 04:21:49 -07:00
Alexander Ljungberg
7c78c2ef5d
Nib2cib support for formatters.
2011-06-11 03:59:52 -07:00
Alexander Ljungberg
3758c86d20
CPFormatter support for CPControl.
2011-06-11 03:59:33 -07:00
Alexander Ljungberg
ada547a79d
Temporary numberFromString:.
2011-06-11 03:36:44 -07:00
Alexander Ljungberg
445adcb47f
CPNumberFormatter rounding mode support.
2011-06-10 11:41:23 -07:00
Alexander Ljungberg
4e9b975ca8
Simple CPNumberFormatter stringFromNumber for CPNumberFormatterDecimalStyle.
2011-06-10 11:23:36 -07:00
Vladimir Pouzanov
5d26066e02
Fixed dictionaryWithJSObject on arrays with null values
2011-06-08 14:10:10 +03:00
Antoine Mercadal
de73d86684
Merge pull request #1 from gustaf-lindqvist/xcodecapp-cocoa-space-in-path-fix
...
xcodecapp-cocoa space in path fix
Reviewed.
2011-06-08 01:11:02 -07:00
Gustaf Lindqvist
d6244f090e
Fix white spaces in path for system()
2011-06-08 09:10:28 +02:00
Alexander Ljungberg
aac09d8208
Clicking on a non-editable level indicator in a table row now selects that row.
2011-06-06 00:44:15 -04:00
Alexander Ljungberg
a127fc9ec3
'Enabled' support for nib2cib of NSLevelIndicator.
2011-06-06 00:35:41 -04:00
Alexander Ljungberg
551aa300ea
Merge branch 'master' of github.com:280north/cappuccino
2011-06-06 00:11:23 -04:00
Alexander Ljungberg
485e59b5eb
More handlesContentAsCompoundValue, although fairly guess-work based. More research needed in the future.
2011-06-06 00:11:04 -04:00
Alexander Ljungberg
fdfcbf1da2
CPArrayController handlesContentAsCompoundValue support for contentArray binding.
2011-06-05 19:39:28 -04:00
Alexander Ljungberg
0f5eee0258
nib2cib compatible CPNumberFormatter skeleton.
2011-06-05 19:27:21 -04:00
Alexander Ljungberg
870492eb96
Fix selection behaviour in previous commit.
2011-06-05 19:19:14 -04:00
Alexander Ljungberg
b50005049e
Fixed: array controller remove: would not only remove selected rows, but any other rows isEqual: to the selected rows.
2011-06-05 18:57:36 -04:00
Alexander Ljungberg
0e890e19ea
Fixed: during CPUserDefault change notifications, objectForKey: could return the value from prior to the change.
2011-06-05 17:32:56 -04:00
Alexander Ljungberg
59aabc150c
Crude but functional infinite recursion checker, optional at compile time.
2011-06-04 01:23:24 -04:00
Alexander Ljungberg
b159815349
Suppress binding updates support.
2011-06-04 00:57:57 -04:00
Tom Robinson
fa0a4d3b56
Fix tests for CI.
2011-06-03 21:15:25 -07:00
Aparajita Fishman
1c44dc1052
Removed unused variable, fixed typo
2011-06-03 18:09:57 -07:00
Alexander Ljungberg
bfe5afaddd
Whitespace cleanup.
2011-06-03 00:05:30 -04:00
Alexander Ljungberg
64e907156c
Minor array controller optimisation: don't send a filterPredicate change notification if clearsFilterPredicateOnInsertion is YES but filterPredicate is already nil when insertObject:atArrangedObjectIndex: is called.
2011-06-03 00:00:39 -04:00
Alexander Ljungberg
5d01ca428c
Optimise CPArrayController insertObject:atArrangedObjectIndex: by not attempting to arrange the content array. The given index is only meant for the arrangedObjects.
2011-06-02 23:41:03 -04:00
Alexander Ljungberg
0a9c9741e8
CPArray mutableCopy.
2011-06-02 15:09:54 -04:00
Alexander Ljungberg
2a3b9e13c3
Merge branch 'master' of github.com:280north/cappuccino
2011-06-02 12:35:23 -04:00
Alexander Ljungberg
4e07c9f9ee
Decode but mostly ignore NSImages in nib2cib. Fixed: radio groups in IB come with an NSImage and so would not nib2cib anymore after the recent addition of template image support in NSButton.
2011-06-02 12:33:43 -04:00
Aparajita Fishman
4f7fbdc344
Use Menlo if Consolas is not available
2011-06-01 18:22:57 -07:00
Luc Vauvillier
6fe49fbf8d
_CPThemeAttribute fix : encode missing _defaultTheme value
2011-06-01 17:02:01 +02:00
Klaas Pieter Annema
9f2804c700
Merge branch '0.9.1b'
2011-06-01 12:10:10 +02:00
Klaas Pieter Annema
16183cca09
fix nib2cibbed controls enabled state
2011-06-01 12:09:49 +02:00
Klaas Pieter Annema
0af3b2f97c
Merge branch 'master' of github.com:280north/cappuccino
2011-05-31 14:38:38 +02:00
Klaas Pieter Annema
065227a467
Merge branch '0.9.1b'
2011-05-31 14:38:18 +02:00
Klaas Pieter Annema
753257a650
Always tile the collectionview
...
A collectionview should always tile because it needs to adjusts it's size to properly work with an enclosing scrollview
2011-05-31 14:37:29 +02:00
Derek Hammer
c5f37e665b
Adding OJTest installation to the bootstrap.sh file. Also added the
...
cappuccino/objective-j packages back to the file.
2011-05-31 03:05:24 -07:00
Francisco Ryan Tolmasky I
671666e842
Fix selector typo.
...
Reviewed by me.
2011-05-31 01:27:41 -07:00
Francisco Ryan Tolmasky I
b9ba1bbe93
Merge branch 'master' of github.com:280north/cappuccino
2011-05-31 00:46:23 -07:00
Francisco Ryan Tolmasky I
33e4fea0ec
Fix forwarding in Objective-J (and many infinite recursions, such as when there is no superclass):
...
1. Fix infinite recursion when no superclass and method isn't implemented. Closes #469 .
2. Fix infinite recursion when coercing an object without description implemented into a string. Closes #1289 .
3. Add -forwardingTargetForSelector: support.
Reviewed by @tolmasky.
2011-05-31 00:44:16 -07:00
Aparajita Fishman
99180ba001
Enable escape as key equivalent.
2011-05-30 23:20:06 -07:00
Randall Luecke
2887d4224c
Remove empty setThemeState method in CPTableView
2011-05-30 23:08:41 -07:00
Randall Luecke
7a52805587
Support for setContinuous in CPLevelIndicator
2011-05-30 22:16:38 -07:00
Alexander Ljungberg
56d0ebe420
Typo fix.
2011-05-30 22:48:12 -04:00
Alexander Ljungberg
b4b54e5744
Partial button image support in nib2cib covering NSAddTemplate and NSRemoveTemplate (standard plus and minus buttons).
2011-05-30 22:16:42 -04:00
Alexander Ljungberg
8a9d997b44
Manual test for CPUserDefaultsController and nib2cib of it.
2011-05-30 21:34:20 -04:00
Alexander Ljungberg
e1f55fce3a
nib2cib support for CPUserDefaultsController.
2011-05-30 21:15:43 -04:00
Alexander Ljungberg
6f6ce40c06
CPUserDefaultsController.
2011-05-30 21:03:44 -04:00
Alexander Ljungberg
e32b302c59
Fixed: don't return nil from CPController initWithCoder:.
2011-05-30 20:45:35 -04:00
Alexander Ljungberg
302e753ebc
Table nib2cib test with taller table rows and a level indicator cell. The latter is very useful when comparing cell spacing between Cappuccino and Cocoa.
2011-05-30 18:05:49 -04:00
Alexander Ljungberg
1c007461bd
Draw table view gridlines precisely inside the right side of cells so that grid line positioning and spacing matches Cocoa.
...
Checked against Cocoa with 0, 1, 2 and 3 px intercell spacing.
2011-05-30 17:46:46 -04:00
Alexander Ljungberg
3d1638c780
Fixed: remove unused var block.
2011-05-30 16:56:24 -04:00
Alexander Ljungberg
c5965c41d5
Fixed: don't repeat level indicator graphics downwards when the indicator is made taller than its natural size. Instead centre the indicator vertically.
...
This is not strictly like Cocoa - Cocoa places it on top vertically. But vertical centring makes more sense in e.g. tables with a large row height so it seems to make sense to deviate slightly here.
2011-05-30 16:21:50 -04:00
Alexander Ljungberg
7cc6fa348c
Less flashy level indicator colours.
2011-05-30 12:56:35 -04:00
Alexander Ljungberg
1e6bca2214
Test level indicator with many segments.
2011-05-30 12:44:00 -04:00
Alexander Ljungberg
d199bd86e6
More square level indicator segments which look better when each segment is very small. Colour and shadowing tweaks. Removed most of control border for a cleaner look.
2011-05-30 12:42:19 -04:00
Alexander Ljungberg
6338b01cb4
Fix accidental global.
2011-05-30 11:56:52 -04:00
Alexander Ljungberg
7714bcc34c
Merge pull request #1288 from primalmotion/cappuccino
...
---
This patch avoids to have this kind of problem when too much segments are present:
<http://gyazo.com/36da2019514c429dd6edc2318fc101fc >
And do this:
<http://gyazo.com/65e23eb978dc493be96633c612e538ca.png >
+ fix typo ("self" not "sef")
2011-05-30 11:55:21 -04:00
Antoine Mercadal
e6f029c1fa
use all remaining space for last segment
2011-05-30 17:17:42 +02:00
Antoine Mercadal
fe606e4757
fix typo + wrong sizing behaviour with too much segment
2011-05-30 17:06:39 +02:00
Alexander Ljungberg
a6ee37e030
Support level indicators as table cells through nib2cib.
2011-05-30 00:56:28 -04:00
Alexander Ljungberg
71364c9b1a
Fixed: very large numbers written to 280north1 plist files would be read back as very small numbers.
...
This affected nib2cib and cib files in particular.
2011-05-30 00:51:35 -04:00
Alexander Ljungberg
a34155da61
Whitespace cleanup.
2011-05-30 00:43:07 -04:00
Alexander Ljungberg
2b8fa11b84
Optimise level indicator archiving (don't record static background colour).
2011-05-30 00:03:12 -04:00
Alexander Ljungberg
8fdcbac2bd
Fix CPTableColumn width, minWidth and maxWidth encoding.
2011-05-29 23:18:30 -04:00
Alexander Ljungberg
4316192b8d
Support NSButtonCell (e.g. checkboxes) in table columns through nib2cib.
2011-05-29 21:24:41 -04:00
Alexander Ljungberg
19090de380
Relayout level indicator as needed.
2011-05-29 16:47:36 -04:00
Alexander Ljungberg
85c5094c8b
Manual test for level indicator.
2011-05-29 16:17:40 -04:00
Alexander Ljungberg
ed8811e66b
Click and drag edit support for level indicators.
2011-05-29 16:04:27 -04:00
Alexander Ljungberg
b2e13919e0
Support for editing level indicators.
2011-05-29 15:41:53 -04:00
Alexander Ljungberg
b4dabb6c35
Fix level indicator property names.
2011-05-29 15:26:21 -04:00
Alexander Ljungberg
e9d0be1b6a
Level indicator drawing.
2011-05-29 15:17:28 -04:00
Alexander Ljungberg
3f2607c2d0
CPLevelIndicator nib2cib support.
2011-05-28 18:44:32 -04:00
Alexander Ljungberg
ceaea9c5b0
Remove leftover reference code.
2011-05-28 18:44:16 -04:00
Alexander Ljungberg
5419272e48
Fixed: don't import NSSlider.j in NSSlider.j.
2011-05-28 18:08:17 -04:00
Alexander Ljungberg
888fc89f86
Foundation for CPLevelIndicator.
2011-05-28 17:53:39 -04:00
Alexander Ljungberg
66c644641c
Merge branch 'master' of github.com:280north/cappuccino
2011-05-28 02:08:22 -04:00
Alexander Ljungberg
669c6d4ac0
Merge branch '0.9.1b'
2011-05-28 02:08:03 -04:00
Alexander Ljungberg
8ed06169d1
Merge branch '0.9.1b' of github.com:280north/cappuccino into 0.9.1b
2011-05-28 02:07:33 -04:00
Alexander Ljungberg
cf04fcc9d0
Verify correctness of observation notifications on arrangedObjects when the addObjects: message is sent.
2011-05-28 02:06:27 -04:00
Alexander Ljungberg
2e5081b137
Optimise array controller addObject: by eliminating entirely pointless rearrange when added objects did not pass the filter. Also avoided double rearrange if clearsFilterPredicateOnInsertion.
...
CPArrayControllerPerformance.j execution time on "testAddObject_, sorted, filtered" down from ~420ms to ~60ms on my machine.
2011-05-28 02:02:24 -04:00
Alexander Ljungberg
a1a06c3f75
Performance test array controller addObject: when clearing the filter predicate.
2011-05-28 01:47:25 -04:00
Alexander Ljungberg
e4950bd831
Fixed: duplicate observer notification for array controller addObject: (on arrangedObjects).
2011-05-28 01:26:28 -04:00
Alexander Ljungberg
607f681780
Typo fix.
2011-05-26 23:59:49 -04:00
Alexander Ljungberg
6eb4bf6656
Add temporary @ref and @deref analogs.
2011-05-26 23:59:08 -04:00
Aparajita Fishman
9377cf9128
Test app and unit test to validate pinned ranges in beginsWith/endsWith predicate comparison.
2011-05-26 14:31:20 -07:00
Aparajita Fishman
e17d8ca302
Pin ranges to valid values.
2011-05-26 14:31:13 -07:00
Klaas Pieter Annema
9b3926cada
Merge branch '0.9.1b'
2011-05-24 12:30:07 +02:00
Klaas Pieter Annema
815e64356d
implement _minimumFrameSize in CPButton
2011-05-24 12:29:23 +02:00
Klaas Pieter Annema
249a63af95
don't use remove method for removeMany selector
2011-05-24 12:28:25 +02:00
Klaas Pieter Annema
8520247605
Merge pull request #1247 from primalmotion/bundletask-option-preventsnib2cib
...
add setPreventsNib2Cib to bundletask.js
2011-05-23 22:45:42 -07:00
Aparajita Fishman
acbaa1eec4
Restored space, backspace and escape as key equivalents, but only if the first responder is not a CPTextField. Updated test app to show clearly the effect of this change.
2011-05-23 16:31:52 -07:00
Alexander Ljungberg
686bce00d9
Merge branch '0.9.1b'
2011-05-23 13:49:09 -04:00
Alexander Ljungberg
8ae94c2745
Put CPBox in the right documentation module and add some basic documentation.
2011-05-23 13:46:09 -04:00
Klaas Pieter Annema
8feb5b5cee
Merge branch 'right-command-key-fix' of https://github.com/aparajita/cappuccino into aparajita-right-command-key-fix
2011-05-23 11:14:12 +02:00
cacaodev and Klaas Pieter Annema
2b52f7d8da
- Fixed a bug where the right control was incorrectly recreated with a default value when switching operators.
...
- As per cocoa, the predicate is recomputed when you send the right control action, not when you change text. Update-as-you-type can be turned ON by subclassing -_sendsActionOnIncompleteTextChange method. Default is NO.
- Rewrote _reconfigureSubviews method, should be faster.
2011-05-23 10:59:44 +02:00
cacaodev and Klaas Pieter Annema
ea660e3dd4
CPPredicateEditorRowtemplate:
...
Fixed a bug when menu item titles and their corresponding keypath expressions where different and templates created in IB.
Fixed a bug appearing in Xcode4 IB when titles and keypath where identical.
2011-05-23 10:59:43 +02:00
cacaodev and Klaas Pieter Annema
ca1a1b43f1
CPRuleEditor & CPPredicateEditor & CPPredicateEditorRowtemplate implementations with theming, nib2cib support.
...
Tests: CPRuleEditorCibTest, CPPredicateEditorCibTest, SmartFoldersDemo: a real world usage of CPPredicateEditor.
Documentation for these 3 new classes.
2011-05-23 10:59:43 +02:00
Aparajita Fishman
65b6ff6ecc
Fixed set of keys that can be considered a key equivalent, removed redundant call to performKeyEquivalent, test app
2011-05-22 18:05:48 -07:00
Ross Boucher
6c6ac4bd2e
Merge pull request #1276 from hammerdr/Documentation
...
Elaborate what setItemPrototype expects and does in CPCollectionView.
2011-05-22 17:17:04 -07:00
Aparajita Fishman
59e5689d1a
On WebKit (at least on Mac), right Command key code is 93, not 91. This was not being interpreted correctly.
2011-05-22 17:07:49 -07:00
Derek Hammer
7194a6961a
Forgot a forward slash to end the pre tag.
2011-05-22 17:58:25 -05:00
Derek Hammer
e404217e8b
Elaborate what setItemPrototype expects and does in CPCollectionView.
2011-05-22 17:55:17 -05:00
Randy Luecke
f419629ce4
Merge pull request #1260 from aparajita/cpmenu-remove-all
...
Added CPMenu -removeAll
2011-05-21 18:21:15 -07:00
Randy Luecke
35f958f1a7
Merge pull request #1273 from aparajita/cornerview-fix
...
CPTableView does not remove corner view if header view is removed
2011-05-21 18:20:43 -07:00
Antoine Mercadal
df7aa30267
include xcodecapp-cocoa in the Cappuccino build process.
2011-05-21 00:39:50 +02:00
Antoine Mercadal
0f4aab926e
add Jakefile to build xcodecapp-cocoa
2011-05-21 00:24:10 +02:00
Antoine Mercadal
7f3512d22c
update .gitignore
2011-05-21 00:23:47 +02:00
Antoine Mercadal
a6b5ed22b0
make parse.j LGPLv3
2011-05-21 00:02:22 +02:00
Antoine Mercadal
e843b31287
update license of xcodecapp-cocoa
2011-05-20 23:39:13 +02:00
Antoine Mercadal
06a5aa45ba
Merge remote branch 'xcodecapp-cocoa/master' into xcodecapp-cocoa-merge
2011-05-20 23:34:07 +02:00
Antoine Mercadal
45a5eed62f
Merge xcodecapp-cocoa
2011-05-20 23:32:17 +02:00
Antoine Mercadal
188e27e931
update status bar icon
2011-05-20 23:05:41 +02:00
Aparajita Fishman
f7a7f06c67
Use CPLog instead of console.log
2011-05-20 08:12:37 -07:00
Antoine Mercadal
ed560ed489
display ... when actually doing some jobs
2011-05-20 12:13:28 +02:00
Antoine Mercadal
186eb66f52
Make XCodeCapp-Cocoa a status bar application
...
+ fix bash_profile, thanks to @natemartinsf
+ add gitignore
2011-05-20 11:59:43 +02:00
Aparajita Fishman
860f0d5846
CPColor and CPImage enhancements
...
- Enhanced -description method of CPImage and CPColor to show the exact content, especially for pattern colors.
- Added CPColorWithImages() convenience function, analogous to PatternColor() function used in theme descriptors.
- Added @cond/@endcond in CPColor to ignore local variables.
- Sample app included.
2011-05-20 00:23:55 -07:00
Alexander Ljungberg
64f9309994
Merge pull request #1268 from primalmotion/cappuccino
...
---
This patch makes nib2cib dealing with NSButtons much more better by setting particular offsets
according to the the kind of button.
Here is a screenshot of what I have done in IB :
<http://img839.imageshack.us/img839/4379/19894787.png >
This is the rendering of nib2cib without this patch:
<http://img263.imageshack.us/img263/1708/without.png >
This is the rendering of nib2cib with this patch:
<http://img263.imageshack.us/img263/1097/with.png >
2011-05-19 21:54:12 -04:00
Alexander Ljungberg
1c201d7dba
Refs #1270 . Fix a typo.
2011-05-19 21:50:30 -04:00
Alexander Ljungberg
e1cd4d0f6e
Merge pull request #1270 from aparajita/cappuccino
...
---
- Worked around a major bug in doxygen. It turns out that doxygen would not generate documentation for the first method -- or sometimes all methods (e.g. CPPredicate) -- if the ivar block for a class was missing or empty. This is solved now by inserting a dummy __doxygen__ ivar block.
- Missed a text substitution
- Darkened up the method header a bit to make it easier for the eye to anchor on.
- Changed to centered, fixed-width layout, it results in shorter line lengths which reads more easily.
- Moved support files to separate support directory.
- Removed blank lines at end of multi-parameter method prototypes.
- Fixed font declaration so fonts are correct in FireFox.
- Added spacing between parameter descriptions in method prototype.
- Fixed formatting of class description for CPPredicate.
- Added a missing @endverbatim to CPExpression.j.
2011-05-19 21:44:49 -04:00
Alexander Ljungberg
8fcbf3ce0c
Merge branch '0.9.1'
2011-05-19 21:39:18 -04:00
Antoine Mercadal and Alexander Ljungberg
915867e296
update the CPToolTip manual test
2011-05-19 21:33:36 -04:00
Antoine Mercadal and Alexander Ljungberg
ac24b9ee68
Fix Firefox problem. close #1271
...
This patch fix the blink problem with FF, by changing the positionning of tooltips, which by the way reflects more the Cocoa behaviour.
2011-05-19 21:33:25 -04:00
Aparajita Fishman
aa7345935d
Oops, accessor methods weren't being synthesized, removed some cruft
2011-05-19 17:10:50 -07:00
Aparajita Fishman
3937e66e06
Major fix to documentation generation:
...
- It turns out doxygen would not generate documentation for the first method in a file (or sometimes any methods at all) if there was no ivar block or an empty ivar block. Now a dummy __doxygen__ ivar is inserted in empty blocks to force correct behavior.
- Added a missing @endverbatim to CPExpression.j.
- Tweaked class documentation for CPPredicate.j.
2011-05-19 16:47:11 -07:00
Aparajita Fishman
634fa7b850
Stupid Uber Glory bundle duplicated the file a few times when stripping whitespace.
2011-05-18 17:33:30 -07:00
Aparajita Fishman
f132ec5a50
Fixed formatting of lists and code in class description. The code did not change, I don't know why git says it did.
2011-05-18 16:55:43 -07:00
Aparajita Fishman
896f91215e
Whitespace cleanup
2011-05-18 16:54:21 -07:00
Alexander Ljungberg
b3d3f742f1
Merge pull request #1272 from primalmotion/cappuccino
...
---
This patch fix the blink problem with FF, by changing the positionning of tooltips, which by the way reflects more the Cocoa behaviour.
2011-05-18 14:50:53 -04:00
Antoine Mercadal
bf516b5fc5
update the CPToolTip manual test
2011-05-18 19:33:01 +02:00
Aparajita Fishman
4ab69ebb68
If there is no header view, there should be no corner view. This is what Cocoa does. Also for correctness -enclosingScrollView should be used to get the table's scrollview. Test app included.
2011-05-18 10:30:43 -07:00
Antoine Mercadal
5a7c38d6eb
Fix Firefox problem. close #1271
...
This patch fix the blink problem with FF, by changing the positionning of tooltips, which by the way reflects more the Cocoa behaviour.
2011-05-18 19:30:16 +02:00
Aparajita Fishman
6d962bc51a
More documentation enhancements...
...
- Changed to centered, fixed-width layout, it results in shorter line lengths which reads more easily.
- Moved support files to separate support directory.
- Removed blank lines at end of multi-parameter method prototypes.
2011-05-18 07:50:27 -07:00
Antoine Mercadal
e8a38e0bc0
add small visual test project
2011-05-18 08:51:05 +02:00
Aparajita Fishman
800e32edad
Missed a text substitution, darkened up the method header a bit
2011-05-17 21:14:01 -07:00
Antoine Mercadal
4acb757aec
adjust CPTextField positioning. Offsets changed since the usage of the new Aristo Art
2011-05-17 23:02:25 +02:00
Antoine Mercadal
9708985901
Make CPPopUpButton positionning pixel perfect
2011-05-17 22:16:26 +02:00
Ross Boucher
27a1c5e9a4
Merge pull request #1269 from aparajita/CPScrollView-doc-tweak
...
CPScrollView documentation tweak
2011-05-17 12:40:24 -07:00
Aparajita Fishman
d7ef31c4f5
Documentation tweak
2011-05-17 10:54:52 -07:00
Antoine Mercadal
fde18bba2e
Correct button positionning.
...
This patch makes nib2cib dealing with NSButtons much more better by setting particular offsets
according the the kind of button.
2011-05-17 19:30:42 +02:00
Alexander Ljungberg
f7a2a2e6fd
Merge branch '0.9.1'
...
Conflicts:
Tools/nib2cib/NSFont.j
2011-05-17 01:18:56 -04:00
Alexander Ljungberg
fb07e2ae06
Refs #1266 . Simple manual/visual test for font conversion.
2011-05-17 01:17:38 -04:00
Alexander Ljungberg
f414ed2e8d
Refs #1266 . Still convert default font size in nib2cib even if the default font is bold.
...
(E.g. Lucida Grande 13 Bold should become Arial 12 Bold, not Arial 13 Bold.)
2011-05-17 01:16:03 -04:00
Alexander Ljungberg
86f3cc1831
Refs #1266 . Minor optimisation.
2011-05-17 00:45:36 -04:00
Antoine Mercadal and Alexander Ljungberg
e77c706c38
nib2cib now takes care of bold and italic
...
This allows to set bold and italic in IB even if the size of the font is the default one
2011-05-17 00:45:28 -04:00
Alexander Ljungberg
8bdb0f6215
Replace extremely outdated and defunct NibApp manual test with a new one based on current templates, preserving and fixing the good parts of NibApp.
2011-05-17 00:40:41 -04:00
Alexander Ljungberg
ec5c0e361d
Refs #1266 . Minor optimisation.
2011-05-17 00:38:39 -04:00
Alexander Ljungberg
533dbbfc69
Merge branch 'master' of github.com:280north/cappuccino
2011-05-17 00:12:08 -04:00
Alexander Ljungberg
0e04f7cae3
Merge pull request #1266 from primalmotion/cappuccino
...
---
This allows to set bold and italic in IB even if the size of the font is the default one
2011-05-17 00:11:57 -04:00
Antoine Mercadal
4a7c2a96db
compense the y placement
2011-05-17 01:24:54 +02:00
Antoine Mercadal
0b09ada144
Do not truncate bold labels
...
When label with default size are bold, letter like p, g, q etc,
are truncated like in http://gyazo.com/d6c25af20574a96f9af0f288a7bd802a.png
This commit fix this.
2011-05-17 01:02:53 +02:00
Antoine Mercadal
e4c708efde
nib2cib now takes care of bold and italic
...
This allows to set bold and italic in IB even if the size of the font is the default one
2011-05-17 00:28:33 +02:00
Francisco Ryan Tolmasky I
28bd18fab6
Merge pull request #1265 from aparajita/NSColorWell-enabled
...
NSColorWell was not setting its enabled state
2011-05-16 12:28:29 -07:00
Aparajita Fishman
c9faea8753
NSColorWell was not setting its enabled state
2011-05-16 11:16:22 -07:00
Alexander Ljungberg
24c5b5f6c9
Merge branch '0.9.1'
2011-05-15 19:48:32 -04:00
Alexander Ljungberg
868201b492
Merge pull request #1033 from jlujan/cappuccino
...
---
The expression in the while loop in setParameters results in the wrong value being assigned to "key" which results in malformed param tags that look like the following:
<param name="[object HTMLObjectElement]" >
Also, _params is not checked before assignment in setParameters which will overwrite flashvars if setFlashVars was called before setParameters.
Addresses issues #1031 and #1032
2011-05-15 19:47:43 -04:00
Alexander Ljungberg
8db94c0849
Merge branch '0.9.1'
2011-05-15 19:37:10 -04:00
Alexander Ljungberg
f8984ced97
Refs #903 . Comment out failing tests until Obj-J 2 fixes them.
2011-05-15 19:36:04 -04:00
Alexander Ljungberg
7539b5b06d
Merge pull request #903 from paulbaumgart/cappuccino
...
---
Some OJTestCases for the Preprocessor to help make sure it still works as expected when it gets revamped to remove with() from method code generation.
Note that this adds a test case which the current Preprocessor fails: http://github.com/paulbaumgart/cappuccino/commit/8cc61cccfd78debe96eba96a7b332938e6d5377e#L1R81
2011-05-15 19:25:10 -04:00
Alexander Ljungberg
4ae47ed7c4
Merge branch 'master' of github.com:280north/cappuccino
2011-05-15 19:06:26 -04:00
Alexander Ljungberg
23cc507b12
Refs #1264 . Make tooltip delay a constant and reduce it to 1.0 second to match Cocoa a little more closely.
...
Perhaps we should implement something like [[CPToolTipManager sharedToolTipManager] setInitialToolTipDelay:X] for completeness.
2011-05-15 19:01:26 -04:00
Alexander Ljungberg
e9cfc806b6
Refs #1264 . Size to fit small tooltips to remove empty whitespace on right side.
2011-05-15 18:58:01 -04:00
Alexander Ljungberg
5994c48d5f
Refs #1264 . Fix accidental global, cleanup.
2011-05-15 18:36:21 -04:00
Alexander Ljungberg
bba0de3306
Merge pull request #1264 from primalmotion/cappuccino
...
---
These commits make the tooltips looking like cocoa ones.
- More simple implementation (only one file added _CPToolTips.j)
- Removal of CPAttachedWindow and CPAttachedWindowView
- Placement is based on mouse position (just like cocoa)
- It will try to find the best placement in case of a lake of space
Here is a screenshot : http://twitpic.com/4x401t
2011-05-15 18:29:51 -04:00
Francisco Ryan Tolmasky I
55937daa20
Merge pull request #1263 from aparajita/CPMenuManager-cleanup
...
_CPMenuManager style cleanup
2011-05-15 13:37:08 -07:00
Antoine Mercadal
fe53f2503b
let a fancy padding in case of placement forcing due to a lack of space
2011-05-15 22:36:33 +02:00
Antoine Mercadal
9058857403
style
2011-05-15 22:17:11 +02:00
Antoine Mercadal
c7517d81c7
remove useless variables
2011-05-15 22:17:11 +02:00
Antoine Mercadal
b8f46565ef
make CPToolTip a framework private class
2011-05-15 22:17:11 +02:00
Antoine Mercadal
10940ace13
improve CPToolTips. Make them more cocoa like. Remove usage of CPAttachedWindow
2011-05-15 22:15:37 +02:00
Antoine Mercadal
c57842d125
move Tooltips to CPView
2011-05-15 22:14:44 +02:00
Aparajita Fishman
bb3ed30b4e
Style cleanup
2011-05-15 12:15:00 -07:00
Alexander Ljungberg
1b1bd039c9
Merge branch '0.9.1'
2011-05-14 13:32:22 -04:00
Alexander Ljungberg
3fe907f007
Merge remote branch 'aparajita/better-docs' into 0.9.1
2011-05-14 13:28:19 -04:00
Alexander Ljungberg
c784a2a1ca
Merge branch '0.9.1'
2011-05-14 13:14:04 -04:00
Alexander Ljungberg
d4d01d9686
Refs #1261 . Clean up README.html tmp build file when jake docs is done.
2011-05-14 13:10:49 -04:00
Alexander Ljungberg
7ca8d0fb01
Whitespace cleanup.
2011-05-14 13:05:07 -04:00
Aparajita Fishman
b985081184
Tweak the class list page
2011-05-12 23:16:50 -04:00
Aparajita Fishman
02f61fa413
Lightened up box around method prototype
2011-05-12 16:56:28 -04:00
Alexander Ljungberg
1a8808a4fd
Merge pull request #1261 from aparajita/cappuccino
...
---
- Added generic facility for pre- and post-processor scripts to be run.
- Added support utility script for inclusion by processors.
- Totally overhauled css to make the pages more readable (I hope).
- Fixed some doc errors in CPTableView.
- Dont generate XML.
- Added colorize() and colorPrint() functions to common.jake.
- Added docs-no-frame task for generating docs without a sidebar frame.
2011-05-12 15:02:57 -04:00
Aparajita Fishman
be5bbdcb32
Another overhaul of doc generation.
...
- Added generic facility for pre- and post-processor scripts to be run.
- Added support utility script for inclusion by processors.
- Totally overhauled css to make the pages more readable (I hope).
- Fixed some doc errors in CPTableView.
- Don't generate XML.
- Added colorize() and colorPrint() functions to common.jake.
- Added docs-no-frame task for generating docs without a sidebar frame.
2011-05-12 14:41:54 -04:00
Aparajita Fishman
1e9798eead
Whitespace cleanup
2011-05-11 23:59:43 -04:00
Aparajita Fishman
3242e35250
Added CPMenu -removeAll method, removed unused internal _itemIsHighlighted method, test app
2011-05-11 23:59:33 -04:00
Alexander Ljungberg
864c4495c3
Merge branch '0.9.1'
2011-05-11 21:39:58 -04:00
Alexander Ljungberg
1c0f679f50
Refs #1245 . Fixed: setToolTip: belongs in CPView, not CPControl.
2011-05-11 21:36:49 -04:00
Alexander Ljungberg
71763d041b
Merge branch '0.9.1'
2011-05-11 21:04:47 -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
Alexander Ljungberg
37cad2f59a
Merge pull request #1245 from primalmotion/cappuccino
...
---
This is a basic merge of the TNKits tooltip system in Cappuccino.
2011-05-11 19:30:41 -04:00
Alexander Ljungberg
4ccbd592b2
Merge branch '0.9.1'
2011-05-11 19:28:34 -04:00
Alexander Ljungberg
8f5fe55dea
Manual test for continuous buttons.
2011-05-11 19:28:01 -04:00
Alexander Ljungberg
a51a051cee
Fixed: if a button was unarchived it would have no continuous push delay and a 0 interval.
2011-05-11 19:15:44 -04:00
Alexander Ljungberg
abd32f5abc
Renamed CPButtonImageTest to CPButtonTest to reuse it for non image related tests.
...
Having fewer but slightly wider manual tests reduces the number of individual apps which need testing when changes are made.
2011-05-11 19:03:21 -04:00
Alexander Ljungberg
d869350a56
Merge branch 'master' of github.com:280north/cappuccino
2011-05-11 18:54:50 -04:00
Alexander Ljungberg
a3cd47b57c
Merge pull request #1100 from MCF/cappuccino
...
---
Move the functionality from CPSteppers _CPContinuousButton object into CPButton. Now any button can be made continuous instead of just the buttons for CPStepper.
2011-05-11 18:40:07 -04:00
Aparajita Fishman
329baa1719
Added license to header, SYS var
2011-05-11 11:39:18 -04:00
Aparajita Fishman
85080f5c58
Made colorPrint function local
2011-05-11 09:02:05 -04:00
Francisco Ryan Tolmasky I
019acb76a3
Very minor style change.
...
Reviewed by me.
2011-05-10 21:34:34 -07:00
Francisco Ryan Tolmasky I
4509df3c2a
Merge pull request #1259 from masonmark/fix-test-for-leopard-sdk
...
Fix build-time test for presence of Mac OS X 10.5 SDK
2011-05-10 21:33:25 -07:00
Mason Mark
7059dd63b7
Use code style similar to other code in file
2011-05-11 13:26:18 +09:00
Mason Mark
402c82801b
Extra newline typo
2011-05-11 13:23:09 +09:00
Mason Mark
b84d721887
Fix build-time test for presence of Mac OS X 10.5 SDK
...
Some jake build tasks test whether the 10.5 SDK is present, and if so, they build using it. However, the path to the SDK is not necessarily consistent across installations, so testing for path existence is not the best way to check whether the SDK is present. Doing it that way caused build failures on machines with both Xcode 3 and Xcode 4 installed. In this fix, we now ask xcodebuild what SDKs are present, and only fall back on the path existence test if the local copy of xcodebuild does not support listing SDKs (as is the case for old versions of xcodebuild).
2011-05-11 13:15:12 +09:00
Randy Luecke
48ccbb8883
Merge pull request #1258 from aparajita/performKeyEquivalent-docs
...
Correct -performKeyEquivalent docs.
2011-05-10 16:23:38 -07:00
Aparajita Fishman
23a5b83ea6
Corrected and added -performKeyEquivalent docs.
2011-05-10 19:20:37 -04:00
Aparajita Fishman
910f02ea50
Removed duplicate productName
2011-05-10 12:20:26 -04:00
Alexander Ljungberg
5a2e5a7de3
Fixed CPColor isEqual: for pattern images.
2011-05-09 21:38:32 -04:00
Aparajita Fishman
bfd8eefa0e
Added textFrame method to locate the text within the view
2011-05-09 21:15:12 -04:00
Alexander Ljungberg
3db05c94ab
Closes #682 . Fix CPColor isEqual:.
2011-05-09 20:59:38 -04:00
Alexander Ljungberg
1ba69aee91
Refs #1254 . Updated unit test to account for, and verify that CPSet addObject:nil/undefined throws an exception.
2011-05-09 20:03:09 -04:00
Aparajita Fishman
ea958160dc
Although it is not directly documented, CPMutableSet -addObject should raise with nil or undefined.
2011-05-09 15:49:44 -04:00
Alexander Ljungberg
3d614b38c1
Merge branch '0.9.1'
2011-05-09 14:54:54 -04:00
Alexander Ljungberg
d51921d4f3
Closes #664 . Fixed: web view sizing bug when loading contents prior to adding the view to the display tree.
2011-05-09 14:54:30 -04:00
Alexander Ljungberg
eb8d9775aa
[CPView _isVisible] convenience method.
2011-05-09 14:54:24 -04:00
Alexander Ljungberg
d5a0469333
Closes #664 . Fixed: web view sizing bug when loading contents prior to adding the view to the display tree.
2011-05-09 14:38:17 -04:00
Alexander Ljungberg
d5f281320f
[CPView _isVisible] convenience method.
2011-05-09 14:37:54 -04:00
Alexander Ljungberg
1e49072763
Merge branch '0.9.1'
2011-05-09 01:37:29 -04:00
Alexander Ljungberg
d6c7fecf64
Closes #684 . Cleaned up, added attribution and instructions for the CPWebView2 manual test.
2011-05-09 01:36:23 -04:00
Alexander Ljungberg
1392714896
Manual test which tests the effectiveness of both of the previous fixes.
...
The test also includes a URL based web view to show it works before and after the fixes.
2011-05-09 01:24:33 -04:00
Alexander Ljungberg
2563cb5dc1
Refs #684 . Handle content reflows and associated scroll updates when unhiding a CPWebViewScrollAppKit webview.
2011-05-09 01:13:57 -04:00
Alexander Ljungberg
c42295f0c7
Refs #684 . Fixed: sizing problem when revealing hidden CPWebView.
2011-05-09 00:59:45 -04:00
Alexander Ljungberg
cc9bcabf38
Remove apparently unused CPWebView ivar _scrollSize and code.
...
_scrollSize was never set anywhere in Cappuccino, yet it only had an effect if set.
2011-05-09 00:46:25 -04:00
Alexander Ljungberg
6d98583fa6
Merge branch '0.9.1'
2011-05-09 00:34:22 -04:00
Alexander Ljungberg
6f869cebc1
Closes #688 . Unit test verifying that the CPColor hexString weakness described in issue 688 has been resolved.
2011-05-09 00:29:43 -04:00
Aparajita Fishman
2d96fcf87f
Improvements to the ThemeDescriptor capp template:
...
- New/improved jake tasks: debug, release, all, clean, clobber, test, test-release, help.
- help task shows comprehensive, formatted documentation for the available tasks.
- BlendKit is automatically symlinked into the Frameworks directory if necessary as part of the build process, so that the showcase will always work.
- User can easily change the build directory by changing one line.
- Fixed incorrect placeholders in main.j.
2011-05-07 13:12:12 -04:00
Francisco Ryan Tolmasky I
5c10615c9f
Fix for could not load theme errors in nib2cib. CFBundle was using Image to determine if the platform in question supported image spriting. On Rhino, the Image object doesn't exist, throwing an exception and causing everything to break from that point forward.
...
Reviewed by me.
2011-05-06 12:40:09 -07:00
Klaas Pieter Annema
1a842b2a6f
add manual test case for previous commit
2011-05-05 13:21:50 +02:00
Klaas Pieter Annema
9842640474
add more CPMenuItem keyEquivalent mappings
2011-05-05 13:15:38 +02:00
Ross Boucher
1b1bd4f972
Merge pull request #1249 from aparajita/shared-image-fix.
...
Ensure multiple _CPImageAndTextViews sharing the same image are notified
2011-05-04 11:10:58 -07:00
Klaas Pieter Annema
d8a09722c6
Merge branch '0.9.1'
2011-05-04 19:08:42 +02:00
Klaas Pieter Annema
21a50b990f
fix 2 bugs in CPIndexPath
...
1. we didn't return a copy of the indexes
2. indexPathByRemovingLastIndex didn't remove the last index
2011-05-04 19:07:06 +02:00
Aparajita Fishman
739c844b10
Make sure multiple _CPImageAndTextViews sharing the same image are all notified when it is loaded.
2011-05-04 12:16:43 -04:00
Randall Luecke
cd05d30f86
Fix for setting a new platform window on a visisble window throwing a DOM exception.
2011-05-01 21:01:13 -04:00
Antoine Mercadal
8b566f06f0
set default build as Universal Binary
2011-04-30 15:50:36 +02:00
Antoine Mercadal
3012cc7c92
add setPreventsNib2Cib to bundletask.js
...
This allows to be able to have the XIB/NIB and CIB version in the resource
directory and to prevent to run nib2cib by just copying the CIB version.
This is very usefull in the caseof using a Linux build machine for your application
2011-04-30 11:40:47 +02:00
Klaas Pieter Annema
a9fe07f854
Merge branch '0.9.1'
2011-04-29 12:02:14 +02:00
Klaas Pieter Annema
0f88207d7b
fix out of bounds error in itemWithTitle:
2011-04-29 12:01:51 +02:00
Antoine Mercadal
28d174d9d8
handle when user click on cancle on open panel
2011-04-28 18:19:18 +02:00
Antoine Mercadal
dd892f746d
enable garbage collection + growl support
2011-04-28 18:08:27 +02:00
Antoine Mercadal
95b1b8b19d
at first launch, parse all the project in a thread
2011-04-28 17:00:11 +02:00
Antoine Mercadal
298b73ddfc
initial commit
2011-04-28 16:35:57 +02:00
Klaas Pieter Annema
81ffed3b9b
Merge branch '0.9.1'
2011-04-28 14:01:24 +02:00
Klaas Pieter Annema
ead6e4a592
implement CPDictionary's keysSortedByValueUsingSelector
2011-04-28 14:01:04 +02:00
cncolder
1a88651e4e
Merge branch 'master' into fontinfo-path-fix
2011-04-28 10:28:04 +08:00
Alexander Ljungberg
288c3e9c70
Merge branch 'master' of github.com:280north/cappuccino
2011-04-27 13:20:51 -04:00
Alexander Ljungberg
5a580f4983
Merge branch '0.9.1'
2011-04-27 13:20:39 -04:00
Alexander Ljungberg
9cf664fe7b
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-04-27 13:16:49 -04:00
Alexander Ljungberg
10ec8b528c
Correct return type for [CPURL staticResourceData].
2011-04-27 13:14:44 -04:00
Antoine Mercadal
3ddf6031fb
Support for tooltips on CPControls
2011-04-26 14:46:30 +02:00
Klaas Pieter Annema
0ee304058d
consolidate both CPKeyValueObservingTests into one
2011-04-26 11:34:47 +02:00
Klaas Pieter Annema
03e7d81ffa
fail more gracefully when attempting to remove the same observer twice
...
Before this commit we would fail gracefully for single keys. For key paths an application would crash because we would try to get the forwarder property of an undefined object. This commit makes sure we don't attempt any removal and logs a warning (just like Cocoa) about the attempt to remove an unregistered observer.
2011-04-26 11:34:40 +02:00
Klaas Pieter Annema
afb2352a7c
consolidate both CPKeyValueObservingTests into one
2011-04-26 11:20:47 +02:00
Klaas Pieter Annema
cde179786c
fail more gracefully when attempting to remove the same observer twice
...
Before this commit we would fail gracefully for single keys. For key paths an application would crash because we would try to get the forwarder property of an undefined object. This commit makes sure we don't attempt any removal and logs a warning (just like Cocoa) about the attempt to remove an unregistered observer.
2011-04-26 11:19:51 +02:00
Randall Luecke
1b3792a1cc
Exclude build directory in xcodecapp.
2011-04-25 17:13:43 -04:00
Randy Luecke
3d8b836184
Merged pull request #1243 from gorenje/more_unit_tests_2.
...
Fix shadowOffset not being copied when creating a copy of the GState
2011-04-25 10:17:35 -07:00
Randy Luecke
08d33f3c1f
Merged pull request #1242 from gorenje/unit_tests_cgcolor.
...
Some more unit tests for coregraphics - cgcolor and cgcolorspace
2011-04-25 10:16:54 -07:00
Randy Luecke
7d1b873beb
Merged pull request #1241 from gorenje/remove_two_color_assumption.
...
remove an assumption of two colors in the gradient creation stuff
2011-04-25 10:09:33 -07:00
Gerrit Riessen
6c12442870
Fixed copy the shadowOffset, similar to the copying of the affine transform
2011-04-25 14:13:16 +02:00
Gerrit Riessen
6a4d8a24be
unit test for CGContext
2011-04-25 14:13:04 +02:00
Gerrit Riessen
d147e9cbaa
unit test for CGAffineTransform
2011-04-25 14:12:52 +02:00
Randall Luecke
7480f02c22
Merge branch '0.9.1'
2011-04-24 22:29:07 -04:00
Randall Luecke
26afe7c0d8
Fix return type on sortUsingDescriptors in CPMutableArray.
2011-04-24 22:28:41 -04:00
Gerrit Riessen
c537541825
added test for color equal to color
2011-04-23 20:56:23 +02:00
Gerrit Riessen
e248433ec0
fixed an issue where setting the alpha after creating the color causes all colors referencing that color in the cache to have their alpha value changed
2011-04-23 20:50:42 +02:00
Gerrit Riessen
63e63ce7a1
fix the color creation when using shortcut functions
2011-04-23 17:22:02 +02:00
Gerrit Riessen
6e6011c5ea
testing rgb colorspace
2011-04-23 15:50:32 +02:00
Gerrit Riessen
4ce8dcef12
testing cgcolorspace
2011-04-23 15:25:11 +02:00
Gerrit Riessen
7ee414d0b8
remove an assumption of two colors in the gradient creation stuff
2011-04-23 14:10:23 +02:00
Randall Luecke
2c8972514f
Merge branch '0.9.1'
2011-04-22 12:59:25 -04:00
Randall Luecke
05b0abacd4
When dragging horizontally we need to update the location of the header view too
2011-04-22 12:59:16 -04:00
Randall Luecke
5315095182
When dragging horizontally we need to update the location of the header view too
2011-04-22 12:53:49 -04:00
Alexander Ljungberg
321c11ec9f
Merge branch '0.9.1'
2011-04-21 20:02:22 -04:00
Alexander Ljungberg
ca53e56c19
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-04-21 20:01:53 -04:00
Alexander Ljungberg
dcf1d324a5
Additional test for the previous bug.
2011-04-21 19:03:10 -04:00
Alexander Ljungberg
27211db0cc
Fixed: JS objects 'randomly' failed to unarchive.
...
The problem was that if the same JS object was decoded twice as part of a more complex object, the first decoded version was cached in its unwrapped state and not properly unwrapped the second time. This caused very hard to debug theming errors where e.g. a CPTextField's custom inset would decode fine, but a subclass of a CPTextField otherwise exactly the same would fail to decode the inset.
2011-04-21 18:59:30 -04:00
Klaas Pieter Annema
2743fe4c0d
Merge branch 'master' of github.com:280north/cappuccino
2011-04-20 21:01:24 +02:00
Klaas Pieter Annema
dc5d8f5fd3
never disable menu items with submenus
2011-04-20 21:00:52 +02:00
Randall Luecke
be96e3037d
Merge branch '0.9.1'
2011-04-20 12:25:41 -04:00
Gerrit Riessen and Randall Luecke
b249a1db13
test demostrating limitations of CGGradientCreateWithColorComponents
2011-04-20 12:25:24 -04:00
Randall Luecke
f001b7f2d3
Merge branch '0.9.1'
2011-04-20 12:24:32 -04:00
Randall Luecke
561d22168a
Stop references function arguments with arguments["name"] in CG.
2011-04-20 12:19:29 -04:00
Klaas Pieter Annema
da2c360446
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-04-20 16:22:28 +02:00
Klaas Pieter Annema
8027ebbe02
Merge branch '0.9.1'
2011-04-20 16:21:59 +02:00
Klaas Pieter Annema
71d8582f94
make unhandled keyboard events travel past the window
2011-04-20 16:21:28 +02:00
Klaas Pieter Annema
f8674b6d87
add collectionView:menuForItemAtIndex delegate
2011-04-20 14:40:47 +02:00
Klaas Pieter Annema
a086e2fa71
Merge branch '0.9.1'
2011-04-20 11:24:28 +02:00
Klaas Pieter Annema
592328f604
Merge branch 'menu-validation' into 0.9.1
2011-04-20 11:24:17 +02:00
Klaas Pieter Annema
089372be4b
Merge branch '0.9.1'
2011-04-20 11:23:58 +02:00
Klaas Pieter Annema
ba3a2a9f89
add unit test for CPMenu user interface validation
2011-04-20 11:20:07 +02:00
Klaas Pieter Annema
8e3c26c313
implement CPMenu user interface validation
2011-04-20 10:38:22 +02:00
Klaas Pieter Annema
dc264231c8
open menu bar menus directly
2011-04-20 08:58:30 +02:00
Randall Luecke
86e3717222
Fixes for splitview documentation
2011-04-19 01:46:41 -04:00
cncolder
229e43f20c
Fix build path when $CAPP_BUILD not defined.
2011-04-19 09:14:00 +08:00
Alexander Ljungberg
c4fb9ccc17
Merge branch '0.9.1'
2011-04-18 20:28:25 -04:00
Alexander Ljungberg
041f2ecf4d
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-04-18 20:16:36 -04:00
Alexander Ljungberg
1db9b6a9d8
Merge branch 'CPTableView-setDropRow_dropOperation-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPTableView-setDropRow_dropOperation-fix
2011-04-18 20:13:59 -04:00
Klaas Pieter Annema
3b6bd5a292
take min and max size from item prototype
2011-04-18 10:36:56 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
51d8fd512a
Don't traverse subprojects (folders with Jakefiles).
...
Reviewed by me.
2011-04-18 10:36:56 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
a578d4881d
Don't make IBOutlet a pointer.
...
Reviewed by me.
2011-04-18 10:36:56 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
2fb58d3ae1
Always convert to pointers, not just with NS classes.
...
Reviewed by me.
2011-04-18 10:36:56 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
35bbb1a3d5
Handle source files being deleted.
...
Reviewed by me.
2011-04-18 10:36:56 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
d5355df61c
Fix superclasses in class generation.
...
Reviewed by me.
2011-04-18 10:36:56 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
222223b847
Minor fix.
...
Reviewed by me.
2011-04-18 10:36:55 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
9e03df7416
First pass at Xcode 4 support.
...
Reviewed by me.
2011-04-18 10:36:55 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
26d124d54b
Store type info for ivars when proper flags are set.
...
Reviewed by me.
2011-04-18 10:36:55 +02:00
Aparajita Fishman and Klaas Pieter Annema
635a0d965c
If $CAPP_BUILD is not set or entity is not found in it, look in the narwhal cappuccino package.
2011-04-18 10:36:55 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
c891418849
Change NibApplication template's slider to be continuous since it makes for a better first experience.
...
Reviewed by me.
2011-04-18 10:36:55 +02:00
Klaas Pieter Annema
39459c9a44
take min and max size from item prototype
2011-04-18 10:34:45 +02:00
Francisco Ryan Tolmasky I
8661625dac
Don't traverse subprojects (folders with Jakefiles).
...
Reviewed by me.
2011-04-15 09:16:25 -07:00
Klaas Pieter Annema
38db22db06
fix a decoding bug with CPBox and it's contentView
2011-04-15 16:01:03 +02:00
Klaas Pieter Annema
722ffeda88
add CPIndexPath to Foundation.j
2011-04-15 16:01:03 +02:00
Klaas Pieter Annema
ca74f32e3b
fix a decoding bug with CPBox and it's contentView
2011-04-15 16:00:18 +02:00
Klaas Pieter Annema
a837b26ac3
add CPIndexPath to Foundation.j
2011-04-15 15:59:59 +02:00
Francisco Ryan Tolmasky I
3b9ed4c1b5
Don't make IBOutlet a pointer.
...
Reviewed by me.
2011-04-14 14:52:36 -07:00
Francisco Ryan Tolmasky I
77b5f0475d
Always convert to pointers, not just with NS classes.
...
Reviewed by me.
2011-04-14 14:47:14 -07:00
Francisco Ryan Tolmasky I
1c5d311ec2
Handle source files being deleted.
...
Reviewed by me.
2011-04-14 14:35:29 -07:00
Francisco Ryan Tolmasky I
7d3768e13d
Fix superclasses in class generation.
...
Reviewed by me.
2011-04-14 13:57:24 -07:00
Francisco Ryan Tolmasky I
e6acc7a7d8
Minor fix.
...
Reviewed by me.
2011-04-14 10:27:24 -07:00
Francisco Ryan Tolmasky I
7099acde2f
First pass at Xcode 4 support.
...
Reviewed by me.
2011-04-14 09:49:34 -07:00
Francisco Ryan Tolmasky I
96e3c4db68
Store type info for ivars when proper flags are set.
...
Reviewed by me.
2011-04-14 09:49:33 -07:00
Alexander Ljungberg
3b35703c2b
Merge branch 'master' of github.com:280north/cappuccino
2011-04-14 11:58:05 -04:00
Alexander Ljungberg
1a0b69c10b
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-04-14 11:54:40 -04:00
Alexander Ljungberg
5564b75ed0
Merge branch 'CPArrayController-arrangedObjects-fix-redux' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPArrayController-arrangedObjects-fix-redux
2011-04-14 11:52:58 -04:00
Brian Donovan
27cf82e1d3
Use our internal setter while initializing to make sure arrangedObjects is properly observable.
...
This fixes both the case I reported earlier (#1174 ) and a new issue I found where attempting to bind to a CPArrayController's arrangedObjects before calling -setContent: would throw this exception:
Uncaught CPInvalidArgumentException: Unsupported method on CPArray
The reason for this exception is that the old implementation set _arrangedObjects to an instance of _CPJavaScriptArray, whereas the new one will set it to a _CPObservableArray.
2011-04-13 21:18:33 -07:00
Aparajita Fishman
025e761929
If $CAPP_BUILD is not set or entity is not found in it, look in the narwhal cappuccino package.
2011-04-13 18:02:08 -04:00
Klaas Pieter Annema
1a99ac7681
Merge branch 'master' of github.com:280north/cappuccino
2011-04-13 17:34:40 +02:00
Francisco Ryan Tolmasky I and Klaas Pieter Annema
1ecbe997df
Change NibApplication template's slider to be continuous since it makes for a better first experience.
...
Reviewed by me.
2011-04-13 17:33:52 +02:00
Klaas Pieter Annema
1d28b120dc
fix CPOutlineView providing the dragged items in reverse order
2011-04-13 17:31:29 +02:00
Klaas Pieter Annema
97289d9070
add CPCoding support to CPIndexPath
2011-04-13 17:31:14 +02:00
Klaas Pieter Annema
a303b3c04f
Merge branch '0.9.1'
2011-04-13 08:27:53 +02:00
Klaas Pieter Annema
c317274a26
Merge branch 'purem-master' into 0.9.1
2011-04-13 08:27:45 +02:00
Klaas Pieter Annema
547e57c014
Merge branch 'master' of https://github.com/purem/cappuccino into purem-master
2011-04-13 08:27:23 +02:00
Klaas Pieter Annema
5a1a7f2c86
Merge branch 'purem-master'
2011-04-13 08:24:56 +02:00
Klaas Pieter Annema
fb866699e5
Merge branch 'master' of https://github.com/purem/cappuccino into purem-master
2011-04-13 08:24:47 +02:00
Francisco Ryan Tolmasky I
cf487ba4de
Change NibApplication template's slider to be continuous since it makes for a better first experience.
...
Reviewed by me.
2011-04-12 09:49:14 -07:00
Brian Donovan
f79203f5d5
Fix feedback view when retargeting the drop row & operation.
...
CPTableView was inappropriately preserving the retargeted drop row & operation as the drag operation continued, causing the data source call to - tableView:validateDrop:proposedRow:proposedDropOperation: to echo any row and operation set by the first call to -setDropRow:dropOperation:, making it impossible for the data source to determine new values for -setDropRow:dropOperation:, making the feedback view stay in the same place it was initially drawn.
2011-04-11 15:00:20 -07:00
purem
d7fe42387c
Edited bootstrap to find zsh's configuration file ~/.zshrc by default
2011-04-11 11:16:10 -07:00
Alexander Ljungberg
ff7f469f9f
Fixed: CPColor colorWithCSSString did not properly handle the alpha component of the CSS rbga() syntax. Fixes #687 .
2011-04-10 22:16:28 -04:00
Alexander Ljungberg
e44ffdc7f4
CPString subtringWithRange: and rangeOfString:options:range now throws CPRangeException for out of bounds ranges.
2011-04-10 21:20:22 -04:00
Alexander Ljungberg
91ef6bf925
Fixed: CPString rangeOfString:options:range returned locations relative to the passed-in range instead of the full string.
2011-04-10 21:05:43 -04:00
Alexander Ljungberg
a33dd51d8e
Fixed: searching a string for @"" with CPString rangeOfString returned results other than CPNotFound.
2011-04-10 20:38:51 -04:00
Alexander Ljungberg
2166fc1d51
Fixed: CPString rangeOfString: anchored backwards search did not work.
2011-04-10 20:19:04 -04:00
Alexander Ljungberg
b29e722132
Fixed: CPString rangeOfString: backwards search did not work. Fixes #1065 .
2011-04-10 20:12:33 -04:00
Alexander Ljungberg
06122bba19
Test CPString rangeOfString: in CPCaseInsensitiveSearch | CPBackwardsSearch mode.
2011-04-10 20:10:08 -04:00
Alexander Ljungberg
b40f920ec6
Fixed: don't crash on the first mouse move event after merge #1211 . Fixes #1221 .
2011-04-10 18:33:57 -04:00
Alexander Ljungberg
e327c39776
Code formatting.
2011-04-10 17:26:22 -04:00
Alexander Ljungberg
c7a1717ebe
Added CPDate test which catches mishandling of timezones in initWithString.
...
(Unfortunately the test is rather crude and only works when your current timezone offset is not 0 (UTC).)
2011-04-10 17:24:18 -04:00
Randall Luecke
b9533386b4
Merge branch 'natemartinsf-master' into 0.9.1
2011-04-08 09:32:14 -04:00
Mike Fellows and Randall Luecke
69d27364d5
Trivial fix, add missing spinner.gif from manual scroll view test
2011-04-08 09:30:56 -04:00
Aparajita Fishman and Randall Luecke
e3abd4e407
Fixed timezone calculation in initWithString.
2011-04-08 09:29:45 -04:00
Mike Fellows and Randall Luecke
2f501ad736
Add a manual test for drag and drop in a CPTableView
2011-04-08 09:28:30 -04:00
Randall Luecke
ae5359f953
Merge branch '0.9.1' of git://github.com/280north/cappuccino into 0.9.1
2011-04-08 09:26:55 -04:00
Mike Fellows and Randall Luecke
4a57f6a1c4
Better inset bounds to improve autoscrolling while dragging in a scrollview.
2011-04-08 09:26:04 -04:00
Nathaniel Martin
9b1eac1923
deltaX and deltaY now set on mousemoved, based on last mouse event
2011-04-07 22:00:09 -07:00
Nathaniel Martin
875dbaa78f
Fix for issue 1210
2011-04-06 23:16:13 -07:00
Klaas Pieter Annema
6b64291690
Merge branch 'aparajita-nib2cib-man'
2011-04-06 11:55:17 +02:00
Aparajita Fishman
52ce4c1ebf
Properly documented the -F option, some formatting tweaks
2011-04-06 05:15:52 -04:00
Aparajita Fishman
a7161e3ca7
Changed comparison in initial check to <=, a cib with an equal mtime could not have been converted from an IB file, it would have a later mtime.
2011-04-06 04:40:05 -04:00
Aparajita Fishman
73746e00b0
Fixes and enhancements...
...
- If an IB file is deleted, the corresponding cib is no longer deleted.
- In watch mode, the first time through no conversion is done if an IB file has a corresponding cib file with a later mtime.
- In watch mode, an add does not convert if there is a corresponding cib file with a later mtime.
- When catching exceptions, deal correctly with both CPException and strings.
2011-04-06 04:34:56 -04:00
Klaas Pieter Annema
327d796653
implement outlineViewDeleteKeyPressed
2011-04-06 08:14:29 +02:00
Aparajita Fishman
af6d38fd16
Fixes and enhancements
...
- When a xib/nib is deleted, the corresponding cib is deleted.
- Fixed the calculation of the output path when given a relative path.
- Works with .nib files now.
- Works with -R option now. NSCustomResource was assuming an image path would always be relative to cwd().
- The Resources directory is always inferred from the input path, so the -R option is usually unnecessary.
- Added --default-theme option.
- Multiple extra themes can be specified with the --theme option.
- Verbose mode displays the inferred application and resources paths, and the source theme used when doing font substitutions.
- Added a man page.
- Themes are read using StaticResource instead of parsing the file myself.
- Error message tweaks.
2011-04-05 16:57:16 -04:00
Klaas Pieter Annema
ab105e7273
Merge branch 'capp-man' of https://github.com/aparajita/cappuccino into aparajita-capp-man
2011-04-05 13:53:02 +02:00
Alexander Ljungberg
6115acea05
Merge branch '0.9.1'
2011-04-04 23:58:13 -04:00
Alexander Ljungberg
0d8bd95c86
Fixed: systems without xcodebuild would fail jake clean and jake clobber.
2011-04-04 23:56:30 -04:00
Klaas Pieter Annema
40bfb55b64
don't resolve nib2cib output path
2011-04-04 14:23:36 +02:00
Alexander Ljungberg
f0bba44e45
Completed CPTabView documentation.
2011-04-03 17:56:31 -04:00
Alexander Ljungberg
7107adfe16
Minor doc formatting.
2011-04-03 17:45:53 -04:00
Alexander Ljungberg
501c15775e
Use bsdtar explicitly for 'jake docs' in case the user has GNU tar installed through e.g. fink.
...
This enables the -s parameter to work.
2011-04-03 16:58:39 -04:00
Alexander Ljungberg
f29dcc9c6b
Document CPScreen.
2011-04-03 16:12:27 -04:00
Alexander Ljungberg
370960418f
Better formatting, clickable links and basic code styling for the Doxygen docs front page. This look will resemble that of the GitHub front page.
...
The README file was converted to Markdown which is nice to read in the terminal and automatically formatted by GitHub. For Doxygen, the markdown is first converted to HTML.
2011-04-03 14:34:20 -04:00
Aparajita Fishman
c9fb862ee2
Tweak
2011-04-03 07:56:16 -04:00
Antoine Mercadal
6e1acf1f06
fix wrong AGPL header in CPUserDefaultTest.j
2011-04-03 11:41:56 +02:00
Alexander Ljungberg
2952070698
Whitespace, comment tweak.
2011-04-03 00:56:28 -04:00
Alexander Ljungberg
dbb10f69f6
Merge branch 'aparajita-fonts' into 0.9.1
2011-04-02 23:32:59 -04:00
Alexander Ljungberg
9fc10260fb
Merge branch 'fonts' of https://github.com/aparajita/cappuccino into aparajita-fonts
2011-04-02 22:26:21 -04:00
Alexander Ljungberg
2fbd54521d
Fix up and restore all functionality to ArrayController manual test.
2011-04-02 20:08:36 -04:00
Alexander Ljungberg
ae3780c0cf
Recreated and cleaned up ArrayController1 since MainMenu.xib was missing.
2011-04-02 19:43:51 -04:00
Alexander Ljungberg
ccf9225773
Minor KVO optimisation.
2011-04-02 18:10:13 -04:00
Alexander Ljungberg
8aaa5fe07f
Test array controller KVC binding correctness.
...
This change splits the insertObjectAtArrangedObjectIndex:, addObject:, and removeObject: tests into two versions: one for a regular AC setContent: setup and one for when the AC is bound to an array-like destination implementing KVC.
2011-04-02 18:09:16 -04:00
Alexander Ljungberg
fa1a10730e
Fixed: an array controller with a bound contentArray would sometimes fail when add:, remove: and similar methods were called.
...
In particular the AC would fail when a _CPKeyValueCodingArray proxy was required (the destination implements insertObject:in<key>AtIndex etc.). The previous commit by cacaodev is the larger part of this fix as it enables use of mutableArrayValueForKeyPath properly. This commit merely fixes an error exposed by the previous commit where e.g. add: would apparently add two objects rather than one. This was caused by the AC observing and reacting to its own change even that it already had an optimised path to update arrangedObjects.
2011-04-02 18:03:21 -04:00
cacaodev and Alexander Ljungberg
e91bc3eeef
Adds a binder subclass for CPArrayController's contentArray binding. This binder allows destination.keypath who are kvc compliant, still works if they're not (through _CPKVCArray). Fixes addObject: error when contentArray is bound to a kvc array, a bug visible in ArrayController1 manual test.
2011-04-01 21:29:37 -04:00
Alexander Ljungberg
76400ecca9
Make table column internal bindings support methods private.
2011-03-31 20:48:51 -04:00
Alexander Ljungberg
9a0cf2b37d
Manual test for bindings based table view editing.
2011-03-31 20:35:11 -04:00
Alexander Ljungberg
dae36cda56
Bindings support for inline table view cell editing.
2011-03-31 20:26:56 -04:00
Aparajita Fishman
e07ff706ab
Fixed stupid bug in figuring out what directory to watch
2011-03-31 20:10:18 -04:00
Aparajita Fishman
7ec31a7c53
If no directory is passed to --watch, default to Resources
2011-03-31 19:51:22 -04:00
Aparajita Fishman
b4221aebcb
fontinfo binary is built directly in $CAPP_BUILD, and intermediate build products are put there also.
2011-03-31 16:43:58 -04:00
Aparajita Fishman
fdcd56e0ae
Added a man page for capp, global function for copying a man page
2011-03-31 14:52:38 -04:00
Alexander Ljungberg
2532c760ea
Closes #1202 . Test that CPEvent deltaX, deltaY and deltaZ do work. Also initialise deltas to 0 instead of nil.
2011-03-31 11:11:57 -04:00
Aparajita Fishman
0f68fa0141
Added ability to pass a string and get its width, removed some unnecessary releases
2011-03-30 00:28:45 -04:00
Aparajita Fishman
26fba1fdd9
Remove bogus line, not sure how it got there
2011-03-29 17:44:34 -04:00
Aparajita Fishman
16bacae7e3
More cool stuff...
...
- The holy grail! I took Klaas' great autonib2cib and rolled it into nib2cib.
- Removed check for stream in CPLogColorize, it isn't necessary and reduces its general-purpose usage.
2011-03-29 16:06:19 -04:00
Aparajita Fishman
d00a8b9d18
Use a parser action to show version and quit
2011-03-29 12:54:54 -04:00
Alexander Ljungberg
094b798765
Fixed: when table view grid lines were active they did not draw on top of selection highlights like in Cocoa.
2011-03-29 00:45:25 -04:00
Alexander Ljungberg
89974796b1
Fixed: table view's rectOfColumn: method returned a rect reduced by the intercell spacing. It should return the rect of the entire column. Fixed: when a column was selected the column selection colour would not cover the whole column. Fixed: in recent builds, table view header divider lines did not line up with body divider lines.
...
Ultimately, intercell spacing is only applied, as the name implies, inside of cells. It is not applied in the header, nor at the column or row level. Only data views inside of cells are offset.
2011-03-29 00:33:32 -04:00
Aparajita Fishman
90c19b1856
Added explicit size for completeness of sample, fixed font substitution if theme has no font, used LucidaGrande-Bold 13 to do better code coverage.
2011-03-28 23:55:31 -04:00
Aparajita Fishman
044a605e47
Added font methods so that nib2cib can do font substitution
2011-03-28 23:51:45 -04:00
Aparajita Fishman
7d62b6e1eb
Made the defaults global constants
2011-03-28 23:50:56 -04:00
Aparajita Fishman
93f36a2326
Added missing license, added a lot more support for radio button attributes, included fix for issue #1190
2011-03-28 22:44:03 -04:00
Aparajita Fishman
0218246678
Added key equivalents to radio buttons, more attributes to test new radio button support
2011-03-28 22:42:46 -04:00
Aparajita Fishman
79fde3fbeb
Factored out font substitution code, added special case for radio buttons
2011-03-28 22:38:26 -04:00
Alexander Ljungberg
539ea2e589
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-03-28 22:14:32 -04:00
Alexander Ljungberg
4f6d939634
Minor table view cleanup.
2011-03-28 22:14:11 -04:00
Alexander Ljungberg
d68d84cfdf
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-03-28 21:24:45 -04:00
Alexander Ljungberg
1ef7fc45f5
Added a note to the CPContinuouslyUpdates test clarifying the purpose of the sliders.
2011-03-28 21:23:53 -04:00
Alexander Ljungberg
430a74735b
Fixed: CPSliders always became continuous when archived/unarchived through CPCoding.
2011-03-28 21:18:47 -04:00
Randall Luecke
de08addfa1
Fix for grid lines not being drawn in the headers of table columns which were not originally exposed.
2011-03-28 21:10:59 -04:00
Alexander Ljungberg
26003365bc
Fixed: CPSlider isContinuous disagreed with setContinuous.
2011-03-28 21:06:07 -04:00
Alexander Ljungberg
11ab9a77ad
Minor performance improvement to CPContinuouslyUpdatesValueBindingOption.
2011-03-28 20:12:32 -04:00
Aparajita Fishman
52f3f81265
Changed window title
2011-03-28 18:59:03 -04:00
Aparajita Fishman
2599f820c7
Merge branch 'font-fun' into fonts
...
Conflicts:
Tools/nib2cib/NSButton.j
2011-03-28 18:51:10 -04:00
Aparajita Fishman
8fed2c7a9a
Factored code into functions, fixed input and output path computation
2011-03-28 18:45:03 -04:00
Alexander Ljungberg
f9f03c8b54
Manual test for CPContinuouslyUpdatesValueBindingOption and CPNullPlaceholderBindingOption.
2011-03-28 18:23:17 -04:00
Alexander Ljungberg
110d75b1e5
Text field support for CPContinuouslyUpdatesValueBindingOption.
2011-03-28 18:20:19 -04:00
Alexander Ljungberg
79ec12e2a2
Added support for the CPNullPlaceholderBindingOption for bound text fields.
2011-03-28 18:02:52 -04:00
Aparajita Fishman
5133a7dc91
Fix NSButton so it will merge with master
2011-03-28 16:28:28 -04:00
Klaas Pieter Annema
425401c049
Merge branch 'keyview' of https://github.com/aparajita/cappuccino into aparajita-keyview
2011-03-28 20:12:45 +02:00
Klaas Pieter Annema
38f896d018
fix CPURL equality check
2011-03-28 18:56:25 +02:00
Alexander Ljungberg
7b3ae56031
CPObjectController automaticallyPreparesContent support.
2011-03-28 11:06:12 -04:00
Klaas Pieter Annema
4418b2403f
add test case for firstObject
2011-03-28 15:23:03 +02:00
Klaas Pieter Annema
42c60913c6
add firstObject method to CPArray
2011-03-28 13:14:25 +02:00
Alexander Ljungberg
65ce93ce42
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-03-27 18:18:30 -04:00
Alexander Ljungberg
651882b3c8
Merge branch 'aparajita-keyEquivalent' into 0.9.1
2011-03-27 18:18:07 -04:00
Aparajita Fishman
ac7ff24dd7
These got left out in f1f78d6c6a
2011-03-27 15:22:13 -04:00
Aparajita Fishman
b54ea6e8ac
Ignore Xcode project user data, added fontinfo package
2011-03-25 23:38:49 -04:00
Randall Luecke
cf6d7f2d85
Rev version number to 0.9.1
2011-03-25 23:36:07 -04:00
Alexander Ljungberg
65043c5d78
Added some missing LGPL headers.
2011-03-25 22:52:57 -04:00
Aparajita Fishman
30484e04b9
Moved some useful functions to common.jake and made some private functions global so they can be reused by our Jakefiles
2011-03-25 18:51:37 -04:00
Aparajita Fishman
4decc6d9c7
Use a relative path in the symlink
2011-03-25 18:47:41 -04:00
Aparajita Fishman
1a5b8f5210
Fixed install-symlinks to actually work, added sudo-install-symlinks
2011-03-25 18:47:24 -04:00
Aparajita Fishman
93119233cd
Prevent self-reference in _next/_previousKeyView
2011-03-25 14:45:19 -04:00
Alexander Ljungberg
2f56f899cf
Merge branch 'master' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-master
2011-03-25 12:53:42 -04:00
Brian Donovan
b69c25bc2a
Fix documentation typo.
2011-03-25 08:50:06 -07:00
Alexander Ljungberg
bdcf84ec15
Merge branch '0.9.1' of github.com:280north/cappuccino into 0.9.1
2011-03-25 00:43:36 -04:00
Aparajita Fishman and Randall Luecke
f1f78d6c6a
Fixed the infamous "wandering checkbox" bug
2011-03-24 23:39:25 -04:00
Randall Luecke
83e4e7ecce
Merge branch 'jake-install-symlinks' of https://github.com/aparajita/cappuccino into aparajita-jake-install-symlinks
2011-03-24 23:38:45 -04:00
Alexander Ljungberg
e6eb14e819
Fixed: in Firefox, certain web views would not send the first webView:didFinishLoadForFrame: delegate message nor detect the need for AppKit scrollbars.
2011-03-24 23:33:44 -04:00
Alexander Ljungberg
380a860ba9
Fixed: loading an empty string into a web view would make it entirely white regardless of the background colour specified.
2011-03-24 21:20:55 -04:00
Alexander Ljungberg
5cbbafdf72
Support for web views with transparent or coloured backgrounds.
2011-03-24 21:13:41 -04:00
cacaodev
4b9695ff50
cache respondsToSelector: ; Fire the timer only if both methods exists
2011-03-24 18:40:25 +01:00
Klaas Pieter Annema
863c4639cf
implement outline view menu delegate method
2011-03-24 14:56:23 +01:00
Alexander Ljungberg
79e977b2d9
CPWebView isLoading method.
2011-03-24 01:03:02 -04:00
Alexander Ljungberg
93fe320e22
Minor fixes and cleanup.
2011-03-24 00:56:35 -04:00
Alexander Ljungberg
0337744c05
Web view accessor method to check which scrollbar style is currently in use. Also documented CPWebViewScrollNone.
2011-03-24 00:43:23 -04:00
Alexander Ljungberg
43f4ecc1b4
More consistent CPCompatibility constant naming.
2011-03-23 23:54:56 -04:00
Alexander Ljungberg
310d49c74c
Merge branch 'master' of github.com:280north/cappuccino
2011-03-24 00:35:26 -04:00
Alexander Ljungberg
3bd2c2d266
Fixed: web view loadHTMLString:"" now works again. Incidentally it only used to work by accident.
2011-03-24 00:33:54 -04:00
Alexander Ljungberg
b9d2927368
Fixed: web views with CPWebViewScrollAuto would reload after determining which scrollbars to use. The new solution makes a best effort attempt to determine this ahead of loading, avoiding reloads.
...
The problem in particular is that we can't change from AppKit to Native scrollbars or vice versa once an iframe has been loaded. Until we find a way to do so, this less flexible solution will have to do. Note that if the loaded URL passes the SOP, but the content contains links to URLs which do not pass the SOP which can be brought up in the web view, CPWebViewScrollAuto will not work correctly and CPWebViewScrollNative should be used instead.
2011-03-24 00:14:06 -04:00
Randall Luecke
8737b1207f
Fix for corner view not drawing the line above the left edge of the scrollview. closes #864
2011-03-23 23:02:10 -04:00
Aparajita Fishman and Randall Luecke
7b6713aa90
Better error checking, error messages, and help.
2011-03-23 21:47:02 -04:00
Aparajita Fishman and Randall Luecke
ea25d22628
Cocoa docs state that if unarchiver:didDecodeObject: returns nil, the original object should be used, no replacement should be done.
2011-03-23 21:45:53 -04:00
Randall Luecke
d54db1d52b
Merge branch 'CPScanner' of https://github.com/cacaodev/cappuccino into cacaodev-CPScanner
...
Conflicts:
Foundation/CPScanner.j
2011-03-23 21:43:43 -04:00
Randall Luecke
9746e3d554
More fixes for the splitview.
2011-03-23 13:26:38 -04:00
Aparajita Fishman
6afc5faab0
Moved some useful functions to common.jake and made some private functions global so they can be reused by our Jakefiles
2011-03-23 12:18:11 -04:00
Aparajita Fishman
2899389561
Use a relative path in the symlink
2011-03-23 11:17:01 -04:00
Aparajita Fishman
a1e9322d69
Fixed install-symlinks to actually work, added sudo-install-symlinks
2011-03-23 10:54:47 -04:00
Alexander Ljungberg
da0558f09c
Fixed: avoid momentarily showing native scrollbars while loading URL based content of a CPWebViewScrollAuto CPWebView.
2011-03-22 19:00:54 -04:00
Alexander Ljungberg
8879ef99c6
Fixed: [CPWebView reload] did nothing if the content was an HTML string.
2011-03-22 18:37:45 -04:00
Alexander Ljungberg
09d515e6cc
Reload buttons for CPWebViewTest.
2011-03-22 18:37:34 -04:00
Randall Luecke
014354432a
Merge branch 'master' of git://github.com/280north/cappuccino
2011-03-22 13:44:48 -04:00
Randall Luecke
d9b327db83
Fix for splitview not repositioning subviews or removing divider when a subview is removed.
2011-03-22 13:43:42 -04:00
Gerrit Riessen and Francisco Ryan Tolmasky I
da0b0d6c84
Fix for root layer transform inadvertantly changing when redisplayed.
...
Reviewed by tolmasky.
2011-03-22 12:34:23 -03:00
Randall Luecke
3f271463e5
Better CPWindowController docs.
2011-03-22 02:29:45 -04:00
Randall Luecke
459240bb88
Fix for scroller error when horizontal scroller is too small.
2011-03-19 22:51:45 -04:00
cacaodev
a02b721944
CPScrollView: add -scrollView(Will|Did)Change: delegate methods.
...
CPScroller: send action when dragging starts instead of immediately on mouse down.
Test: added delegate methods to the top-left scroll view in CPScrollView example and log.
2011-03-19 10:17:12 +01:00
Randall Luecke
e8210f7dde
Proper fix for mem leakage.
2011-03-17 03:03:51 -04:00
Randall Luecke
32fc629c33
Prevent memory leak my only adding the observer when the searchfield is added to a superview, that way we can also remove the observer later.
2011-03-17 01:31:25 -04:00
cacaodev and Randall Luecke
d5b2ccbc30
CPSearchField: register for textDidChange notifications instead of hijacking the delegate. Post the notification in -canCelOperation: (triggered by escape key OR cancel button). Fixes issue #1160
2011-03-17 01:18:25 -04:00
Aparajita Fishman and Randall Luecke
a3e70a56c5
Added support for sendsActionOnEndEditing flag in nibs
2011-03-17 01:16:43 -04:00
Brian Donovan
abce41d6fd
Make sure -[CPArrayController arrangedObjects] always has a non-nil value.
2011-03-15 19:53:14 -07:00
Randall Luecke
e1d45fd385
Merge branch 'master' of git://github.com/280north/cappuccino
2011-03-15 18:03:24 -04:00
Randall Luecke
a3e6105a11
Fix for errors with variable row height edge cases.
2011-03-15 18:02:26 -04:00
Klaas Pieter Annema
f022386502
Merge branch 'doc-optimize' of https://github.com/aparajita/cappuccino into aparajita-doc-optimize
2011-03-15 10:18:06 +01:00
Aparajita Fishman
e18b21ec1b
Fixed output path check
2011-03-13 10:15:26 -04:00
Aparajita Fishman
42c71172f2
Better path checking and error messages, fixed issue #1154
2011-03-13 10:08:17 -04:00
Aparajita Fishman
dc801a11c8
Instead of blindly, recursively copying the AppKit and Foundation directories, more intelligently copy only the *.j files we want.
2011-03-12 23:34:53 -05:00
Randall Luecke
24fbf27880
Headerview and corner view fixes
2011-03-12 01:24:15 -05:00
Aparajita Fishman
b0af42e236
Removed extra blank line
2011-03-11 12:39:54 -05:00
Aparajita Fishman
32fd03b4a0
Explicitly test for null cibFont for clarity
2011-03-11 12:15:58 -05:00
Aparajita Fishman
6b72651a05
Error message tweaks
2011-03-11 12:00:58 -05:00
Aparajita Fishman
d6117b832f
Comment tweaks
2011-03-11 09:46:42 -05:00
Aparajita Fishman
3a79e82ce8
Removed check for fontinfo, it will be part of the cappuccino package
2011-03-11 09:04:11 -05:00
Aparajita Fishman
522d4dcb2b
Removed layout constants
2011-03-11 08:39:41 -05:00
Aparajita Fishman
11f92353c8
Removed layoutMode references
2011-03-11 08:37:23 -05:00
Aparajita Fishman
3b60714bf0
Documented how to configure the system font face.
2011-03-10 19:54:38 -05:00
Aparajita Fishman
239b6ed79d
Fixed CPFontTest, removed unused RegExp from CPFont
2011-03-10 19:19:32 -05:00
Aparajita Fishman
a20b0a7dca
Removed google fonts, added test of dynamically set font with fallback
2011-03-10 18:53:57 -05:00
Randall Luecke
e9dba10903
Move coder unarchiving logic to nib2cib.
2011-03-10 18:37:44 -05:00
Aparajita Fishman
fd43a08fa3
Merge remote branch 'refs/remotes/280north/master' into font-fun
2011-03-10 18:18:18 -05:00
Aparajita Fishman
627566465e
Moved legacy font substitution to nib2cib to avoid any side effects, linted NSTableColumn, NSTableColumn now uses cibFontForNibFont, finished test app
2011-03-10 18:13:35 -05:00
Randall Luecke
b087757a72
Pump runloop for async callbacks.
2011-03-10 17:39:39 -05:00
Randall Luecke
d926ad6221
Merge branch 'fix-cpsound-firefox' of https://github.com/primalmotion/cappuccino into primalmotion-fix-cpsound-firefox
2011-03-10 17:11:19 -05:00
Aparajita Fishman and Randall Luecke
90e6c21c95
Be sure the build directory exists in case 'jake docs' is done before any other jake commands
2011-03-10 17:05:40 -05:00
Randall Luecke
ad4d408f3e
Merge branch 'pattern-fill' of https://github.com/aparajita/cappuccino into aparajita-pattern-fill
2011-03-10 17:04:26 -05:00
Aparajita Fishman and Randall Luecke
9a2d079bee
lint the template files, update setFullBridge (deprecated) to setFullPlatformWindow
2011-03-10 17:03:38 -05:00
Aparajita Fishman and Randall Luecke
f254122346
Added CPView -hasThemeAttribute and tests
2011-03-10 17:02:30 -05:00
Aparajita Fishman
10bfeaf8f7
Added comment for non-obvious code, fixed option name in nib2cib
2011-03-10 12:49:50 -05:00
Aparajita Fishman
f93aa2c5bc
Merge branch 'master' of https://github.com/280north/cappuccino into font-fun
2011-03-10 12:38:37 -05:00
Francisco Ryan Tolmasky I
acf7ef3a96
Use 10.5 SDK for building NativeHost if available, otherwise use latest Mac OS X SDK.
...
Reviewed by me.
2011-03-10 12:33:35 -04:00
Aparajita Fishman
a8d07961c0
-familyName should always return whatever family names the font was initialized with, in case there are fallbacks for different platforms
2011-03-10 11:28:48 -05:00
Aparajita Fishman
95cc88733c
Fixed default system font substitution
2011-03-09 16:37:23 -05:00
Aparajita Fishman
120c06fcb2
Further CPFont work, don't print nib2cib version all the time.
2011-03-09 14:33:11 -05:00
Aparajita Fishman
d303e6e96c
Initial commit before testing.
2011-03-08 17:40:41 -05:00
Aparajita Fishman
c4dce38484
Added support for pattern fills in CGContext, fixed bug in COORD macro in CGContextVML.j, test app
2011-03-08 03:11:08 -05:00
Ross Boucher
8eb8b7711d
Binding to wrong event in IE.
2011-03-07 15:08:57 -08:00
Alexander Ljungberg
f7fc669216
Fix missing 'self' in previous commit.
2011-03-06 11:51:20 -03:00
Alexander Ljungberg
7d6b7fd676
CPCoding fix, remove a log statement.
2011-03-05 22:56:49 -03:00
Alexander Ljungberg
2387cee799
Fixed: web view AppKit scrollbars often did not reflect the true content size of the view.
...
The reason for this is that the size changes as the page progressively loads, and this continues after the 'load' event fired. For now, we use a simple timer to poll the size a few times after loading. These polls are very bad for performance and battery life so we terminate them quickly, meaning that the underlying problem where the contents of the web view can get out of sync with its scrollbars fundamentally remains - this fix merely alleviates the problem.
2011-03-05 22:50:20 -03:00
Alexander Ljungberg
e214d49ea9
Change SOP error to a warning. Warn about problematic testing setup in CPWebViewTest.
2011-03-05 19:52:39 -03:00
Alexander Ljungberg
6f8d2190f5
Closes #1136 . Fixed: for the most part, web view's setScrollMode: message did nothing. New: automatic or explicit scroll mode selection in web views.
...
By default the automatic mode will try to use Cappuccino scrollbars whenever possible, and otherwise fall back on Native scrollbars. Explicit settings are also allowed. The explicit AppKit setting will degrade to Native with a warning if impossible due to implement due to SOP.
2011-03-05 19:45:39 -03:00
Alexander Ljungberg
9ca1865179
Test the various web view scroll modes about to be implemented.
2011-03-05 18:00:17 -03:00
Randall Luecke
a7c5ca740a
Typo in doc changes
2011-03-05 00:20:28 -05:00
Randall Luecke
590b3705eb
Style changes for table column documentation.
2011-03-04 23:15:24 -05:00
Klaas Pieter Annema
a9f23fe082
open submenus after a short delay
2011-03-04 10:21:26 +01:00
Klaas Pieter Annema
3c77d43e03
implement mousewheel support for CPMenu
2011-03-04 10:21:26 +01:00
Klaas Pieter Annema
7fb78fe157
lint _CPMenuWindow
2011-03-04 10:21:26 +01:00
Klaas Pieter Annema
566fdf6400
lint _CPMenuManager.j
2011-03-04 10:21:25 +01:00
Klaas Pieter Annema
1dc53ed149
lint CPPlatformWindow+DOM.j
2011-03-04 10:20:55 +01:00
Klaas Pieter Annema
b57b705b1d
place the scroll element above menus
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
7d7c037682
add support for Home and End key and modified logic for pageUp and pageDown
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
bf72a7f92d
added support for escape key to cancel menus, removed unused var
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
df9387fc78
remove unneccessary scrolling calls and periodic events when not needed
2011-03-04 10:20:54 +01:00
Blair Duncan and Klaas Pieter Annema
9296df89df
fixed some spacing and added a delay in the reset time for longer lists
2011-03-04 10:19:35 +01:00
Blair Duncan and Klaas Pieter Annema
d4d65ed4d7
Add support for keyboard navigation in menus
2011-03-04 10:19:35 +01:00
Klaas Pieter Annema
163550c3d5
determine NSControl enabled state from NSCellFlags
2011-03-04 08:56:25 +01:00
Klaas Pieter Annema
a11f12ab09
fix unarchiving tableviews with no header view
2011-03-04 08:51:21 +01:00
Klaas Pieter Annema
8e14d6cebc
unarchive corner and headerviews correctly
2011-03-04 08:15:54 +01:00
Randall Luecke
90d50bb593
Sizing fixes for the textfields of the color panel.
2011-03-02 22:51:03 -05:00
cacaodev and Ross Boucher
b715fb6182
Enable representedObject decoding in NSMenuItem.j
2011-03-02 13:32:56 -08:00
Ross Boucher
31dbd208f4
We don't need to copy the string since strings are immutable in javascript.
2011-03-02 13:26:49 -08:00
Tobias M. Bölz and Ross Boucher
49707af1ba
Fixed binding name constants
2011-03-02 13:17:44 -08:00
Ross Boucher
b77668dd5a
Fix spacing in CPBrowser.
2011-03-02 12:36:44 -08:00
Alexander Ljungberg
50e5fa2c8e
Fix accidental globals.
2011-03-01 00:02:35 -03:00
Alexander Ljungberg
dedf3cd90f
More AppKit coding standards.
2011-02-28 23:55:29 -03:00
Alexander Ljungberg
651d6a7ed8
Linting AppKit.
2011-02-28 23:48:34 -03:00
meelash
383dcd5ee6
Corrected mistake in CPSplitView delegate documentation
2011-02-28 20:19:00 -05:00
Francisco Ryan Tolmasky I
1589d501cc
Slight typo.
...
Reviewed by me.
2011-02-27 10:01:16 -08:00
Randall Luecke
060563b748
Documentation style fixes for CPOutlineView. Now setDelegate: actually shows up.
2011-02-26 15:13:34 -05:00
Randall Luecke
b8b74f1e35
Revert "Crazy cool selection behavior."
...
This reverts commit 2b498feb67 .
2011-02-26 14:58:47 -05:00
Ross Boucher
6435372fd9
We weren't actually keeping track of replaced methods, and thus were replacing every time you call addObserver:
2011-02-25 17:59:54 -08:00
Klaas Pieter Annema
3ebb432d3f
Merge branch 'traceback' of https://github.com/jukart/cappuccino
2011-02-25 23:57:29 +01:00
Klaas Pieter Annema
f13362b224
fix sortDescriptorsDidChange: not called for outline view
2011-02-25 23:52:41 +01:00
Derek Hammer and Klaas Pieter Annema
2b498feb67
Crazy cool selection behavior.
2011-02-25 23:52:41 +01:00
Randall Luecke
5c6fce4e8c
Following the fix for the pane spiltter flag change in the CPSplitView, the theme file also needed to be updated.
2011-02-24 01:48:36 -05:00
Randall Luecke
d000e67fc4
Merge branch 'master' of https://github.com/dbrajkovic/cappuccino into dbrajkovic-master
2011-02-24 01:28:14 -05:00
Randall Luecke
c9bc6c3991
Fix for Xcode 4.0 pre-release causing cappuccino not to build because of NativeHost. This is just a work around for the time being so that Cappuccino still finishes building.
2011-02-24 01:25:11 -05:00
Randall Luecke
8c1a3a3bba
Refactored the tableview docs a little. Now using real doxygen commands instead of using <pre> on everything.
2011-02-23 02:46:30 -05:00
Randall Luecke
f723318601
Column resize fixes
2011-02-22 22:07:31 -05:00
Randall Luecke
ebcbfc76b8
Merge branch 'fix-searchfield-glitch' of https://github.com/primalmotion/cappuccino into primalmotion-fix-searchfield-glitch
2011-02-22 21:11:53 -05:00
Randall Luecke
eaa4efc805
Imageview support for tableview nib2cib
2011-02-22 21:08:30 -05:00
Randall Luecke
e717fd82b9
Merge branch 'Selection' of https://github.com/hammerdr/cappuccino into tableview-selection
...
Conflicts:
AppKit/CPTableView.j
2011-02-22 20:05:00 -05:00
Randall Luecke
46781cb6fd
Merge branch 'mb-cpcursor-refactor' of https://github.com/saikat/cappuccino into saikat-mb-cpcursor-refactor
2011-02-22 19:58:31 -05:00
Randall Luecke
02eaded719
Merge branch 'UniformColumnSizing' of https://github.com/hammerdr/cappuccino into hammerdr-UniformColumnSizing
2011-02-22 19:54:14 -05:00
Randall Luecke
0748190ab7
Merge branch 'bootstrap-fixes' of https://github.com/paulbaumgart/cappuccino into paulbaumgart-bootstrap-fixes
2011-02-22 19:53:08 -05:00
Randall Luecke
cccbb8eee4
Merge branch 'master' of https://github.com/purem/cappuccino into purem-master
2011-02-22 19:51:51 -05:00
Randall Luecke
902878756e
Merge branch 'fix-progressindicator-not-cpcoding-compliant' of https://github.com/primalmotion/cappuccino into primalmotion-fix-progressindicator-not-cpcoding-compliant
2011-02-22 19:51:07 -05:00
Randall Luecke
033663f2cf
fix for a couple methods not being generated for the docs.
2011-02-22 19:48:53 -05:00
Ross Boucher
e4093ac3ae
Merge branch '0.9'
2011-02-22 14:13:12 -08:00
Ross Boucher
16a70c5c8e
Update to the starter package readme.
2011-02-22 14:09:09 -08:00
Jürgen Kartnaller
b7f871e31b
Merge branch 'master' into traceback
2011-02-21 14:38:49 +01:00
Klaas Pieter Annema
cc5e8c3f34
fix textfield cut and paste notifications
...
Closes #555 #1001
2011-02-21 10:26:58 +01:00
Klaas Pieter Annema
85e80a62a3
remove old '_currentValueIsPlaceholder' code
2011-02-21 10:26:58 +01:00
Antoine Mercadal
60d1073d9a
do not encode _barView
2011-02-16 17:39:06 +01:00
Antoine Mercadal
b620de45a2
make CPProgressIndicator CPCodingCompliant
2011-02-16 17:34:26 +01:00
purem
536d012105
Fixed typo
2011-02-13 15:01:59 -08:00
Jürgen Kartnaller
2e24761a54
Merge branch 'master' into traceback
2011-02-09 10:30:12 +01:00
Daniel Brajkovic
956b640339
Fixes #1122 . Nib2Cib was checking if NSSplitViewDividerStyle ==2 should be == 3 as NSSplitViewDividerStylePaneSplitter = 3.
...
In CPSplitView.j the divider thicknesses in the themeAttributes were swapped. Also swapped the statements in _setupDOMDivider if(_isPaneSplitter) statement.
2011-02-07 23:59:43 -06:00
Paul Baumgart
bee1db8c7d
Optionally add CAPP_BUILD to the shell config automatically.
2011-02-05 17:32:02 -08:00
Paul Baumgart
51deaf4552
Enquote more command output in bootstrap to prevent spaces in paths from breaking things.
2011-02-05 17:31:04 -08:00
Paul Baumgart
57e1431e1a
Remove duplicate prompts from bootstrap.
2011-02-05 17:30:03 -08:00
Saikat Chakrabarti
975e11abfc
CPCursor refactor according to discussion in http://groups.google.com/group/objectivej-dev/browse_thread/thread/eabe59dc7d71122b/ddc6f1b61e5f3c2a?lnk=gst&q=cpcursor#ddc6f1b61e5f3c2a and new test for CPCursor that is easier to go through.
2011-02-04 17:41:40 -08:00
Randall Luecke
b78eddd878
Clearer explaination of setPullsDown: of CPPopupButton
2011-02-04 19:01:12 -05:00
Jürgen Kartnaller
09ebc0effd
Merge branch 'master' into traceback
2011-02-03 09:04:48 +01:00
Jürgen Kartnaller
6a4e0bd43a
log a traceback only once
2011-02-02 22:43:20 +01:00
Antoine Mercadal
8994f08cbf
move the fix to themedRoundedTextField:
2011-02-02 18:27:31 +01:00
Antoine Mercadal
55b97a7eeb
fix CPSearchField layout glitch
2011-02-02 12:02:46 +01:00
Randall Luecke
203942d123
Documentation of CPApplication.
2011-01-30 16:56:56 -05:00
Derek Hammer
436f6cb8ea
Fixing uniform column resize spacing issue.
2011-01-30 13:01:44 -06:00
Derek Hammer
9c4fb2c18c
Updating selection code based on feedback from Randy
2011-01-29 18:01:57 -06:00
Derek Hammer
d27544f2bf
Crazy cool selection behavior.
2011-01-28 12:59:01 -06:00
Klaas Pieter Annema
5957e71967
enable nib2cib image support for CPMenuItem
2011-01-28 14:50:42 +01:00
Derek Hammer
85f51d7a66
Extend selection in a meaningful way when using keys.
2011-01-27 21:50:36 -08:00
Randall Luecke
fdf47eb84e
Fix for tableview reloadData call inside setObjectValue: causing additional editing to being.
2011-01-27 14:37:26 -05:00
Paul Baumgart
6963b37f61
Add --clone-http option to bootstrap
2011-01-26 21:09:10 -08:00
Ayal Spitz and Paul Baumgart
379c5294c2
Added a 'clone_http' flag to enable clonging of a git repo via http
2011-01-26 20:57:42 -08:00
Francisco Ryan Tolmasky I
fb27f86126
Merge branch 'paulbaumgart-bootstrap-fixes'
2011-01-26 08:03:24 -08:00
Antoine Mercadal
3a6f2c4d5b
make CPSound handling error + More Cocoa compliant
2011-01-26 11:06:10 +01:00
Klaas Pieter Annema
133dd39485
don't blur input element more than once
2011-01-26 11:03:09 +01:00
Paul Baumgart
d50cbb02e6
Allow users to respond 'yes' to the narwhal install location bootstrap prompt to just use the default location.
2011-01-25 17:39:24 -08:00
Antoine Mercadal
f39441e101
avoid error in FF
2011-01-25 21:24:36 +01:00
Randall Luecke
30695e4110
Document delete key delegate in tableview.
2011-01-25 11:03:12 -05:00
Jürgen Kartnaller
3e79d8324d
Fix check for allowsReverseTransformation in reverseTransformedValue
2011-01-25 08:46:40 +01:00
Randall Luecke
71de04787d
Fix backspace issue with textfield. Closes #1107 . Thanks to Jukart for the patch.
2011-01-24 18:25:18 -05:00
Randall Luecke
81332fa57e
Proper theme states for the tableview edit change I made yesterday.
2011-01-24 15:35:10 -05:00
Randall Luecke
191a02a89b
Update documentation version number to 0.9.
2011-01-24 14:28:07 -05:00
cacaodev
f60a92d2c4
CPViewAnimation: current frame based on -currentValue. CPAnimation: early return in -currentValue if linear
2011-01-24 20:24:19 +01:00
Ross Boucher
f4ae6c450b
Update the README a bit.
2011-01-24 10:19:52 -08:00
Alexander Ljungberg
f2c53c9f52
Documentation tweaks.
2011-01-24 14:00:15 -03:00
Alexander Ljungberg
090fcab8c6
More globals fixing.
2011-01-24 13:43:55 -03: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
Randall Luecke
04f1b61534
Fixes to tableview inline editing.
2011-01-24 00:56:39 -05:00
Randall Luecke
b6119a763e
Docs for CPWebView.
2011-01-23 19:05:02 -05:00
Randall Luecke
0876fd6db9
Docs of CPViewAnimation.
2011-01-23 18:10:26 -05:00
Randall Luecke
3d106c0716
Merge branch 'master' of git://github.com/280north/cappuccino
2011-01-23 17:53:20 -05:00
Randall Luecke
c390b19d4b
Much needed documentation of CPSplitView and some docs for CPWindow.
2011-01-23 17:50:39 -05:00
Francisco Ryan Tolmasky I
6a735ecda9
Merge branch 'master' of github.com:280north/cappuccino
2011-01-23 08:44:01 -08:00
Francisco Ryan Tolmasky I
aada884cff
A few import fixes.
...
Reviewed by me.
2011-01-23 08:43:46 -08:00
Paul Baumgart
b62789bb18
Check for one of curl or wget.
2011-01-21 17:35:33 -08:00
Paul Baumgart
eafec339f1
Minor update to bootstrap to have it check to make sure java is installed.
2011-01-21 16:49:32 -08:00
Alexander Ljungberg
ef326dbbb4
Fix an accidental global, whitespace.
2011-01-20 22:33:42 -03:00
Alexander Ljungberg
4bbbcb15f1
Array controller documentation.
2011-01-20 22:27:09 -03:00
Alexander Ljungberg
92cb69b623
Merge branch 'CPArrayControllerFixes' of https://github.com/cacaodev/cappuccino into cacaodev-CPArrayControllerFixes
2011-01-20 22:14:17 -03:00
Alexander Ljungberg
18ea086ffc
Removed unused Aristo files.
2011-01-20 22:13:01 -03:00
Alexander Ljungberg
40b04b7956
Merge branch 'master' of github.com:280north/cappuccino into cacaodev-CPTableColumnValueBinder
...
Conflicts:
AppKit/CPTableColumn.j
2011-01-20 21:56:30 -03:00
Francisco Ryan Tolmasky I
38dc125fc2
Fix CPSubclassableDictionaryTest.
...
Reviewed by me.
2011-01-20 09:50:32 -08:00
Francisco Ryan Tolmasky I
378df68995
Merge branch 'master' of github.com:280north/cappuccino
2011-01-20 09:17:29 -08:00
Francisco Ryan Tolmasky I
ec330a1090
Fix for pop up not reflecting changes in individual menu items.
...
Reviewed by me.
2011-01-20 09:07:04 -08:00
Randall Luecke
f07543045a
Doc fixes and more docs in the tableview.
2011-01-20 03:07:01 -05:00
Paul Baumgart
4458884048
Fallback to wget if curl isn't installed.
2011-01-19 20:28:49 -08:00
Paul Baumgart
7245fb99a6
Check to make sure SSL is working in tusk and advise on how to fix it otherwise.
2011-01-19 20:27:16 -08:00
Paul Baumgart and Paul Baumgart
5d27661354
Update check_build_environment in bootstrap
...
Newer versions of OpenJDK can handle running Narwhal.
It seems the problem is fixed in versions of OpenJDK 6 >= b18.
This commit checks for a sufficiently recent version of
OpenJDK and only prints an error/exits if the OpenJDK
version is older than 6b18.
2011-01-19 20:26:28 -08:00
Francisco Ryan Tolmasky I
b33b2df778
Merge branch 'master' of github.com:280north/cappuccino
2011-01-19 19:30:46 -08:00
Francisco Ryan Tolmasky I
d2f27408a5
Additional fix for archived CPPopUpButtons, and backwards compatibility support for old archives/cibs.
...
Reviewed by me.
2011-01-19 19:29:39 -08:00
Mike Fellows
a801860f90
Move the functionality from CPStepper's _CPContinuousButton object into CPButton so any CPButton can be made continuous
2011-01-19 12:02:43 -08:00
cacaodev
235b323658
Add CPTableColumnValueBinder. This binder subclass just reloads the table column when a table column's value binding is updated because of a change in the bound-to object.
...
TableBindings test.
2011-01-19 19:56:46 +01:00
cacaodev
54c3cc0187
CPArrayController & nib2cib: added _automaticallyRearrangeObjects flag (not used currently).
...
_sortDescriptors initial value is an emty array (like in cocoa), not nil;
Added shared _init with default values, added missing accessors.
2011-01-19 19:26:21 +01:00
cacaodev
59cc590b51
CPArrayController -setContent: fixed a bug where objects where not rearranged if clearsFilterPredicateOnInsertion == YES and filterPredicate == nil.
2011-01-19 19:26:01 +01:00
Randall Luecke
66a87c472b
Remove old resources from the old CPTabView.
2011-01-19 11:15:31 -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
Francisco Ryan Tolmasky I
6310733881
Fix for menu bar color being reset (+ [CPMenu initialize] didn't check the class).
...
Reviewed by me.
2011-01-18 13:59:57 -08:00
Francisco Ryan Tolmasky I
3fe505b8e5
Merge branch 'master' of github.com:280north/cappuccino
2011-01-18 13:26:14 -08:00
Francisco Ryan Tolmasky I
00915083d4
Quick fix for initWithCapacity: not working on CPMutableArray.
...
Reviewed by me.
2011-01-18 13:25:43 -08:00
Klaas Pieter Annema
4e1ecbef72
Merge branch 'CPTextField-InterpretKeyEvents' of https://github.com/luuse/cappuccino into luuse-CPTextField-InterpretKeyEvents
...
Conflicts:
AppKit/CPSearchField.j
AppKit/CPTextField.j
2011-01-18 10:07:16 +01:00
Klaas Pieter Annema
e4f6214005
Merge branch 'imports' of https://github.com/stevegeek/cappuccino into stevegeek-imports
2011-01-18 09:52:40 +01:00
Klaas Pieter Annema
ed98a44116
detect sort descriptors when table column is added
2011-01-18 09:29:29 +01:00
Klaas Pieter Annema
50d36e76ac
reverse set sort descriptors in CPTableView
2011-01-18 09:29:28 +01:00
Randall Luecke
818bf475f2
New gradient color to match aristo better.
2011-01-17 23:30:29 -05:00
Randall Luecke
47afb96c4c
Drawing fixes for the tableview gradient.
2011-01-17 23:30:04 -05:00
Randall Luecke
467dc3c2d5
OutlineView docs.
2011-01-17 20:13:54 -05:00
Randall Luecke
7e3079add6
Magic enable to outlineview variable item height
2011-01-17 20:07:15 -05:00
Francisco Ryan Tolmasky I
9796f5d5d7
Fix CPPopUpButton menu support.
...
- Added enumerateObjectsUsingBlock: to CPArray
- Fixed a remaining case of [] being used instead of objectAtIndex: in CPMutableArray.
- Added KVO support for menu items array in menus.
- Changed CPPopUpButton to use KVO to sync up with menu instead of notifications.
- Removed extra menu encoding in CPPopUpButton.
- Removed extra mainMenu object from CPApplication.
- Use setters in CPResponder instead of direct ivar access in initWithCoder:.
Closes #298 .
Closes $1059.
Reviewed by me.
2011-01-17 01:31:15 -08:00
Stephen Ierodiaconou
37323b811c
Merge branch 'master' of git://github.com/280north/cappuccino into imports
...
Conflicts:
Foundation/CPDecimalNumber.j
Foundation/CPPredicate/CPComparisonPredicate.j
Foundation/CPPredicate/CPCompoundPredicate.j
Foundation/CPPredicate/CPExpression.j
Foundation/CPPredicate/CPExpression_aggregate.j
Foundation/CPPredicate/CPExpression_constant.j
Foundation/CPPredicate/CPExpression_function.j
Foundation/CPPredicate/CPExpression_keypath.j
Foundation/CPPredicate/CPExpression_self.j
Foundation/CPPredicate/CPExpression_set.j
Foundation/CPPredicate/CPExpression_subquery.j
Foundation/CPPredicate/CPExpression_variable.j
Foundation/CPPredicate/CPPredicate.j
2011-01-16 10:03:42 +02:00
Randall Luecke
8720a952b0
Fix for scrollview flashing while uniformly resizing columns. Closes #1075
2011-01-16 00:23:14 -05:00
Randall Luecke
bf4724d401
Fix for textfield jumping when textfield wasn't the right size or the vertical alignment was something other than center.
2011-01-15 23:15:55 -05:00
Randall Luecke
c73e2e1a91
Fix for nib2cib'd textfields jumping when editing
2011-01-15 21:45:37 -05:00
Randall Luecke
630cd121a6
Typo in docs
2011-01-15 20:40:24 -05:00
Randall Luecke
5d88ffbe66
Merge branch 'decimal' of https://github.com/stevegeek/cappuccino into stevegeek-decimal
2011-01-15 20:32:24 -05:00
Randall Luecke
bd5aa1c959
Merge branch 'CPPredicate' of https://github.com/cacaodev/cappuccino into cacaodev-CPPredicate
2011-01-15 18:50:12 -05:00
Stephen Ierodiaconou
c65bfd22a2
Use native javascript array for mantissa for big performance increase
2011-01-16 01:47:14 +02:00
Randall Luecke
e656e0561b
removeTableColumn: on the outlineview shouldn't allow removal of outlineTableColumn per cocoa.
2011-01-15 18:31:41 -05:00
Randall Luecke
ddbba22533
Only set the outlineview column if it's the first column added.
2011-01-15 18:10:28 -05:00
Randall Luecke
91b5596034
Merge branch 'cacaodev-CPOutlineView'
2011-01-15 17:59:13 -05:00
Stephen Ierodiaconou
e0185a0eff
Documentation for CPDecimalNumber
2011-01-15 21:58:47 +02:00
Stephen Ierodiaconou
2fe8845842
CPDecimalString returns NaN for a NaN and Fix Compare of NaNs and Cocoa compatable handling of overflow/underflows when no exception
2011-01-15 19:29:55 +02:00
Stephen Ierodiaconou
c02128a1fd
Instantiate default number handler lazily and fix CPDecimalNumberHandler initialisers and CPDecimalNumberHandler docs
2011-01-15 18:50:47 +02:00
Stephen Ierodiaconou
27ad98e160
Initialiser fixes and docs
...
Fix tests for new initialisers
2011-01-15 16:40:11 +02:00
Stephen Ierodiaconou
fc746db70f
Cocoa compatible constructors for CPDecimals
2011-01-15 16:12:06 +02:00
Stephen Ierodiaconou
6a6256bdb4
CPCoding support for CPDecimalNumber and test
2011-01-15 14:15:31 +02:00
Stephen Ierodiaconou
5a0cfc1595
Make default number hanler file global only and Improvements and optimisations for CPDecimalNumber
2011-01-15 11:49:20 +02:00
Stephen Ierodiaconou
32107ab650
Improvements to CPDecimalNumberHandler including docs and archiving/unarchiving and associated test.
2011-01-15 09:38:31 +02:00
Stephen Ierodiaconou
494f615aaa
Merge branch 'master' into imports
...
Conflicts:
Foundation/CPScanner.j
2011-01-15 09:11:46 +02:00
Francisco Ryan Tolmasky I
5c2ebd546c
Don't include a delegate class entry in Info.plist for nib application templates.
...
Reviewed by me.
2011-01-14 15:42:23 -08:00
cacaodev
72b8ed2faf
CPOutlineView: If nil, set outlineTableColumn when the first column is added.
...
nib2cib: handle indentationPerLevel when the key is not in the xib.
CPoutlineViewCibTest
2011-01-15 00:39:38 +01:00
Alexander Ljungberg
6b8c85df7c
Additional testing for outline view archiving.
2011-01-14 19:59:25 -03:00
Alexander Ljungberg
cce4e3ded8
Fixed: manual CPBrowser test's click handler threw an exception.
2011-01-14 14:46:37 -03:00
Alexander Ljungberg
0240c648aa
Encode delegate when archiving CPBrowser.
2011-01-14 14:36:57 -03:00
Alexander Ljungberg
6019ff9107
Fixed: archiving 'undefined' would cause an exception.
2011-01-14 14:25:11 -03:00
Alexander Ljungberg
c4ee83e4c1
Basic CPBrowser CPCoding support.
2011-01-14 13:34:18 -03:00
Alexander Ljungberg
61b0cbb1af
Test CPBrowser data loading.
2011-01-14 12:42:38 -03:00
Alexander Ljungberg
af30e96b7b
Cleanup.
2011-01-14 12:16:51 -03:00
Alexander Ljungberg
b7bdec189a
Fixed: when an outline view node was expanded, selections below it would not stick to their items if the newly expanded node also had previously expanded children.
2011-01-14 12:10:52 -03:00
Alexander Ljungberg
2a27a87ae6
Fixed: CPOutlineView could not be archived with CPCoding. Closes #1093 .
...
This fixes the exception "[_CPOutlineViewTableViewDataSource encodeWithCoder:] unrecognized selector sent to instance".
2011-01-13 22:18:05 -03:00
Alexander Ljungberg
31ac84f683
Fix non ASCII codes in documentation.
2011-01-13 20:59:28 -03:00
Alexander Ljungberg
c41defe864
Merge branch 'master' of github.com:280north/cappuccino
2011-01-13 20:56:58 -03:00
Alexander Ljungberg
6bc109f7fc
Optimised: outline view expandItem:expandChildren:YES sent repeated selection change notifications.
2011-01-13 20:51:43 -03:00
Alexander Ljungberg
2d603df83c
Fixed: outline view's collapseItem sent up selection notifications in triplicate, each of them at the wrong time.
2011-01-13 20:03:06 -03:00
Alexander Ljungberg
dcf440396d
Fixed: the outline view was temporarily inconsistent to outside observers while expanding a node.
...
In particular, a selection did change notification was sent before the rows the selection referred to had had a chance to be loaded.
2011-01-13 18:57:36 -03:00
Randall Luecke
1dc10440b7
Documentaion of CPObjectController.
2011-01-13 00:57:07 -05:00
Randall Luecke
0ef2557ec3
Documentation of CPArrayController.
2011-01-13 00:30:50 -05:00
Randall Luecke
05e69c85c7
More documentation of the tableview, outlineview, and table columns. Wrapped formatted documenation in <pre> tags and added sample code for using custom dataviews
2011-01-12 23:40:28 -05:00
cacaodev
9c6476615d
Allow parsing of functions with multiple arguments like multiply:by:(5,2) or FUNCTION('method:arg:', arg1, arg2)
...
Added a missing CPDate.j import in CPExpression_function that was causing an 'unknown variable CPDate' error in deploy builds.
Added documentation for +expressionForSubquery:...
Added licence headers with credits.
2011-01-12 18:43:09 +01:00
Randall Luecke
b393d0597f
If selectedRow no longer exists when numberOfRows change reset it to CPNotFound. Closes #1089 .
2011-01-12 11:49:36 -05:00
Francisco Ryan Tolmasky I
f69e2e8d8f
Merge branch 'master' of github.com:280north/cappuccino
2011-01-12 08:41:26 -08:00
Francisco Ryan Tolmasky I
5fd470acea
Fix for adding a js object to a CPArray and associated tests.
...
Reviewed by me.
2011-01-12 08:41:02 -08:00
Alexander Ljungberg
28e660c295
Merge branch 'master' of github.com:280north/cappuccino
2011-01-12 11:02:33 -03:00
Alexander Ljungberg
9a76b4451f
Cleanup.
2011-01-12 10:54:47 -03:00
Alexander Ljungberg
b50f955cfd
Standardise source file header.
2011-01-12 10:52:35 -03:00
Francisco Ryan Tolmasky I
0aa2e2b298
0.9.0 RC 1.
...
Reviewed by me.
2011-01-11 16:12:30 -08:00
Francisco Ryan Tolmasky I
1f5ad49591
CPMutableArray fixes and tests.
...
Reviewed by me.
2011-01-11 15:27:35 -08:00
Francisco Ryan Tolmasky I
3e45c7895c
More tests and bug fixes for CPArray family.
...
Reviewed by me.
2011-01-11 12:08:00 -08:00
Francisco Ryan Tolmasky I
29301f440e
Fixed a few bugs in CPArray and added many new tests for CPArray.
...
Reviewed by me.
2011-01-11 10:12:26 -08:00
Francisco Ryan Tolmasky I
2f86c0d9d2
Slight initWithArray:shouldCopyItems: fix.
...
Reviewed by me.
2011-01-10 09:21:46 -08:00
Klaas Pieter Annema
e7dbd5a5cc
add test for CPButton setObjectValue: behavior
2011-01-10 09:32:18 +01:00
Francisco Ryan Tolmasky I
62c00bb7f5
Fix for press removing all files.
...
Reviewed by me.
2011-01-10 00:19:34 -08:00
Aparajita Fishman
12f0d2a867
Fixes to content-inset bugs introduced by b80c48886a
2011-01-09 19:04:12 -05:00
Francisco Ryan Tolmasky I
5af66b60e1
Better -copy implementations for KVC arrays and sets.
...
Reviewed by me.
2011-01-09 03:46:29 -08:00
Francisco Ryan Tolmasky I
028a4fe5b2
Merge branch 'CPKeyValueCodingArray-copy' of https://github.com/cacaodev/cappuccino into cacaodev-CPKeyValueCodingArray-copy
2011-01-09 03:29:51 -08:00
Francisco Ryan Tolmasky I
fa6e711c2f
Merge branch 'master' of github.com:280north/cappuccino
2011-01-09 03:27:46 -08:00
Francisco Ryan Tolmasky I
c620c7bf39
Fix for %% being broken in sprintf (minor bugfix for press message showing undefined, larger press bugs remain).
...
Reviewed by me.
2011-01-09 03:25:59 -08:00
Derek Hammer
f3066594fe
Tests for Pull Request 1085
2011-01-08 22:12:20 -06:00
Francisco Ryan Tolmasky I
4db1e28677
Merge branch 'trunk' of https://github.com/meelash/cappuccino into meelash-trunk
2011-01-08 15:27:34 -08:00
meelash
d6cbc52790
Fix for issue #302 CPTabViewItem _tabView is not set. Closes #302
2011-01-08 15:15:13 -05:00
Alexander Ljungberg
0943065498
Merge branch 'master' of github.com:280north/cappuccino into eventualbuddha-CPTokenField-sendAction-fix
...
Conflicts:
AppKit/CPTokenField.j
2011-01-07 18:53:44 -03:00
Alexander Ljungberg
42cc3f309f
Manual test for token field action sending.
2011-01-07 18:52:18 -03:00
Alexander Ljungberg
6d7dc24775
Merge branch 'CPTokenField-sendAction-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPTokenField-sendAction-fix
2011-01-07 18:14:17 -03:00
Klaas Pieter Annema
8faa17ad33
reset allow mixed state when bound
2011-01-07 15:20:12 +01: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
c2bab5b369
fix [CPButton setObjectValue:CPOnState]
2011-01-07 14:14:19 +01:00
Klaas Pieter Annema
eee1dcef13
restore the original placeholder when unbinding
2011-01-07 14:14:19 +01:00
Randall Luecke
8254543da7
Fix for scrollColumnToVisisble also scrolling in the Y direction. Also fixed headerview not being scrolled. Closes #1081
2011-01-06 15:22:18 -06:00
Randall Luecke
2028efabc3
Fix for scrollRowToVisible changing the X value instead of just the Y. Closes #1082
2011-01-06 15:08:35 -06:00
Randall Luecke
011c033478
Merge branch 'master' of git://github.com/280north/cappuccino
2011-01-06 14:51:16 -06:00
Randall Luecke
477e9f85be
Fix for variable row heights when initial setup of the tableview had zero rows
2011-01-06 14:50:40 -06:00
Ilya Kulakov
0d5ae63013
The isSubsetOfSet looking for objects inside itself instead of provided set
2011-01-07 02:03:11 +06:00
Francisco Ryan Tolmasky I
aa60a7b975
Use stubbed out Array methods instead of relying on them existing on the object.
...
Reviewed by me.
2011-01-06 10:28:24 -08:00
Francisco Ryan Tolmasky I
c071569f3c
Fix for @import loop when pressing.
...
Reviewed by me.
2011-01-05 18:24:42 -08:00
Alexander Ljungberg
1d717ffe99
Merge branch 'flllow-outlineview-selection'
2011-01-05 21:30:34 -03:00
Alexander Ljungberg
c53fff058b
Preserve selection when expanding items in an outline view.
2011-01-05 21:25:57 -03:00
Alexander Ljungberg
c836bd48e0
Preserve selection when collapsing items in an outline view.
...
This fixes the error where if a row was selected below a certain item and that item was collapsed, the row selection would remain fixed in place even while the item it was highlighting moved upwards.
2011-01-05 21:09:19 -03:00
Alexander Ljungberg
ec675a5662
Deselect outline view items when their ancestor is collapsed.
2011-01-05 20:41:26 -03:00
Alexander Ljungberg
02e72493ef
Unit test outline view data loading and item collapse.
2011-01-05 20:40:30 -03:00
Alexander Ljungberg
dd2ad410b8
Cleanup.
2011-01-05 17:45:51 -03:00
cacaodev
92fb183c22
CPKeyValueCodingArray/Set -copy. Fetch all objects through accessors, that's what cocoa does.
2011-01-05 19:21:13 +01:00
Klaas Pieter Annema
46eca09d69
determine sorted column in setSortDescriptors:
...
Closes #1079
2011-01-05 12:48:19 +01:00
Klaas Pieter Annema
f7bc2b6d06
add a description to CPSortDescriptor
2011-01-05 12:47:36 +01:00
Klaas Pieter Annema
c87cb4bacd
properly fix CPThemeStateNormal behavior
...
- revert the previous fix
- explicitly check for CPThemeStateNormal in hasThemeState:
- update the test case
2011-01-05 12:30:14 +01:00
Klaas Pieter Annema
b6ea6530b7
hasThemeState: always returned no for normal state
2011-01-05 10:44:50 +01:00
Randall Luecke
af4e69afc9
Fix for variable row heights with no rows on startup
2011-01-05 01:46:12 -06:00
Randall Luecke
a292936d55
Extra bracket.
2011-01-04 23:01:44 -06:00
Randall Luecke
a000687a42
Fix for CPArray and _CPJavaScriptArray -copy
2011-01-04 22:59:33 -06:00
Alexander Ljungberg
03aaa89a61
Merge branch 'master' of github.com:280north/cappuccino
2011-01-04 17:02:11 -03:00
Alexander Ljungberg
be71d957e1
Fixed: indexOfObject:inSortedRange: searched 1 index too far when a range was applied.
2011-01-04 17:00:48 -03:00
Francisco Ryan Tolmasky I
651970899d
Merge branch 'primalmotion-fix-cptabview'
2011-01-04 11:26:01 -08:00
Antoine Mercadal
ae67b00c4d
remove the change in tabViewItemAtIndex:
2011-01-04 20:06:53 +01:00
Alexander Ljungberg
51848b6cce
Merge branch 'master' of github.com:280north/cappuccino
2011-01-04 16:06:25 -03:00
Alexander Ljungberg
8e0b3a5df3
Test indexOfObject:inSortedRange: with out of range insertion point.
2011-01-04 15:38:54 -03:00
Randall Luecke
692c43a3cc
Snap columns when we size the last column to fit.
2011-01-04 12:36:57 -06:00
Antoine Mercadal
29430df66d
fix small bugs in CPTabView
2011-01-04 19:36:05 +01:00
Alexander Ljungberg
9954a75cdd
Fixed array test arrayByReversingArray. More indexOfObject:inSortedRange:... tests.
2011-01-04 15:30:02 -03:00
Alexander Ljungberg
6ee7964fa6
Cleanup.
2011-01-04 13:42:00 -03:00
Ilya Kulakov and Alexander Ljungberg
db6608571a
Refs #1071 . indexOfObject:inSortedRange:options:usingComparator is incorrectly implemented.
...
Add more tests to cover more features of the indexOfObject:inSortedRange:options:usingComparator method
2011-01-04 13:37:06 -03:00
Randall Luecke
76d5051833
Remove unused variable
2011-01-03 20:25:56 -06:00
cacaodev and Randall Luecke
9cdcbb1988
OutlineView should decode a new instance of tableview delegate
2011-01-03 20:24:01 -06:00
Randall Luecke
33882942e4
Documentation of the outlineview and some API fixes.
2011-01-03 20:17:12 -06:00
Randall Luecke
6c2c690504
Remove log
2011-01-03 16:23:43 -06:00
Randall Luecke
c78f232e4a
Fix for ouline column disclosure button staying in place while resizing
2011-01-03 16:22:28 -06:00
Randall Luecke
5f39046a52
Document setBorderType: for CPScrollView
2011-01-03 15:53:00 -06:00
Randall Luecke
fff2be49fc
Fix for outline column dragging leaving disclosure indicator in place.
2011-01-03 15:36:19 -06:00
Alexander Ljungberg
95a2b46ae1
Merge branch 'master' of github.com:280north/cappuccino
2011-01-03 16:37:47 -03:00
Alexander Ljungberg
754324d253
Table view documentation fix.
2011-01-03 16:36:26 -03:00
Francisco Ryan Tolmasky I
b350b89376
Added some more KVO tests.
...
Reviewed by me.
2011-01-02 13:16:43 -08:00
Alexander Ljungberg
4445f752f3
Avoid usage of [event keyCode].
...
Key codes have platform and browser specific behaviours.
2011-01-02 13:15:38 -03:00
Alexander Ljungberg
9e92947b2c
Cleanup, fix accidental global in the average operator.
2011-01-02 11:42:40 -03:00
Alexander Ljungberg
92d44b12bd
Fixed: a recent change disabled first and last column resizing modes.
2010-12-31 20:56:24 -03:00
Alexander Ljungberg
36c673c660
Whitespace cleanup.
2010-12-31 15:25:39 -03:00
Alexander Ljungberg
db509cb72f
Merge branch 'master' of github.com:280north/cappuccino
2010-12-31 15:24:09 -03:00
Alexander Ljungberg
c0af2af7e7
Merge branch 'master' of https://github.com/Kentzo/cappuccino into Kentzo-master
2010-12-31 15:12:35 -03:00
Alexander Ljungberg
35b2b5263c
Test table view inline cell editing in general, and the next fix in particular.
2010-12-31 14:59:24 -03:00
Alexander Ljungberg
fa3df44535
Fixed: the text field selectText: message worked significantly differently in unit tests than in the browser.
...
The message normally makes the text field the first responder, but this did not happen outside of the DOM platform.
Also documented the first responder side effect.
2010-12-31 14:49:03 -03:00
Alexander Ljungberg
08dd7d6951
ASCII fix, cleanup.
2010-12-31 14:18:56 -03:00
Alexander Ljungberg
d7316918a3
Refactor test data source in table view test.
2010-12-31 12:56:56 -03:00
Ilya Kulakov
044fc3af69
Refs issue #1607 . Make CPTableView the first responder after user is done editing dataview.
2010-12-31 12:07:42 +06:00
Francisco Ryan Tolmasky I
d1eb20e7b3
Merge branch 'master' of https://github.com/snaury/cappuccino into snaury-master
2010-12-30 21:49:50 -08:00
Alexander Ljungberg
c27edb2475
Various documentation fixes.
2010-12-30 00:06:06 -03:00
Alexander Ljungberg
58d4030133
Brief documentation about using bindings to provide data for a table view.
2010-12-29 23:40:30 -03:00
Alexander Ljungberg
e8b1063647
Whitespace cleanup.
2010-12-29 23:17:18 -03:00
Alexander Ljungberg
3caa703ced
Bring back testing of HUD style CPAlerts.
...
This part of the test was temporarily disabled recently due to changes which broke HUD style CPAlerts.
2010-12-29 23:15:22 -03:00
Alexander Ljungberg
f7e016a98c
Merge branch 'cpalert-fixes' of https://github.com/primalmotion/cappuccino into primalmotion-cpalert-fixes
2010-12-29 23:11:10 -03:00
Randall Luecke
156e9b8e54
Merge branch 'master' of git://github.com/280north/cappuccino
2010-12-29 19:45:36 -06:00
Randall Luecke
7aa00a961a
Attached sheets should have a shadow.
2010-12-29 19:45:09 -06:00
Alexey Borzenkov
4678efff72
Fix #1063 [CPDate description] returns incorrect timezone + tests
2010-12-28 23:42:06 +03:00
Klaas Pieter Annema
f3b4e7f752
fixes for inline table editing
...
- make sure the data view is reset to it's no editable state when a textfield is dismissed without editing
- remove a comment (selectText: works now)
2010-12-27 19:48:21 +01:00
Francisco Ryan Tolmasky I
e39fa44cdb
Fix for typo in new KVC code.
...
Reviewed by me.
2010-12-27 10:40:27 -08:00
Francisco Ryan Tolmasky I
3fb4d1e4c1
Merge branch 'master' of github.com:280north/cappuccino
2010-12-27 10:38:41 -08:00
Francisco Ryan Tolmasky I
06b8636817
Removed remaining references to isKeyObserved.
...
Reviewed by me.
2010-12-27 10:38:10 -08:00
Randall Luecke
4b653ee367
in sizeLastColumnToFit make sure we respect min/max widths
2010-12-27 12:05:38 -06:00
Klaas Pieter Annema
d2cdd46466
fix a typo in CPTableView
2010-12-27 13:52:50 +01:00
David K. Hess and Francisco Ryan Tolmasky I
2d46fb885d
Fix for -nextValidKeyView infinitely looping when no next valid key view.
...
Closes #1049 .
Reviewed by me.
2010-12-27 03:17:52 -08:00
Francisco Ryan Tolmasky I
b3e0c4a5d5
Added a FIXME.
...
Reviewed by me.
2010-12-27 03:05:20 -08:00
Francisco Ryan Tolmasky I
ab6609282d
Some reorganization.
...
Reviewed by me.
2010-12-27 03:02:00 -08:00
Francisco Ryan Tolmasky I
6ff21692f1
Fix for incorrectly installing KVO if all the mutation methods aren't implemented.
...
Reviewed by me.
2010-12-27 02:18:52 -08:00
Randall Luecke
f64cc4c655
Bounds errors on rectOfColumn
2010-12-27 01:25:32 -06:00
Randall Luecke
e31af96ef9
Made the selection behavior more correct
2010-12-27 00:59:46 -06:00
Randall Luecke
a431b34c43
Merge branch 'master' of git://github.com/280north/cappuccino
2010-12-26 17:40:15 -06:00
Randall Luecke
562bb8a878
setIntercellSpacing doesn't update dateviews. Closes #827
2010-12-26 17:39:10 -06:00
Francisco Ryan Tolmasky I
719dbf02d4
Merge branch 'master' of github.com:280north/cappuccino
2010-12-26 15:38:01 -08:00
Francisco Ryan Tolmasky I
e2327fcf94
Fix for remaining delegate reference instead of _delegate in CPTabView.
...
Closes #1061 .
Reviewed by me.
2010-12-26 15:36:06 -08:00
Randall Luecke
5a0c8f4a8b
Legacy tableviews cibs dont decode properly. Closes #850
2010-12-26 17:31:54 -06:00
Francisco Ryan Tolmasky I
031a380c25
Merge branch 'master' of github.com:280north/cappuccino
2010-12-26 15:27:10 -08:00
Francisco Ryan Tolmasky I
23c4e584d4
Automatically re-validate toolbar items in multi-document windows, and restore removeObjectsInArray: to CPMutableSet.
...
Reviewed by me.
2010-12-26 15:26:04 -08:00
Randall Luecke
452febd73e
Test for uniform column resizing
2010-12-26 17:17:27 -06:00
Randall Luecke
645741aa23
Merge branch 'master' of git://github.com/280north/cappuccino
2010-12-26 16:14:34 -06:00
Randall Luecke
97b141b653
Fixes for uniform column resizing
2010-12-26 13:44:31 -06:00
Francisco Ryan Tolmasky I
67ac778d4c
Sight improvement to applyChange: in KVO.
...
Reviewed by me.
2010-12-26 00:31:14 -08:00
Stephen Ierodiaconou
76b5682234
Missing imports in CPSet+KVO
2010-12-26 10:29:46 +02:00
Francisco Ryan Tolmasky I
e45ed19dc7
Fix remaining failing tests and add indexOfObject:inSortedRange:options:usingComparator:, and removed non-standard methods:
...
- indexOfObject:sortedBySelector:
- indexOfObject:sortedByFunction:
- indexOfObject:sortedByDescriptors:
- indexOfObject:sortedByFunction:context:
Reviewed by me.
2010-12-25 21:10:32 -08:00
Francisco Ryan Tolmasky I
f79c2346a5
More test fixes.
...
Reviewed by me.
2010-12-25 17:05:31 -08:00
Francisco Ryan Tolmasky I
e964c60830
Fix a few failing tests, and a bad import.
...
Reviewed by me.
2010-12-25 16:58:09 -08:00
Francisco Ryan Tolmasky I
f8ffb4abbd
Small fix and whitespace fix.
...
Reviewed by me.
2010-12-25 16:38:56 -08:00
Francisco Ryan Tolmasky I
37931f08b5
First pass at CPArray class cluster.
...
Reviewed by me.
2010-12-25 16:07:30 -08:00
Stephen Ierodiaconou
4aa4f1a62a
Some more missing imports
2010-12-26 01:47:26 +02:00
Stephen Ierodiaconou
7ae14e9eb5
CPCharacterSet lint and fixes
2010-12-26 01:34:43 +02:00
Stephen Ierodiaconou
bfe03a8874
CPJSONPConnection Missing imports and self check
2010-12-26 01:34:43 +02:00
Stephen Ierodiaconou
66b6b44f86
CPPredicate lint, import fixes, and some bug fixes
2010-12-26 01:34:43 +02:00
Stephen Ierodiaconou
b70018bd80
Import fixes and lint
2010-12-26 01:34:37 +02:00
Francisco Ryan Tolmasky I
9b75e37e1f
A number of set and array fixes and added tests for unordered accessor pattern in key value coding.
...
Reviewed by me.
2010-12-25 02:18:02 -08:00
Francisco Ryan Tolmasky I
232f1d008d
Added better implementation of valueForKey for indexed accessor pattern and tests for it.
...
Reviewed by me.
2010-12-25 01:47:18 -08:00
Francisco Ryan Tolmasky I
3947bd65f2
Reimplementation of CPSet as a class-cluster, and better set support for valueForKey:
...
1. CPSet and CPMutableSet are now abstract super classes that create appropriate concrete subclasses behind the scenes.
2. CPSet subclassers need only implement -count, -member:, and -objectEnumerator.
3. CPMutableSet subclassers need only implement -count, -member:, -objectEnumerator:, -addObject:, and removeObject:.
4. Added more CPSet tests.
5. Added _CPKeyValueCodingSet which subclasses CPSet for set returns in valueForKey:.
Reviewed by me.
2010-12-25 01:01:19 -08:00
Francisco Ryan Tolmasky I
1d39299a7d
Fix for missing imports and incorrect variable.
...
Reviewed by me.
2010-12-24 23:36:53 -08:00
Francisco Ryan Tolmasky I
da1389b0b4
Forgot one last typo.
...
Reviewed by me.
2010-12-24 16:46:17 -08:00
Francisco Ryan Tolmasky I
818c7dac3d
Fix for set accessor methods.
...
Reveiwed by me.
2010-12-24 16:29:40 -08:00
Francisco Ryan Tolmasky I
15b05304cc
Cleanup setValue:forKey:.
...
Reviewed by me.
2010-12-24 13:20:13 -08:00
Francisco Ryan Tolmasky I
e33c7f6be4
Initial support for valueForKey: supporting sets and arrays.
...
Reviewed by me.
2010-12-24 12:42:28 -08:00
Francisco Ryan Tolmasky I
d23bf7b927
Some KVC cleanup:
...
1. Added class_getInstanceVariable to runtime.
2. Changed KVC to rely on class-defined variables vs prototypal ones.
3. Modified KVO code to use public APIs.
Reviewed by me.
2010-12-23 23:46:23 -08:00
Klaas Pieter Annema
de1ebe6319
add test case for previous fix
2010-12-22 10:49:02 +01:00
cncolder
3e9e0802f6
Show null placeholder when the value is CPNull.
2010-12-22 15:15:05 +08:00
Randall Luecke
b8f9263d18
Fixed some 3am typos in the documentation
2010-12-21 16:55:00 -05:00
Randall Luecke
946cd381a0
Compelete documentation of the tableview and tablecolumns (which the exception of bindins)
2010-12-21 02:29:14 -05:00
Francisco Ryan Tolmasky I
0a49d09878
Merge branch 'new-aristo-theme' of https://github.com/primalmotion/cappuccino into primalmotion-new-aristo-theme
2010-12-20 14:07:12 -08:00
Antoine Mercadal
f936277a4d
make CPTokenField's token pixel perfect
2010-12-20 21:34:25 +01:00
Antoine Mercadal
ac16c5663b
fix the frame size of the pulldown button
2010-12-20 21:25:40 +01:00
Francisco Ryan Tolmasky I
83058b01d3
Remove AppKit imports from Foundation.
...
Bugs filed to deal with associated technologies: #1051 and #1052
Reviewed by me.
2010-12-20 11:14:55 -08:00
Francisco Ryan Tolmasky I
3c8619db5d
Merge branch 'fixes' of https://github.com/stevegeek/cappuccino into stevegeek-fixes
...
Conflicts:
Foundation/CPValueTransformer.j
2010-12-20 11:13:54 -08:00
Randall Luecke
14226ef69c
Merge branch 'master' of git://github.com/280north/cappuccino
2010-12-19 20:19:02 -05:00
Randall Luecke
910691ad4b
Capp Lint of tableview
2010-12-19 20:18:36 -05:00
Alexander Ljungberg
115d29b6f8
Fixed: if data source was nil, the table view needlessly warned about no content binding in numberOfRowsInTableView.
...
A table with a nil data source and no content binding is simply an empty table, or more likely, a table not fully configured yet.
2010-12-19 22:54:29 +01:00
Francisco Ryan Tolmasky I
05ef7c83a8
Merge branch 'CPTokenField-missing-import' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPTokenField-missing-import
2010-12-19 12:43:43 -08:00
Francisco Ryan Tolmasky I
2311fb9a6d
Merge branch 'master' of github.com:280north/cappuccino
2010-12-19 12:37:46 -08:00
Francisco Ryan Tolmasky I
c1b8ec8da1
Some minor style changes and perf improvements.
...
Reviewed by me.
2010-12-19 12:34:57 -08:00
Randall Luecke
a1efd1d024
Merge branch 'master' of git://github.com/280north/cappuccino
2010-12-19 15:33:26 -05:00
Randall Luecke
088b6eac35
Last row of the tableview didn't draw
2010-12-19 15:32:52 -05:00
Francisco Ryan Tolmasky I
ea1068c465
Merge branch 'nib2cib-binding-transformer' of https://github.com/cncolder/cappuccino into cncolder-nib2cib-binding-transformer
2010-12-19 12:21:03 -08:00
Brian Donovan
978545af94
Import required CPTableView.
2010-12-19 11:46:13 -08:00
Randall Luecke
86c10e687b
Row offset regression fix, removed console.log
2010-12-19 02:06:25 -05:00
Randall Luecke
24ab9f9fdf
Merge branch 'master' of git://github.com/280north/cappuccino
2010-12-18 22:32:24 -05:00
Randall Luecke
5d69bbc4ca
Fixed several bugs and regressions in the tableview.
2010-12-18 22:31:49 -05:00
Johannes Fahrenkrug and Francisco Ryan Tolmasky I
3c3b7ff61c
Addition of applications tests and CPCollectionView selection fix.
...
Reviewed by me.
2010-12-18 10:34:32 -08:00
cncolder
5a6e266c8d
nib2cib binding with buildin transformers support.
2010-12-18 15:02:25 +08:00
Brian Donovan
6f724e34f5
Fix apostrophe typo.
2010-12-17 17:14:58 -08:00
Antoine Mercadal
7cec421419
revert test
2010-12-17 12:55:49 +01:00
Antoine Mercadal
967f541659
change inset for CPTokenField
2010-12-17 12:52:23 +01:00
Antoine Mercadal
6e78d903e0
make only border translucent in disabled state
2010-12-17 12:52:22 +01:00
Antoine Mercadal
03a243fd20
Make CPPopUpButton art pixel perfect
2010-12-17 12:52:22 +01:00
Antoine Mercadal
0b8d3744bb
update MainMenu bar art
2010-12-17 12:52:22 +01:00
Antoine Mercadal
a0bb3b31a3
adding the art for disabled CPTextField
2010-12-17 12:52:22 +01:00
Antoine Mercadal
1f79402a0a
use alpha-ized art..
2010-12-17 12:52:22 +01:00
Antoine Mercadal
f7db4058a8
fix another inset issue
2010-12-17 12:52:22 +01:00
Antoine Mercadal
4d9854695a
fix a offset in inset
2010-12-17 12:52:22 +01:00
Antoine Mercadal
e90133ebd0
uses the new CPPPopUpButton Aristo art
2010-12-17 12:52:22 +01:00
Antoine Mercadal
d4818b5a71
uses the new CPTextField Aristo art
2010-12-17 12:52:21 +01:00
Ross Boucher
68a15c5c7c
Be more lenient in documents about strings versus URLs.
...
Fix a typo in CPTextField.
2010-12-16 17:22:32 -08:00
Francisco Ryan Tolmasky I
42db55fabd
Apply Chrome Frame fix across the board.
...
Reviewed by me.
2010-12-16 14:49:15 -08:00
Francisco Ryan Tolmasky I
e6c1dfc51e
Merge branch 'google-chrome-frame-support' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-google-chrome-frame-support
2010-12-16 14:24:26 -08:00
Stephen Ierodiaconou
4f3146dc7b
Remove unnecessary defines of MIN/MAX/ABS
2010-12-16 20:20:58 +02:00
Francisco Ryan Tolmasky I
4372edb7c4
Fix for remaining reference to objj_standardize_path.
...
Closes #1040 .
Reviewed by me.
2010-12-16 09:51:44 -08:00
Stephen Ierodiaconou
d105388d82
Move CPOrderedX to CPObjRuntime only instead of duplicated in CPSortDescriptor
2010-12-16 19:16:38 +02:00
Stephen Ierodiaconou
fd812f25a5
Imports additions
...
Import fixes and clean up
Missing import
Missing imports
Missing import
Remove uncessary comments
2010-12-16 19:16:33 +02:00
Stephen Ierodiaconou
9f5904eaf2
Alphabetical order
2010-12-16 17:34:02 +02:00
Stephen Ierodiaconou
d246b19750
Some linting and deprecation error and ivar '_' addition
2010-12-16 17:18:11 +02:00
cncolder
128a3ac4d9
Commit ab083a3b change CPTabView variable names to underscore style. This patch fix nib2cib NSTabView.
2010-12-16 14:19:46 +08:00
Ross Boucher
abd908949a
Merge branch 'master' of github.com:280north/cappuccino
2010-12-15 15:53:23 -08:00
Ross Boucher
ab083a3baf
Clean up several flaws in CPTabView:
...
- should not force empty space above and below, but only where the tabs are
- box should fill frame when no tabs are present
- ivars should be prefixed with underscore
- not sure about the current background color code, may revisit
2010-12-15 15:48:42 -08:00
Alexander Ljungberg
45ee3aa0a3
Merge branch 'master' of github.com:280north/cappuccino
2010-12-15 23:32:16 +01:00
Alexander Ljungberg
d587016cc3
Fixed: CPSegmentedControl did not take divider width into account when auto sizing. This resolves the incorrect tab sizes in CPTabView.
...
If a segmented control was initialised with a zero width and then expanded with setSegmentCount, it would not allocate space for any needed dividers. The more tabs were added the more the segmented control would be undersized. The fix is to automatically adjust the width when dividers are added or removed.
2010-12-15 23:26:31 +01:00
Alexander Ljungberg
8edee4e755
Fix accidental globals, cleanup.
2010-12-15 16:02:50 +01:00
Klaas Pieter Annema
8aeaa6681a
implement menuForEvent in CPTableView
2010-12-15 15:30:10 +01:00
Klaas Pieter Annema
8a0a68248c
don't check valid row range in dragging code
2010-12-15 15:30:10 +01:00
Alexander Ljungberg
251ba407be
Implement CPURL isEqualToURL:.
2010-12-15 11:08:28 +01:00
Jeremy Lujan
41d757e0c4
*Fix issue in setParameters due to expression in while condition in CPFlashView
...
*Protect against overwriting flashvars in _params when setParams is called after setFlashVars in CPFlashView
2010-12-14 21:38:52 -06:00
Alexander Ljungberg
bd28d688aa
Merge branch 'CPScrollView-home-end-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPScrollView-home-end-fix
2010-12-15 01:06:32 +01:00
Alexander Ljungberg
6ab679a725
Optimise _processKeyboardUIKey by only declaring the keys of interest once.
2010-12-15 01:06:02 +01:00
Brian Donovan
6b7d636b0d
Follow tolmasky's suggestions.
...
- Fixes a bug in moveByOffset where we called CGPointMake with a CGPoint.
- Remove _moveToPoint: and just inline it where it was used.
2010-12-14 16:00:20 -08:00
Alexander Ljungberg
f72749fbd6
Allow home and end function keys as unqualified key equivalents. Manual test for home and end function keys.
2010-12-15 00:26:42 +01:00
Alexander Ljungberg
9a032a57d0
Merge branch 'CPScrollView-home-end-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPScrollView-home-end-fix
2010-12-15 00:12:30 +01:00
Alexander Ljungberg
244ff0d846
Finished unit test based on Cocoa example With And Without Bindings 02.
2010-12-14 23:57:51 +01:00
Alexander Ljungberg
c65726fb12
Fixed: CPURL isEqual threw an exception if the argument was not a CPURL.
2010-12-14 23:49:24 +01:00
Alexander Ljungberg
8ef7f07195
Fixed: CPArrayController's addObject and CPArray's insertObject:inArraySortedByDescriptors:.
...
CPArray insertObject:inArraySortedByDescriptors: now quickly inserts objects at the end of the array if no sort descriptors are specified.
CPArrayController initialises its sort descriptors to an empty array.
Fixed: array controller's addObject added objects to the arranged objects array in a different order than in the content array if no sort descriptor was set.
2010-12-14 23:33:14 +01:00
Alexander Ljungberg
2af2fc31a1
Fixed: archived table views could end up with a nil sort descriptor instead of an empty array.
2010-12-14 21:36:04 +01:00
Brian Donovan
9bf0edb5df
Implement CPScrollView scrollToBeginningOfDocument: and scrollToEndOfDocument:.
...
Also ensures that the home/end DOM keys were properly mapped to their Cocoa equivalents, so that home/end will trigger scrollToBeginningOfDocument:/scrollToEndOfDocument:.
2010-12-14 12:12:25 -08:00
Alexander Ljungberg
53f4baa9ac
Fixed: CPArrayController add: and insert: would fail if automaticallyPreparesContent was NO.
...
This was caused by an unimplemented method in the original adapted from Cocotron CPObjectController.
2010-12-14 20:44:22 +01:00
Alexander Ljungberg
63cc9c4b36
Fixed: nib2cib did not properly transfer the 'isEditable' property for object and array controllers.
2010-12-14 20:28:57 +01:00
Alexander Ljungberg
8b60ef1156
Added nib2cib support for several array controller properties.
...
The properties in question are declaredKeys, automaticallyPreparesContent and objectClass, from the base object controller class.
2010-12-14 20:28:40 +01:00
Brian Donovan
751a80afb7
Google Chrome Frame doesn't work with duplicate X-UA-Compatible header.
...
There should only be one X-UA-Compatible header and it should have the chrome=1 part at the end, per http://www.chromium.org/developers/how-tos/chrome-frame-getting-started .
"You may recognize the X-UA-Compatible flag as the same mechanism introduced with IE 8 for controlling the rendering engine that IE uses for a particular page. In cases where GCF is not installed, the values can be combined to control IE's rendering behavior:"
<meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1">
2010-12-14 10:37:15 -08:00
Alexander Ljungberg
f2b2852b76
Allow array controllers as table sources in cibs.
...
When an array controller is loaded from a cib, the data source may be connected before the bindings are. Hence, we can't check for required data source methods at the time because we do not know if we are using bindings yet. The new behaviour is to only warn when the methods are actually required, which matches Cocoa.
2010-12-14 17:35:34 +01:00
Alexander Ljungberg
f36d8224a6
Unit test based on Cocoa example With And Without Bindings 01.
...
This test exercises loading of an array controller with bindings to a table and a content array, plus various editing actions.
2010-12-14 15:05:30 +01:00
Alexander Ljungberg
c5c2a80af9
More unit tests on 01_WithoutBindings.
2010-12-14 13:40:44 +01:00
Alexander Ljungberg
b9dfd2a795
Merge branch 'master' of github.com:280north/cappuccino
2010-12-14 12:36:53 +01:00
Alexander Ljungberg
b381fe6c27
Cleanup.
2010-12-14 12:36:37 +01:00
Klaas Pieter Annema
003dcface0
make selectedTag accessor public again
...
This reverts commit cfee75b6e9 .
2010-12-13 22:16:06 +01:00
Alexander Ljungberg
0e05f1a8b7
Merge branch 'master' of github.com:280north/cappuccino
2010-12-13 13:39:41 +01:00
Klaas Pieter Annema
5a340804fe
remove failing reverse set selected tag test
2010-12-13 10:55:10 +01:00
Klaas Pieter Annema
65f6c35c88
add manual test for CPPopUpButton
2010-12-13 10:44:25 +01:00
Klaas Pieter Annema
cfee75b6e9
rename CPPopUpButton selectedTag to _selectedTag
2010-12-13 10:38:23 +01:00
Klaas Pieter Annema
0463af26b3
Merge branch 'CPPopUpButton-selectedTag-binding' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPPopUpButton-selectedTag-binding
2010-12-13 10:11:46 +01:00
Francisco Ryan Tolmasky I
ced3c2d778
Missing @end in NSMutableDictionary.
...
Reviewed by me.
2010-12-11 21:51:27 -08:00
Francisco Ryan Tolmasky I
7e4e6932a0
Merge branch 'cpbutton-rounded-hud-support' of https://github.com/primalmotion/cappuccino into primalmotion-cpbutton-rounded-hud-support
2010-12-11 11:47:15 -08:00
Blair Duncan and Francisco Ryan Tolmasky I
13940c97e7
Manual test for issue 842.
...
Reviewed by me.
2010-12-11 11:41:15 -08:00
Francisco Ryan Tolmasky I
91d28cbbdd
Fix for FireFox plists breaking with text over 4096 bytes.
...
Closes #842 .
Reviewed by me.
2010-12-11 11:29:49 -08:00
Antoine Mercadal
adc2d2b513
support for HUD rounded button
2010-12-11 14:34:03 +01:00
Randall Luecke
c80116e90d
Removed leftover from versioning fixes
2010-12-11 01:01:56 -05:00
Francisco Ryan Tolmasky I
f667c39ade
Further versioning fix.
...
Reviewed by me.
2010-12-10 09:04:13 -08:00
Randall Luecke
ce0ddb2e1f
Test for previous commit
2010-12-10 10:29:59 -05:00
Randall Luecke
3a716c08f8
CPObject -version should be static and zero by default.
2010-12-10 10:01:33 -05:00
Francisco Ryan Tolmasky I
d69f46f7ee
More capp_linting.
...
Reviewed by me.
2010-12-09 13:45:29 -08:00
Ross Boucher
3cda75986b
Merge branch 'master' of github.com:280north/cappuccino
2010-12-09 13:08:52 -08:00
Francisco Ryan Tolmasky I
ffea2de826
Style fixes.
...
Reviewed by me.
2010-12-09 13:00:52 -08:00
Ross Boucher
ac6ccc3257
Merge branch 'master' of https://github.com/dasto/cappuccino into dasto-master
...
Conflicts:
Tests/Foundation/CPKeyValueCodingTest.j
2010-12-09 12:59:11 -08:00
Daniel Stolzenberg
29ed8f3116
fixed issues with "CPKeyValueObservingOptionPrior" and "CPKeyValueObservingOptionOld" on dependent keys caused by improper wrapped observation messages
2010-12-09 14:56:55 +01:00
Ross Boucher
3f2dd34ee5
We should be using UID not hash
2010-12-08 16:43:45 -08:00
Ross Boucher
df7c8bf508
Remove unwanted global.
2010-12-08 16:11:25 -08:00
Ross Boucher
1e2fdc3e1b
Remove tabs; Update some of the toll free bridging code.
2010-12-08 15:44:28 -08:00
Ross Boucher
901f3fe63b
Merge branch 'nib2cib-bindings-options' of https://github.com/cacaodev/cappuccino into cacaodev-nib2cib-bindings-options
2010-12-08 14:11:23 -08:00
Ross Boucher
a767d2199d
Merge branch 'tollfreefix' of https://github.com/hammerdr/cappuccino into hammerdr-tollfreefix
2010-12-08 13:35:22 -08:00
Ross Boucher
ceb4432b49
Add a round button to the aristo showcase
2010-12-08 13:32:04 -08:00
Ross Boucher
b80c48886a
Merge branch 'cpbutton-rounded-bezel-style-support' of https://github.com/primalmotion/cappuccino into primalmotion-cpbutton-rounded-bezel-style-support
...
Conflicts:
AppKit/Themes/Aristo/ThemeDescriptors.j
2010-12-08 13:23:14 -08:00
Brian Donovan
55121d501b
Call will/didChange manually since this isn't a setter.
2010-12-08 07:38:10 -08:00
Brian Donovan
2c0c8b59a2
Fix documentation typo.
2010-12-07 11:44:48 -08:00
Brian Donovan
788419d64c
NSPopUpButton has no public -setSelectedTag, so make it private.
2010-12-07 07:23:50 -08:00
Brian Donovan
735a38d134
NSPopUpButton has no CPValueBinding, use @"selectedIndex".
2010-12-07 07:23:30 -08:00
Francisco Ryan Tolmasky I
8d80903cf2
Merge branch 'CPFontManager-fix' of https://github.com/aparajita/cappuccino into aparajita-CPFontManager-fix
2010-12-06 11:46:52 -08:00
Aparajita Fishman
432c98f5f7
Fix variable name
2010-12-06 14:05:18 -05:00
Klaas Pieter Annema
f7495155af
Merge branch 'issue702' of https://github.com/stevegeek/cappuccino into stevegeek-issue702
2010-12-06 09:47:08 +01:00
Francisco Ryan Tolmasky I
c2ee9a9a5e
Fix for rows not showing up in tablviews that were not directly in scrollviews.
...
Reviewed by Randy.
2010-12-04 18:52:46 -08:00
Francisco Ryan Tolmasky I
71bbd85ba4
Fix for ctrl not being interpreted as command in Linux.
...
Reviewed by me.
2010-12-04 11:12:28 -08:00
Francisco Ryan Tolmasky I
3776a7bee1
Fix for invisible toolbar items sending their associated menu item as the sender for their actions.
...
Reviewed by me.
2010-12-04 10:43:34 -08:00
Francisco Ryan Tolmasky I
fb51a0f892
Merge branch 'CPMenu-menuWillOpen-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPMenu-menuWillOpen-fix
2010-12-04 09:46:22 -08:00
Francisco Ryan Tolmasky I
2d74d9fa92
Slight style fix.
...
Reviewed by me.
2010-12-04 09:43:35 -08:00
Francisco Ryan Tolmasky I
2014f47046
Merge branch 'master' of github.com:280north/cappuccino
2010-12-04 09:42:56 -08:00
Brian Donovan
79c2edca2d
Allow binding to CPPopUpButton's selectedTag.
2010-12-03 16:12:22 -08:00
Klaas Pieter Annema
175f1a9acd
add support for windows in CPViewAnimation
2010-12-03 15:08:53 +01:00
Mike Fellows
18e943a65b
Expand the KeyEquivalent manual test to include tests for the keys allowed without Cmd/Ctrl modifier. Also include an additional check that each button's callback is being called.
2010-12-03 02:06:04 -08:00
Francisco Ryan Tolmasky I
20f36eaa9a
Added platform windows manual test.
...
Reviewed by me.
2010-12-02 18:41:00 -08:00
Francisco Ryan Tolmasky I
6cbff694ab
Fix for CPTextField not found in tests.
...
Reviewed by me.
2010-12-02 17:20:35 -08:00
Randall Luecke
54e106bb14
Merge branch 'master' of git://github.com/280north/cappuccino
...
Conflicts:
AppKit/CPTableView.j
2010-12-02 19:51:40 -05:00
Randall Luecke
3d1992440b
Fix drag and drop bug
2010-12-02 19:50:55 -05:00
Francisco Ryan Tolmasky I
1cbaea0e3d
Further capp_linting - removing accidental global.
...
Reviewed by me.
2010-12-02 12:11:57 -08:00
Francisco Ryan Tolmasky I
400bdb5103
Further capp_linting.
...
Reviewed by me.
2010-12-02 11:44:42 -08:00
Francisco Tolmasky
dd560fb78c
capp_lint CPAnimation.j.
...
Reviewed by me.
2010-12-02 10:38:51 -08:00
Ross Boucher
e71cbfbde2
Need to re-examine this.
...
Revert "Make @accessors generating code with static type. Not id only. This is useful when check ivar infomation from class_copyMethodList(YourClass)."
This reverts commit c713a3fb25 .
2010-12-02 10:06:10 -08:00
Klaas Pieter Annema
eb6c103396
Merge branch 'fixes' of https://github.com/MCF/cappuccino into MCF-fixes
2010-12-02 10:58:14 +01:00
Klaas Pieter Annema
45c585e5c2
fix CPViewAnimation invalid dictionary key strings
2010-12-02 10:54:27 +01:00
Francisco Ryan Tolmasky I
0ab92c77bd
More capp_linting.
...
Reviewed by me.
2010-12-01 22:57:57 -08:00
Francisco Ryan Tolmasky I
2d1fd1b3a5
Merge branch 'master' of github.com:280north/cappuccino
2010-12-01 20:40:55 -08:00
Derek Hammer
d4d831b9ac
Fixing a bug caused by the function inline.
2010-12-01 20:12:12 -08:00
cncolder and Ross Boucher
c713a3fb25
Make @accessors generating code with static type. Not id only. This is useful when check ivar infomation from class_copyMethodList(YourClass).
2010-12-01 19:16:12 -08:00
Francisco Ryan Tolmasky I
ff60125183
Some capp_linting.
...
Reviewed by me.
2010-12-01 11:04:17 -08:00
Klaas Pieter Annema
94d28a2593
Merge branch 'cacaodev-CPSearchField'
2010-12-01 10:35:51 +01:00
cacaodev and Klaas Pieter Annema
43f8b50ef7
revert _searchMenuTemplate -> searchMenuTemplate
2010-12-01 10:35:25 +01:00
cacaodev and Klaas Pieter Annema
7c098753cf
CPSearchField:
...
- Fix recentAutosaveName decoding (setter was needed)
- Fix a bug where 2 search fields in the same app would receive the same recentSearches update when recentAutosaveName set.
- Update recentAutosaveName to use the new CPUserDefaults class instead of CPCookie.
- searchMenuTemplate nib2cib decoding. searchMenutemplate is just an outlet, it's automatically connected.
- Removed CPSearchFieldSeparatorItemTag
- Updated Test app with a nib2cibed search field. Ability to set some options for the regular search field.
- Style and white space.
2010-12-01 10:35:25 +01:00
Stephen Ierodiaconou
b46d283dc4
Closes 702: CPBezierPath stroke calls CGContextClosePath
2010-12-01 09:45:46 +02:00
Mike Fellows
f9639eb695
Add the space key as an allowable key equivalent
2010-11-30 23:09:02 -08:00
Brian Donovan
9fc0006316
Fix copy-paste error in calling the menuDidOpen: delegate method.
2010-11-30 17:58:26 -08:00
Klaas Pieter Annema
a51672cc82
use charAt in CPDecimal, IE doesn't support []
2010-11-30 16:05:32 +01:00
Klaas Pieter Annema
32decc31db
CGContext should close path after fill or stroke
2010-11-29 12:47:38 +01:00
Klaas Pieter Annema
14d9aac98b
add the test project used for the bindings fix
2010-11-29 09:49:58 +01:00
Randall Luecke
327962bc01
Fix for intercellSpacing reference and fix for the outlineview...
2010-11-28 13:32:30 -05:00
Randall Luecke
4197bbe73c
Fixed some intercell spacing issues
2010-11-27 17:04:10 -05:00
Randall Luecke
e3ef20eec3
Fixed up the variable row height test.
2010-11-27 16:48:08 -05:00
Randall Luecke
8ddb80fca2
Rewrote background color drawing code.
2010-11-27 16:45:59 -05:00
Randall Luecke
b8eb72f823
Fixes for drag and drop with variable row heights.
2010-11-27 13:19:51 -05:00
Randall Luecke
9003177bb7
Added more variable row height tabletests
2010-11-27 04:04:21 -05:00
Randall Luecke
591142ba84
Some clean up
2010-11-27 03:57:02 -05:00
Randall Luecke
7b4f7f75b0
Made variable rows actually work...
2010-11-27 02:47:15 -05:00
Randall Luecke
31b2cb35f7
Fix syntax errors causing the build to break
2010-11-27 01:09:24 -05:00
Randall Luecke
20eb2a9fb0
instance variable initialized twice from merge
2010-11-27 00:16:27 -05:00
Randall Luecke
37d9bff77f
Merge branch 'master' into tableview-variable
...
Conflicts:
AppKit/CPTableView.j
2010-11-26 17:44:37 -05:00
Alexander Ljungberg
f3f0bf3524
Unit test based on Cocoa example With And Without Bindings 01.
2010-11-26 17:12:46 -03:00
Alexander Ljungberg
b9ca57a921
Merge branch 'master' of github.com:280north/cappuccino
2010-11-26 15:57:48 -03:00
Alexander Ljungberg
04546e39a5
Missing semicolon, indentation.
2010-11-26 15:57:04 -03:00
Alexander Ljungberg
e6cf98f743
Fixed: [tableview selectedRow] returned nil right after awakening from a cib.
...
The correct response is CPNotFound.
2010-11-26 15:53:14 -03:00
Alexander Ljungberg
a528a503d3
Typo fix.
2010-11-26 13:37:58 -03:00
Klaas Pieter Annema
8345788e59
disable value caching in CPControllerSelectionProxy
...
More information here http://groups.google.com/group/objectivej-dev/browse_thread/thread/c100f16095073332 .
2010-11-24 14:27:59 +01:00
Klaas Pieter Annema
21c2b8f74a
trigger notification for correct key path in _CPObservationProxy
...
Previously _CPObservationProxy would only trigger notifications for the key path it was created with. For example a notification for department would be forwarded to the controller and observer as a notification on department.name because that was the key path the observation proxy was created for.
2010-11-24 14:21:19 +01:00
Brian Donovan
69c004093d
CPTokenField did not send its action on end edit.
...
Also fixes that the CPNotification sent out was CPControlTextDidBeginEditingNotification, not CPControlTextDidEndEditingNotification.
2010-11-23 10:47:59 -08:00
cacaodev
5bec411bdc
Fix for nib2cibing bindings options.
2010-11-23 19:38:03 +01:00
Klaas Pieter Annema
34339fbcd9
several bindings / KVC fixes
...
- setValue:forKeyPath will now get call setValue:forKeyPath again on the value of the first part of the key path
- override valueForKeyPath: and valueForKey: in CPObjectController's CPControllerSelectionProxy to return controller markers when appropriate
- override setValue:forKeyPath: and setValue:forKey: in CPObjectController's CPControllerSelectionProxy to bypass possible controller markers
This commit also removes previous hacks for compound paths and adds test cases for the errors. All this is related to issue #967 .
2010-11-23 14:18:22 +01:00
Klaas Pieter Annema
b49dc87a86
Merge branch 'fix-967'
2010-11-23 12:16:57 +01:00
Klaas Pieter Annema
535d6c9dc5
make setValue:forKey: handle controller markers
2010-11-23 12:15:53 +01:00
Klaas Pieter Annema
221fad6c3e
improve _setCurrentValueIsPlaceholder logic
2010-11-23 12:03:00 +01:00
Klaas Pieter Annema
aeb3873f3c
fix valueForKeyPath: attempting to call valueForKey: on controller markers
2010-11-23 11:56:46 +01:00
Randall Luecke
4f6c83cb3a
Fix for setFont: not working in the table header because of the new theme stuff.
2010-11-23 01:20:38 -05:00
Randall Luecke
2ba5cffe44
More variable row height stuff.
2010-11-23 01:15:47 -05:00
Klaas Pieter Annema
1e85a054ac
better fix for long key paths
...
The previous fix for issue #967 would only work if there was only one object observing a compound key path like selection.customer.name.
2010-11-22 19:13:20 +01:00
Klaas Pieter Annema
ca60e50128
small bindings fix in CPObjectController
...
CPObjectController would attempt to remove observations from the new selection in stead of the old selection. This would throw an error when binding to longer compound key paths like selection.customer.name
Fixes #967
2010-11-22 18:10:34 +01:00
Klaas Pieter Annema
70c13a7588
style cleanup in CPObjectController
2010-11-22 18:10:28 +01:00
Alexander Ljungberg
6653bab492
Cleanup.
2010-11-19 13:08:55 -03:00
Alexander Ljungberg
741c235f08
Fix strange cib loading path caused by non-bundliness of Tests/AppKit.
2010-11-19 13:04:59 -03:00
Alexander Ljungberg
70bc3557b4
Simplify.
2010-11-19 00:38:34 -03:00
Alexander Ljungberg
7509e5c99b
Bindings test case based on Cocoa example Simple Bindings Adoption 03.
...
In this test the bindings and controller are entirely configured in IB. Note: the path to the cib file is a little strange.
2010-11-19 00:23:27 -03:00
Alexander Ljungberg
5a2c401e05
Cleanup.
2010-11-19 00:07:37 -03:00
Alexander Ljungberg
75427973f0
More bindings nib2cib fixes.
2010-11-19 00:06:55 -03:00
Ross Boucher
63d5c442a3
Bug fixes.
2010-11-18 16:52:41 -08:00
Ross Boucher
45f74386b8
Add bindings support to nib2cib
2010-11-18 15:52:54 -08:00
Daniel Brajkovic
6093530175
Added some documentation to CPButton.j
2010-11-18 13:18:01 -06:00
Daniel Brajkovic
6bd064f289
Fixed errors in the incompatibility CPException reasons. For example -setHeaderView instead of setHeaderCell.
2010-11-18 12:33:17 -06:00
Alexander Ljungberg
31d57b0c37
Optimise table view selection notification.
...
Before the table view would send a CPTableViewSelectionDidChangeNotification whenever the number of rows in the table decreased, regardless of if any selected rows actually became deselected. This could be a needless performance drain in the common case where other program components update and reload on selection changes in a table or outline view.
2010-11-18 15:00:46 -03:00
Alexander Ljungberg
22a185b52e
Fixed CPTableViewTest which was both broken and unfinished.
2010-11-18 14:09:18 -03:00
Alexander Ljungberg
0067bd0d16
Browser test for CPSound.
2010-11-18 11:54:05 -03:00
Alexander Ljungberg
6521202e68
Add CPSound to AppKit.
2010-11-18 11:53:37 -03:00
Alexander Ljungberg
67e87c7367
Add missing semicolons, clean up.
2010-11-18 11:23:13 -03:00
Alexander Ljungberg
a4eeb91290
Merge branch 'CPSound' of https://github.com/primalmotion/cappuccino into primalmotion-CPSound
2010-11-18 11:13:13 -03:00
Antoine Mercadal
c0b1322c77
remove stupid test
2010-11-18 12:14:19 +01:00
Antoine Mercadal
3c18282510
add support for theme state rounded
2010-11-18 12:07:44 +01:00
Randall Luecke
55674e31ea
Initial work on variable row heights. No drawing support at all yet.
2010-11-18 01:22:51 -05:00
Alexander Ljungberg
39a69b6850
Bindings test case based on Cocoa example Simple Bindings Adoption 02.
2010-11-18 00:06:46 -03:00
Alexander Ljungberg
2b8a5d6176
Clean up and simplify.
2010-11-17 23:54:48 -03:00
Alexander Ljungberg
eb692e672e
Bindings test case based on Cocoa example Simple Bindings Adoption 01.
2010-11-17 23:51:33 -03:00
Alexander Ljungberg
381a6a999b
Fixed a bad var statement in CPDecimal. Cleanup.
2010-11-17 21:58:58 -03:00
Alexander Ljungberg
e276a830d3
Test token field represented object autocomplete.
2010-11-17 21:43:24 -03:00
Alexander Ljungberg
e4ee9284b4
Merge branch 'cptokenfield-fixes' of https://github.com/miLibris/cappuccino into miLibris-cptokenfield-fixes
2010-11-17 21:08:43 -03:00
Alexander Ljungberg
9e441f69b8
Merge branch 'CPCollectionView-setContent-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPCollectionView-setContent-fix
2010-11-17 20:45:45 -03:00
Alexander Ljungberg
0d2b13dd75
Merge branch 'CPArrayController-removeObject-fix' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPArrayController-removeObject-fix
2010-11-17 20:12:44 -03:00
Alexander Ljungberg
2df07344c8
Merge branch 'button-inset' of https://github.com/aparajita/cappuccino into aparajita-button-inset
2010-11-17 19:59:43 -03:00
Alexander Ljungberg
38ad5a8e2c
Regenerated nib with latest text field height fix.
2010-11-17 19:58:20 -03:00
Francisco Ryan Tolmasky I
bd15d2f331
Fix for [CPUndoManager removeAllActions] not clearing the current groupings as well.
...
Closes #1002 .
Reviewed by me.
2010-11-17 12:21:09 -08:00
Klaas Pieter Annema
80ec35fd0a
Merge branch 'hover-states'
2010-11-17 10:11:11 +01:00
Francisco Ryan Tolmasky I
fb8d834036
Improved key view loop algorithm.
...
Reviewed by me.
2010-11-16 19:33:08 -08:00
Francisco Ryan Tolmasky I
4191153d0b
Fix for key views not being properly auto-calculated.
...
Closes #965 .
Reviewed by me.
2010-11-16 15:24:09 -08:00
Aparajita Fishman and Randall Luecke
ace66b2b2f
Sizing code had been added to CPTextField initWithCoder that required resizing in NSTextField NS_initWithCoder to be removed. However, the sizing code was removed, so this code has to be re-inserted.
2010-11-16 10:29:19 -05:00
Klaas Pieter Annema
c8afcde4e5
implement NSTableColumn data cell text color support
2010-11-16 11:56:00 +01:00
Andreas Falk
a302fdfb8f
CPTextField should not bother with handling tab to go to the next key
...
view, CPWindow does that for us.
2010-11-15 19:44:02 +01:00
Luc Vauvillier
8b9a0edeba
Fix CPTokenField autocompletion to deal with represented objects
2010-11-15 15:51:21 +01:00
Klaas Pieter Annema
923770d95a
style cleanup
2010-11-15 14:27:43 +01:00
Klaas Pieter Annema
011b8d250a
remove second implementation of _processKeyboardUIKey:
2010-11-15 14:25:47 +01:00
Luc Vauvillier
0f8aa1e644
Support object representation in CPTokenField
...
Add some tests
2010-11-15 13:14:53 +01:00
Francisco Ryan Tolmasky I
9179a31a93
Style fixes.
...
Reviewed by me.
2010-11-13 12:41:31 -08:00
Francisco Ryan Tolmasky I
c9d32b4163
Merge branch 'CPTreeNode-descendantNodeAtIndexPath' of https://github.com/luuse/cappuccino into luuse-CPTreeNode-descendantNodeAtIndexPath
2010-11-13 10:26:07 -08:00
Andreas
57c691c2e2
Make CPBundle post a notification on successfull load
2010-11-13 15:38:14 +01:00
Andreas
bb9e1a830d
Add cancelOperation action to clear text when pressing ESC
2010-11-13 15:21:37 +01:00
Andreas
9b7f8ec31e
Add -insertTabIgnoringFieldEditor: and -insertNewlineIgnoringFieldEditor:
2010-11-13 15:16:25 +01:00
Andreas
17b40fcb9d
Adapt CPTextField to use interpretKeyEvents and actions instead of directly reading from keyDown
2010-11-13 15:14:09 +01:00
Andreas Falk
8a75c9078e
Fix display names in CFBundle
2010-11-13 13:36:24 +01:00
Andreas Falk
fbcf84e63f
Fix some broken things after cherry-pick
2010-11-13 13:03:01 +01:00
Andreas
ea5ab5e921
Add CPIndexPath implementation and tests
2010-11-13 12:22:06 +01:00
Andreas
3a8773baec
Add -descendantNodeAtIndexPath: and tests to CPTreeNode
2010-11-13 12:06:43 +01:00
cacaodev
602a2c47c2
CPScanner fixes with tests.
2010-11-13 02:29:04 +01:00
Francisco Ryan Tolmasky I
ab4dd1ac6d
Got rid of nonsensical tasks in ThemeDescriptor Jakefile.
...
Reviewed by me.
2010-11-12 15:47:25 -08:00
Brian Donovan
6f38b2aa0d
-[CPCollectionView setContent:] did not always call reloadContent:.
...
This would break key-value binding setups where a CPCollectionView's content property was hooked up to a CPArrayController's content or arrangedObjects property since the CPArrayController maintains the same object and calls setValue:forKey: with the same object the CPCollectionView already has. Therefore we cannot skip calling reloadContent even when the incoming content array is the same one we got before, because most likely the contents have changed out from under us.
2010-11-11 21:39:07 -08:00
Brian Donovan
929ec28436
CPArrayController did not allow removing objects without a selection.
...
CPArrayController was erroneously using canRemove to determine whether explicit removal could take place, when in fact the documentation for [NSObjectController canRemove] (NSArrayController does not override canRemove) states that it returns "YES if an object can be removed from the receiver using remove:, otherwise NO", implying that it should only be used to check whether there is a selected element that can be removed (for example, to bind the enabled state of a toolbar button to a CPArrayController's canRemove property). It should not be used to decide whether a specific object can be removed or not.
2010-11-11 17:45:18 -08:00
Alexander Ljungberg
04a19543a5
Fix CPTabView decoding to work better with nib2cib.
2010-11-11 20:21:24 -03:00
Alexander Ljungberg
5d505f5271
Merge branch 'CPString-copy' of https://github.com/cacaodev/cappuccino into cacaodev-CPString-copy
2010-11-11 16:57:49 -03:00
Antoine Mercadal
60ff3ca0a1
Support for HUD style
...
use [alert setTheme:[CPTheme defaultHUDTheme]] or [alert setTheme:[CPTheme defaultTheme]] to switch theme.
Add deprecated procies setWindowStyle: and windowStyles;
2010-11-11 18:24:17 +01:00
Alexander Ljungberg
e4f5d9b32f
Fixed some comments referencing NS* classes.
2010-11-11 13:42:25 -03:00
Antoine Mercadal
6b42ef3cb1
fix: CPAlert fails to runModal if ran sheetModal before
2010-11-11 17:38:39 +01:00
Alexander Ljungberg
345b9d9297
Fix some comments.
2010-11-11 13:38:16 -03:00
Alexander Ljungberg
4bad3c2823
Merge branch 'CPPredicate' of https://github.com/cacaodev/cappuccino into cacaodev-CPPredicate
2010-11-11 12:59:04 -03:00
Alexander Ljungberg
38033d9dcb
Fixed the CPAlert manual test which did not work after the recent changes.
2010-11-11 12:46:25 -03:00
Nicholas Small
5c961d4f16
Restore CPAlert -setTitle: functionality.
2010-11-10 17:43:21 -05:00
Nicholas Small
c21cdc2916
Cleanup CPAlert.
2010-11-10 17:39:56 -05:00
Nicholas Small
1a797b10c3
Merge branch 'CPAlert-Cocoa-Compliance' of https://github.com/primalmotion/cappuccino into primalmotion-CPAlert-Cocoa-Compliance
2010-11-10 13:46:50 -05:00
Antoine Mercadal
3bfa427134
Add setTitle: and title, deprecated proxies for setMessageText: and messageText
...
Add some missing Cocoa accessors
Fix acessors for messageText and informativeText that returned CPTextField instead of CPString
2010-11-10 11:02:27 +01:00
Antoine Mercadal
9a8c4bd431
move CPAlertLabelOffset to a theme attribute
2010-11-10 10:25:23 +01:00
Antoine Mercadal
dc72b55361
remove the title of the panel. Cocoa doesn't display any title
2010-11-09 18:33:39 +01:00
Antoine Mercadal
ee4ef882dd
add X and Y offet theme properties for supression button
2010-11-09 18:27:26 +01:00
Antoine Mercadal
23c2f4bb8c
remove the movable thing and remove the bezel-color them attribute
2010-11-09 18:08:13 +01:00
Antoine Mercadal
bd01955f39
support for setShowsSupressionButton
2010-11-09 18:02:24 +01:00
Antoine Mercadal
3f1e1e57d8
update help button art
2010-11-09 18:02:06 +01:00
Antoine Mercadal
ee343c7533
make window not movable by dragging background if sheet + capp_lint/sorting/cleaning/commenting
2010-11-09 17:01:11 +01:00
Antoine Mercadal
961071e3fa
refactor a method
2010-11-09 16:55:33 +01:00
Antoine Mercadal
0219341ee8
add support for setShowHelp:
2010-11-09 16:41:41 +01:00
Aparajita Fishman
5df3c7838d
Increased content inset a bit to match Cocoa, whitespace cleanup.
2010-11-09 09:27:11 -05:00
Antoine Mercadal
bf63147ca3
Cleaning CPAlert, add accessoryView
2010-11-09 15:21:25 +01:00
Klaas Pieter Annema
b7d7b99a82
Merge branch 'CPDecimalNumber'
2010-11-09 10:38:58 +01:00
Brian Donovan and Klaas Pieter Annema
5a0129018a
Fix spelling of "separator".
2010-11-09 10:33:49 +01:00
Klaas Pieter Annema
e48a437c88
fix failing CPUserDefaults test
2010-11-09 10:28:36 +01:00
Antoine Mercadal
187c32d231
fix CPStepper test cases
2010-11-09 00:46:47 +01:00
Antoine Mercadal
c680e31817
add test case for CPStepper
2010-11-09 00:37:27 +01:00
Antoine Mercadal
cc177eeb2b
add artwork
2010-11-09 00:37:14 +01:00
Antoine Mercadal
918db24c63
add CPStepper to Aristo
2010-11-09 00:36:56 +01:00
Antoine Mercadal
7e005f4559
use setNeedsLayout to layout subviews
2010-11-09 00:36:28 +01:00
Antoine Mercadal
5d49c1346a
implement CPStepper
2010-11-08 23:20:05 +01:00
Antoine Mercadal
f6147850b9
use document.createElement('audio') instead of new Audio(). work better
2010-11-08 22:16:21 +01:00
Nicholas Small
731e50da32
Clean up value accessors in CPUserDefaults.
2010-11-08 12:35:23 -05:00
Nicholas Small
5078c3e9cf
Merge branch 'fix-cpuserdefaults-protocol' of https://github.com/primalmotion/cappuccino into primalmotion-cpuserdefaults-fixes
2010-11-08 11:52:43 -05:00
Klaas Pieter Annema
de0a09899a
Merge branch 'sizeToFit-fix' of https://github.com/aparajita/cappuccino into aparajita-sizeToFit-fix
2010-11-08 10:08:50 +01:00
Klaas Pieter Annema
4041ef8746
Merge branch 'CPView-ephemeral-subview' of https://github.com/aparajita/cappuccino into aparajita-CPView-ephemeral-subview
2010-11-08 09:59:52 +01:00
cacaodev
3b35219beb
Fix [[string copy] isEqual:[string copy]] == NO
2010-11-07 21:43:02 +01:00
cacaodev
ca289e081e
CPPredicate parsing support:
...
"($)path.($)variable"
"SUBQUERY(collection, $x,$x = 2)"
"sum:(arg1, ...)"
"FUNCTION(target, selector, arg1, ...)
"object[expression]"
"set UNION|INTERSECT|MINUS otherset"
Fixed a bug where CPExpression_set was evaluating to an expression instead of a set.
Replaced parsing exceptions with a generic function indicating where it failed.
2010-11-07 17:56:22 +01:00
Aparajita Fishman
5cd00d71c7
Fixed sizeToFit drawing when there is no image, setNeedsDisplay is no longer needed after sizeToFit.
2010-11-06 17:12:09 -04:00
Antoine Mercadal
ea924fbb26
some small glitch fix
2010-11-06 18:59:02 +01:00
Antoine Mercadal
da23a89910
update header
2010-11-06 18:38:52 +01:00
Antoine Mercadal
e4b47090ba
added CPSound, an HTML5 wrapper for NSSound
2010-11-06 18:37:17 +01:00
Antoine Mercadal
386ded05fd
remove useless _searchListNeedsReload
2010-11-06 10:19:21 +01:00
Alexander Ljungberg
e3b6cbcee9
Merge branch 'CPArrayControllerFixes' of https://github.com/dasto/cappuccino into dasto-CPArrayControllerFixes
2010-11-05 15:48:10 -03:00
Alexander Ljungberg
fd7651e895
Merge branch 'base-conversion' of https://github.com/aparajita/cappuccino into aparajita-base-conversion
2010-11-05 15:29:12 -03:00
Alexander Ljungberg
8ca2f53828
Merge branch 'CPPredicate' of https://github.com/cacaodev/cappuccino into cacaodev-CPPredicate
2010-11-05 14:52:37 -03:00
Alexander Ljungberg
fc385935ef
Test nib2cib for CPTabView.
2010-11-05 13:52:59 -03:00
Alexander Ljungberg
ed1c5714a3
Closes #971 . Fixed: nib2cib did not work with the new CPTabView.
2010-11-05 13:51:51 -03:00
Alexander Ljungberg
dfe03458d0
Fixed: decoding a CPTabView would result in "TypeError: Result of expression 'aRect' [null] is not an object" due to incomplete initialisation.
2010-11-05 13:30:57 -03:00
Antoine Mercadal
c55cd03db1
more robust tests for CPUserDefaults
2010-11-05 17:28:40 +01:00
Antoine Mercadal
6a2b347b21
authorize string in setURL:forKey:
2010-11-05 17:28:18 +01:00
Antoine Mercadal
b96abb5fd4
fix typo
2010-11-05 17:01:24 +01:00
Alexander Ljungberg
4974a47c94
Merge branch 'master' of github.com:280north/cappuccino
2010-11-05 12:03:25 -03:00
Alexander Ljungberg
7e229652f1
Merge branch 'fix-cptabview-height-resizing' of https://github.com/primalmotion/cappuccino into primalmotion-fix-cptabview-height-resizing
2010-11-05 11:56:19 -03:00
Alexander Ljungberg
81f2959417
Visually test tab view resizing.
2010-11-05 11:52:11 -03:00
Daniel Stolzenberg
9d46c688ed
fixed support for "contentSet" in CPArrayController.j, where sets were not converted to arrays
2010-11-05 15:02:31 +01:00
Antoine Mercadal
60a8ddd306
be less restrictive on setInteger, setFloat and setDouble
2010-11-05 14:42:22 +01:00
Klaas Pieter Annema
4817a87499
fix CPBox drawing the separator style between pixels
2010-11-05 13:05:43 +01:00
Antoine Mercadal
91ce1c3f6c
add stringArrayForKey:
2010-11-05 11:52:43 +01:00
Antoine Mercadal
0c9cba4e71
add test cases for CPUserDefaults
2010-11-05 11:47:23 +01:00
Antoine Mercadal
c833de2e0a
set _searchListNeedsReload to YES after setting defaults
2010-11-05 11:37:46 +01:00
Antoine Mercadal
6824e42c69
fix some small bugs
2010-11-05 11:32:18 +01:00
Antoine Mercadal
67a41534bd
make CPUserDefault more Cocoa compliant
2010-11-05 11:08:27 +01:00
Klaas Pieter Annema
3d0d522f76
implement coding support for autosaveName in CPTableView
2010-11-05 11:02:37 +01:00
Klaas Pieter Annema
accd29804c
implement table column order and width autosaving
2010-11-05 11:02:26 +01:00
Klaas Pieter Annema
0c62609e76
made CPTableView aware of a resize in CPTableColumn
2010-11-05 11:02:05 +01:00
Aparajita Fishman
6148654604
Added convertTo/FromBase methods for completeness (and convenience).
2010-11-04 23:01:28 -04:00
Nicholas Small
40c1957484
Update documentation in CPUserDefaults.
2010-11-04 16:06:53 -04:00
Nicholas Small
6f754d9810
Added CPUserDefaults.j
2010-11-04 15:53:53 -04:00
Antoine Mercadal
9a4c9e4306
add test for CPTabView height resizing
2010-11-04 10:41:24 +01:00
Randall Luecke
c52b40657a
Removed frame resizing in the textfield's initWithCoder:
2010-11-03 22:54:09 -04:00
Ross Boucher
b85e9d83b8
Fix for the fix for extensionless IB resource names.
2010-11-03 11:18:37 -07:00
Francisco Ryan Tolmasky I
2e9684e9a7
Fix for bottom corner view of CPScrollView being broken in CPCoding circumstances (normal coding, nib2cibing, Atlas, etc.).
...
Reviewed by me.
2010-11-03 10:37:51 -07:00
Klaas Pieter Annema
a80a0d0a13
Complete the style fix started in previous commit
2010-11-03 14:13:55 +01:00
Francisco Ryan Tolmasky I
885eff1f9b
Style fix.
...
Reviewed by me.
2010-11-03 01:34:54 -07:00
Francisco Ryan Tolmasky I
706e80362d
Slight change to last commit, change == to ===.
...
Reviewed by me.
2010-11-03 01:25:08 -07:00
Brian Donovan and Francisco Ryan Tolmasky I
7bf2297125
-[CPArrayController setContent:] would interpret nil as [nil].
...
When initializing a CPArrayController with a value that is not an array setContent: would make it an array by replacing value with [value]. This is consistent with how Cocoa does it, but it should first check to make sure that the content is not nil. If it is, the sensible thing to do (and what Cocoa does) is to replace it with an empty array.
This commit also includes a missing import to make CPArrayControllerTest run without error.
2010-11-03 01:24:38 -07:00
Francisco Ryan Tolmasky I
99c1d18d95
Fix for targets and actions not working in nib2cibed toolbars.
...
Reviewed by me.
2010-11-03 00:36:30 -07:00
Ross Boucher
a45668e7cb
Updates to make nib2cib work better with CPToolbar (and with image resources in IB in general).
2010-11-02 20:31:43 -07:00
Daniel Stolzenberg
db2c88f2e5
Merge branch 'master' of git://github.com/280north/cappuccino
2010-11-02 13:49:52 +01:00
Antoine Mercadal
b9095b2176
box is now resized using CPViewHeightSizable
2010-11-02 13:02:24 +01:00
Francisco Ryan Tolmasky I
f46bbf83a8
Slight fix for correctness with --include.
...
Reviewed by me.
2010-11-01 11:26:59 -07: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
Klaas Pieter Annema
64aeea0f08
Merge branch 'runtime-theming'
2010-11-01 14:04:22 +01:00
Daniel Stolzenberg
ec9fac6629
Merge branch 'master' of git://github.com/280north/cappuccino
2010-11-01 10:13:59 +01:00
Daniel Stolzenberg
b2dac594dc
fixed 4 spaces for tab formatting issues in CPKeyValueCodingTest.j
2010-11-01 09:47:19 +01:00
Daniel Stolzenberg
28029030b6
fixed 4 spaces for tab formatting issues
2010-11-01 09:38:19 +01:00
Alexander Ljungberg
06db60d7df
Merge branch 'fix-cptabview-not-resizable' of http://github.com/primalmotion/cappuccino into primalmotion-fix-cptabview-not-resizable
2010-10-29 16:13:47 -03:00
Alexander Ljungberg
eb39e2e81a
Optimise token field redraws when adding or deleting tokens by recycling token fields. This eliminates the flicker of all previous tokens whenever a new token was added.
2010-10-29 14:40:46 -03:00
Alexander Ljungberg
0867ccdc73
Reduced token height by 1 pixel to put some more whitespace underneath it in a standard height token field.
2010-10-29 14:23:36 -03:00
cacaodev
4b1fbf1eff
Implemented subquery expressions.
...
Added missing getters in CPExpression.
Added a type: argument to FunctionExpression initializer used by subclasses to init super with their own type.
Fixed evaluation with bindings dictionary in CPExpression_variable. Allow values in bindings to be a constant or an expression (per cocoa).
Tests: added tests for subqueryExpressions, for variableExpression evaluation where the value in the bindings dictionary can be either a constant or another expression.
Parsing a simple variable expression works (e.g. '$x = 12'), parsing a variable in a combined path (e.g.
'$x.path = 12' won't yet.
2010-10-29 18:58:29 +02:00
Antoine Mercadal
8ead5f63da
fix CPtabViewTest
2010-10-28 11:01:38 +02:00
Daniel Stolzenberg
24fbecb2e6
Merge branch 'master' of git://github.com/280north/cappuccino
2010-10-28 09:20:52 +02:00
Alexander Ljungberg
a80732f13a
Whitespace and style cleanup.
2010-10-27 20:44:55 -03:00
Alexander Ljungberg
923d7c63b5
Fixed an accidental global.
2010-10-27 20:24:05 -03:00
Alexander Ljungberg
7626af00e7
Apply Cappuccino code style.
2010-10-27 20:16:14 -03:00
Alexander Ljungberg
1d647fab10
Merge branch 'CPPredicate-parsing' of http://github.com/cacaodev/cappuccino into cacaodev-CPPredicate-parsing
2010-10-27 19:34:44 -03:00
Alexander Ljungberg
c9fcbe0e93
Merge branch 'eventualbuddha-sprintf-format-parameter-indexes'
2010-10-27 19:26:51 -03:00
Alexander Ljungberg
6d9d443d0a
Merge branch 'sprintf-format-parameter-indexes' of http://github.com/eventualbuddha/cappuccino into eventualbuddha-sprintf-format-parameter-indexes
2010-10-27 19:16:50 -03:00
Daniel Stolzenberg
4a142b5c02
implemented missing features of KVO for unordered to-many relationships in CPKeyValueCoding.j
2010-10-27 19:08:34 +02:00
Daniel Stolzenberg
dfba974572
enabled subclasses of CPSet to use CPObjects "addObserver:/removeObserver:" methods without throwing exception
2010-10-27 12:35:50 +02:00
Daniel Stolzenberg
c1fd31fa23
removed unnecessary @import "CPArray+KVO.j" statement in CPKeyValueCoding.j
2010-10-27 12:13:47 +02:00
Daniel Stolzenberg
fd3e10f793
added some comments to original behaviour of Cocoa in CPKeyValueCoding.j
2010-10-27 12:07:50 +02:00
Daniel Stolzenberg
6a7358920b
implemented CPKeyValueCodingTests for CPNull-nil-conversion and CPDictionary KVC-compliance
2010-10-27 10:43:31 +02:00
Daniel Stolzenberg
c0aa180e83
improved Cocoa compatibility, enhanced usage of accessor pattern in "removeAllObjects" in CPSet+KVO.j
2010-10-27 10:41:48 +02:00
cacaodev
2a95523577
CPPredicate & CPExpression changes:
...
Parsing: fixed typos in built-in function names, fixed support for [FIRST], [LAST], [INDEX]
Fixed aggregates {exp1,exp2}
Fixed -expressionForFunction:selectorName:arguments:
built-in functions are now class methods
Cleaned a lot of code in built-in functions
EvaluatedObjectExpression is now a singleton
Merged inserset/minus/union Set into one file
Deleted unused expression subclasses : expression_operator and expression_assignement
Added CPCoding methods and changed key names to match Cocoa
Made KeyPathExpresion a subclass of FunctionExpression like in Cocoa
Tests
2010-10-27 00:57:31 +02:00
Klaas Pieter Annema
0fa149b74f
encode and decode themeClass
...
This makes it possible to theme any themeClass without having to subclass a CPView and return something different from defaultThemeClass. Theme a custom theme class by assigning to a control within the theme descriptor ([control setThemeClass:"your-theme-class"]).
2010-10-26 20:41:56 +02:00
Daniel Stolzenberg
82cf7df7e9
implemented missing "setValue:forKey:" test for CPKeyValueCoding.j
2010-10-26 18:10:31 +02:00
Daniel Stolzenberg
4c58c602ff
implemented Tests for CPKeyValueCoding "valueForKey:"
2010-10-26 17:09:12 +02:00
Daniel Stolzenberg
14e4b71d20
removed unnecessary ".isa" statements in CPKeyValueCoding.j
2010-10-26 17:07:13 +02:00
Daniel Stolzenberg
6483ea233c
imported new implementation for unordered to-many relationships in CPKeyValueObserving.j/CPSet+KVO.j
2010-10-26 14:23:24 +02:00
Daniel Stolzenberg
895ed4f6ff
implemented missing replacement methods for accessor patterns in CPKeyValueObserving.j
2010-10-26 14:20:54 +02:00
Daniel Stolzenberg
5ff7e66981
implemented "will/didChangeValueForKey:withSetMutation:usingObjects:" in _CPKVOModelSubclass in CPKeyValueObserving.j
2010-10-26 14:17:39 +02:00
Daniel Stolzenberg
a2ff814796
added missing accessor patterns in "_replaceSetterForKey:" in CPKeyValueObserving.j
2010-10-26 14:13:21 +02:00
Daniel Stolzenberg
c1e42a2f3e
refactored duplicated method copying implementation
2010-10-26 14:11:47 +02:00
Daniel Stolzenberg
9e1c07b195
added "CPKeyValueSetMutationKind" definitions to CPKeyValueObserving.j
2010-10-26 14:08:56 +02:00
Daniel Stolzenberg
c71c732fc0
added "will/didChangeValueForKey:withSetMutation:usingObjects:" stubs to CPObject in CPKeyValueObserving.j
2010-10-26 14:06:56 +02:00
Daniel Stolzenberg
b3e0ec60df
fixed bug in "_modifierForKey()" where self was used in a plain JS-function
2010-10-26 13:57:57 +02:00
Daniel Stolzenberg
513cc2cac7
removed unnecessary if-statement (because it never gets executed)
2010-10-26 13:04:25 +02:00
Daniel Stolzenberg
b0feeb3d31
improved cocoa compatibility by _CPKVCArray-proxy inheriting from CPMutableArray, fixed wrong mutable accessors patterns in "CPArray+KVO.j"
2010-10-26 12:53:21 +02:00
Daniel Stolzenberg
9c7b3475d8
fixed bug in "mutableArrayValueForKeyPath:" in CPArray+KVO.j which was not calling itself recursively
2010-10-26 12:50:33 +02:00
Daniel Stolzenberg
99e4a4fb4f
implemented missing "setValuesForKeysWithDictionary:" method in "CPKeyValueCoding.j"
2010-10-26 12:48:32 +02:00
Daniel Stolzenberg
7b7b46a61e
unified implementations of "_accessorForKey", "_modifierForKey" and "_ivarForKey" in CPKeyValueCoding.j
2010-10-26 12:39:47 +02:00
Daniel Stolzenberg
ed4a264108
removed duplicated (and buggy) implementations of "valueForKey:" and "setValue:forKey:" in CPArray.j
2010-10-26 12:24:20 +02:00
Klaas Pieter Annema
c7fdad883a
add deprecation warning for class that have themeClass implemented
2010-10-25 16:14:33 +02:00
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02:00
Klaas Pieter Annema
22e2bdcd25
make theme class runtime configurable
2010-10-25 13:54:39 +02:00
Klaas Pieter Annema
85c9ca518f
lint cleanup in CPView
2010-10-25 13:54:19 +02:00
Alexander Ljungberg
29a93b20f4
Merge branch 'flllow-tokenfield-improvements'
2010-10-23 20:53:34 -03:00
Alexander Ljungberg
b95bdca2a3
Lint cleanup.
2010-10-23 20:47:11 -03:00
Alexander Ljungberg
6fd5f66a15
Support forward delete in token fields.
2010-10-23 20:42:01 -03:00
Alexander Ljungberg
9e235f7236
Fixed: clicking tokens in a token field could disable its keyboard handling due to the input field losing focus.
2010-10-23 20:21:02 -03:00
Alexander Ljungberg
90d12ef77e
Place the cursor correctly when arrow keys are used with one or more tokens selected. Fixed: the layout would not update to remove the gap for the editor if between tokens when resigning first responders.
2010-10-23 19:31:08 -03:00
Alexander Ljungberg
0c2301766a
Place the cursor after the last inserted token when editing.
2010-10-23 17:09:46 -03:00
Alexander Ljungberg
8a7b6054ef
If the text editing part of the token field is the last in the line, make it take up the remaining field width so that it captures clicks there.
2010-10-23 16:58:02 -03:00
Alexander Ljungberg
7037151bfc
Fixed: clicking a token would cause the token field to resign first responder status, only to reclaim it on mouse up.
...
This was caused by the framework's stop DOM event code blurring the field. Now simply refuse to resign first responder status between mouse down and mouse up. Note that this fixes the bug the previous commit did too, but that commit improves other scrolling behaviour so it gets to stay.
2010-10-23 16:00:45 -03:00
Alexander Ljungberg
ba26b19567
Fixed: if the token field was scrolled up and a token was clicked, the scroll position would jump back down.
2010-10-23 15:41:41 -03:00
Alexander Ljungberg
6587014014
Improve token field scrolling behaviour and performance: only resize the document view frame when necessary to prevent the loss of scroll position and display jumps. Fixed: if a token on a new line was clicked, the view would scroll up to the first line.
2010-10-23 14:36:42 -03:00
Alexander Ljungberg
80b16ae9ab
Bluer selected tokens in token field.
2010-10-23 14:07:46 -03:00
Alexander Ljungberg
07330a0ca8
Select tokens by clicking on them. Select multiple tokens by holding down shift. Also fixed a bug when deleting multiple tokens at a time.
2010-10-23 13:49:36 -03:00
cacaodev
3cfbca5a19
CPScanner: When the scanner did not accumulate any string, do not change (to nil) the object passed as a ref in ...intoSring:ref() methods. With tests.
2010-10-23 10:25:42 +02:00
cacaodev
c735399ca5
CPPredicate: Fix for fail when parsing empty quotes. With Tests.
2010-10-23 09:26:12 +02:00
Alexander Ljungberg
d68f4359ac
Reduce token shifting when a token is selected. Ideally there shouldn't be any shifting at all, but placing a tiny editor at the right spot simplifies scroll handling.
2010-10-23 00:22:40 -03:00
Alexander Ljungberg
d4cfa4b24f
Minor optimisations and cleanup.
2010-10-23 00:00:00 -03:00
Alexander Ljungberg
2912acb4f5
Simplify: remove _selectedTokenIndexes since we now have _selectedRange. Hide the editor when tokens are selected. Preserve cursor position when tokens are deleted.
2010-10-22 23:45:48 -03:00
Alexander Ljungberg
85683d8f18
Navigate among tokens with the arrow keys. Insert and delete tokens relative to the cursor.
2010-10-22 20:43:40 -03:00
Brian Donovan
8ca2a1bf5b
IE uses an empty string as the value of an empty capture group.
2010-10-22 14:41:31 -07:00
Brian Donovan
8427697a4b
Fix accidental globals.
2010-10-22 14:15:22 -07:00
cacaodev
275f89a340
CPPredicate: parsing 'BETWEEN' or 'CONTAINS' keywords now generates predicates with their corresponding operators. Some code style.
...
CPComparisonPredicate: fixed typo in 'between' operator evaluation, simplified 'contains' and 'in' evaluation.
Added tests in CPPredicateTest for theses fixes.
2010-10-22 22:13:57 +02:00
Klaas Pieter Annema
49c8a02b5f
cleanup in CPSplitView and the Aristo ThemeDescriptors
2010-10-22 13:55:37 +02:00
Klaas Pieter Annema
1165e569d2
make splitview pane divider color theme-able
2010-10-22 13:54:39 +02:00
Alexander Ljungberg
e66f22d094
Allow the editor to be placed anywhere based on a selection range.
2010-10-21 23:46:03 -03:00
Alexander Ljungberg
d0b29fd38c
Fix resizing and initial sizing of token fields.
2010-10-21 17:49:41 -03:00
Alexander Ljungberg
28378ff19b
Minor performance tweaks.
2010-10-21 17:11:47 -03:00
Alexander Ljungberg
b4f2f15698
Fixed: if a token field had many tokens and a long token name was entered, that token name had to be edited in the small amount of space left on the right hand side of the token field. Now the editor wraps to a new line as needed.
2010-10-21 17:04:09 -03:00
Alexander Ljungberg
2210c1f4c5
Implemented token field overflow support as in Cocoa: if more tokens than can fit are entered, they wrap to a new line. If the new line does not fit within the height of the token field, the previous line is scrolled out of view.
...
Note: this replaces the previous non Cocoa behaviour where the token field would grow height-wise with new tokens. This behaviour can still be useful, as seen in Apple Mail, but it will now require the user to subclass CPTokenField, override layoutSubview and set the frame size to the size of the scroll view's document view.
2010-10-21 15:56:17 -03:00
Brian Donovan
7be6352531
Add format parameter index support to sprintf.
...
This is primarily useful in cases when the format string can vary, but the argument order will not, as is often the case with format strings in Localized.strings files.
From http://perldoc.perl.org/functions/sprintf.html :
An explicit format parameter index, such as 2$. By default sprintf will format the next unused argument in the list, but this allows you to take the arguments out of order.
See also this Cocoa example: http://stackoverflow.com/questions/1063843/is-there-a-way-to-specify-argument-position-index-in-nsstring-stringwithformat
2010-10-21 09:54:51 -07:00
Randall Luecke
f2391cb150
Merge branch 'master' of git://github.com/280north/cappuccino
2010-10-21 12:02:06 -04:00
Randall Luecke
09c02c5884
Typeo in group items in outlineview.
2010-10-21 12:01:34 -04:00
Klaas Pieter Annema
71d02abc28
add global to disable string size caching
2010-10-21 17:36:09 +02:00
Alexander Ljungberg and Klaas Pieter Annema
367efe590e
Fixed with the new string size optimisation: the cache value was returned by reference and something in the CPButton path for image and text buttons changed it causing text to become misaligned. A defensive copy avoids this problem.
2010-10-21 17:36:09 +02:00
Klaas Pieter Annema
afcce49455
improve CPString sizeOfString performance by caching the calculated result
2010-10-21 17:36:09 +02:00
Alexander Ljungberg
d63e4f8021
Remove some placeholder comments for methods which now exist.
2010-10-21 00:47:58 -03:00
Blair Duncan and Ross Boucher
c9a4821d15
Fix for issue 951 - CPResponder flagsChanged does not fire when the key is up
2010-10-20 18:54:50 -07:00
Blair Duncan and Ross Boucher
696990f035
Fix for previous fix and modified the test file.
2010-10-20 18:48:29 -07:00
Blair Duncan and Ross Boucher
ad0867ba7d
Fix for issue 948 Custom Cursors not working
2010-10-20 18:48:24 -07:00
Antoine Mercadal
48ebd2e954
add tests for CPTabView
2010-10-20 00:05:03 +02:00
Antoine Mercadal
3d82203893
remove 'drunk' code and simply use resizing masks
2010-10-19 22:53:52 +02:00
Klaas Pieter Annema
a3766a0f96
whitespace cleanup in NSTextField and NSSearchField
2010-10-19 15:12:53 +02:00
Klaas Pieter Annema
2eb27a6492
Don't adjust the origin and size of a text field during nib2cib
...
This interferes with Aparajita's auto-sizing of controls in initWithCoder:. Also it's better to calculate the size in initWithCoder: because the theme information is available.
2010-10-19 15:07:01 +02:00
Klaas Pieter Annema
991e213d02
give CPSearchField it's own theme class
...
Before this change it was not possible to theme CPSearchField separately from a CPTextField. Aristo still just uses the rounded theme style.
2010-10-19 14:21:00 +02:00
Joachim Garth and Ross Boucher
834480ff68
Fixed a bug in reverseTransformValue: that caused transformedValue: to be called instead of reverseTransformedValue:
2010-10-18 10:46:13 -07:00
cacaodev and Ross Boucher
678563a970
Accidental globals in CPNotificationCenter and Runtime.js
2010-10-18 10:15:40 -07:00
Randall Luecke
00e638f406
initWithCoder on CPTextField should respect the larger height value if it's set.
2010-10-18 01:30:25 -04:00
Alexander Ljungberg
6b37bae2c2
Fixed: removed the previous CPTimer DOM check - it doesn't work in Foundation.
2010-10-15 16:03:00 -03:00
Alexander Ljungberg
a3a4aed0d2
Merge branch 'master' of github.com:280north/cappuccino
2010-10-15 15:00:40 -03:00
Alexander Ljungberg
8ec78f20d1
Implement _minimumFrameSize for CPTokenField tokens. Also honor min-size width - not used by Aristo but potentially useful for custom themes.
2010-10-15 12:40:09 -03:00
Alexander Ljungberg
a821614939
Clean up code.
2010-10-15 12:36:57 -03:00
Randall Luecke
e13d771560
Performance related fixes for tableview drawing.
2010-10-15 11:09:26 -04:00
Randall Luecke
49a0a3d86e
Fix for parameter type change from a find/replace.
2010-10-15 02:10:29 -04:00
Randall Luecke
56bc94f98c
Merge branch 'tableview-grouprows'
2010-10-15 01:52:57 -04:00
Randall Luecke
f0b527b680
Selection fixes for group rows in the tableview.
2010-10-15 01:52:22 -04:00
Derek Hammer
ae5d56471f
Inlining function, fixing a style issue.
2010-10-14 19:31:04 -05:00
Tom Robinson
58494c5c2a
Merge branch 'master' of github.com:280north/cappuccino into integration
2010-10-14 16:38:45 -07:00
Tom Robinson
c72e136370
Require latest versions of all package to eliminate deprecation warnings.
2010-10-14 16:38:06 -07:00
Alexander Ljungberg
b4c8da8f3d
Fix CPTokenField imports.
2010-10-14 20:21:00 -03:00
Alexander Ljungberg
612e8c3f0b
Add DOM checks to CPTimer's window.setTimeout bridge code.
2010-10-14 20:20:20 -03:00
Tom Robinson
9763cef196
Merge branch 'fix-deprecation-warnings' of http://github.com/paulbaumgart/cappuccino into paulbaumgart-fix-deprecation-warnings
2010-10-14 16:16:02 -07:00
Alexander Ljungberg
ebd83b4941
Merge branch 'fix-cptokenfieldtoken-sizetofit' of http://github.com/primalmotion/cappuccino into primalmotion-fix-cptokenfieldtoken-sizetofit
2010-10-14 19:42:33 -03:00
Alexander Ljungberg
48d3ae61c5
Merge branch 'master' of github.com:280north/cappuccino
2010-10-14 19:38:11 -03:00
Alexander Ljungberg
cfba019e3d
CPCoding support for CPResponder menus. This allows context menus to be set for collection view items through the item prototype.
2010-10-14 19:36:48 -03:00
Brian Donovan and Ross Boucher
2037ab9a5e
-[CPScrollView setContentView:] did not allow changing the content view.
2010-10-14 11:25:29 -07:00
Paul Baumgart and Ross Boucher
3287b02816
add script to automatically detect missing @imports and have it run from "jake test-only"
2010-10-13 18:48:46 -07:00
Paul Baumgart and Ross Boucher
12deb6859e
Make CPCompatibility a little more CommonJS friendly.
2010-10-13 18:48:37 -07:00
Paul Baumgart and Ross Boucher
98393c66fc
change a 'self' to a 'super' to fix infinite recursion
2010-10-13 18:41:59 -07:00
Ross Boucher
74bedf6dcd
Add a missing import to the ArrayController test.
2010-10-13 18:39:46 -07:00
Brian Donovan and Ross Boucher
b5d0054f94
-[CPIndexSet shiftIndexesStartingAtIndex:by:] did not properly adjust count.
...
When clipping a range (i.e. some or all of it went below the lower bound) as a result of
calling shiftIndexesStartingAtIndex:by: with a negative delta, the CPIndexSet did not adjust
the index count, which caused calls to -lastIndex to fail.
This caused -[CPArrayController removeObject:] to fail when the object removed was at index 0.
2010-10-13 18:20:20 -07:00
Antoine Mercadal
560c971aeb
capp_lint
2010-10-13 13:41:35 +02:00
Antoine Mercadal
8fc465b63a
fix: CPTabView not resizable
...
fix: delegate problem with uninitialized variable
2010-10-13 13:37:28 +02:00
Antoine Mercadal
ca0c68c9bf
fix: CPTokenFieldToken impacted by new CPTextField sizeToFit behaviour
2010-10-13 13:34:37 +02:00
Klaas Pieter Annema
6c663ddf32
nib2cib NSTableColumn dataCell's alignment property
2010-10-12 16:30:14 +02:00
Klaas Pieter Annema
7129094e26
always archive the table column it's dataView when it's set
...
Don't equality check so the data view is always re-archived when it's set. A dataView with a different font size should be re-archived, but will not be if we check for equality.
2010-10-12 13:47:15 +02:00
Klaas Pieter Annema
802d7d53b0
fix multiline bezeled textfields being sized when initialized from coder
2010-10-12 11:26:28 +02:00
Klaas Pieter Annema
c4a074a92d
Merge branch 'CPTextField-height-fix' of http://github.com/aparajita/cappuccino into aparajita-CPTextField-height-fix
2010-10-12 10:54:38 +02:00
Klaas Pieter Annema
fe35823b46
implement NSFormatter nib2cib support
2010-10-11 12:35:45 +02:00
Alexander Ljungberg
8439dc1c0f
CPKeyBinding description message. Decouple CPKeyBinding physical key string parsing from cache setup to make CPKeyBinding more reusable in user code.
2010-10-10 01:35:30 -03:00
Alexander Ljungberg
db8e132ef2
Whitespace and style fixes.
2010-10-09 22:07:57 -04:00
Alexander Ljungberg
7e0c61bef0
Replace a non ASCII character.
2010-10-09 22:02:34 -04:00
Alexander Ljungberg
2c4bb019ba
Add license and creator to _CPCornerView.j.
2010-10-09 22:01:21 -04:00
Alexander Ljungberg
0bd03b8d58
Closes #926 . Don't display a menu when a CPPopUpButton is right clicked, especially not a broken one.
2010-10-09 21:54:19 -04:00
Alexander Ljungberg
e62af384ea
Merge branch 'fix-imports' of http://github.com/paulbaumgart/cappuccino into paulbaumgart-fix-imports
2010-10-09 21:32:58 -04:00
Klaas Pieter Annema
e23c70b5c4
Merge remote branch 'aparajita/NSCell-layout'
2010-10-09 16:25:48 +02:00
Aparajita Fishman
bafb23ae44
Allow ephemeral subviews to be created when the parent view has an empty frame, de-lint
2010-10-09 08:14:00 -04:00
Aparajita Fishman
c8639cc8cd
Fixed the attribution
2010-10-08 23:18:48 -04:00
Aparajita Fishman
87c9f9ef03
Added bezeled multi-line field with wrapping
2010-10-08 17:52:47 -04:00
Aparajita Fishman
ab430b3574
Forgot to update sizeToFit documentation.
2010-10-08 10:18:38 -04:00
Aparajita Fishman
b8ae14d3a8
Fixes and more tests:
...
- Fixed _minimumFrameSize to take into account bezel and line break mode.
- Added test to show how sizeToFit was broken for multi-line labels in the old code.
- Added test to verify that behavior is correct for single-line labels.
2010-10-08 10:17:12 -04:00
Randall Luecke
ca0ed0ccb9
Merge branch 'master' of git://github.com/280north/cappuccino
2010-10-08 00:48:40 -04:00
Randall Luecke
99201dc3db
Initial commit for group rows in the TableView. Drawing code still needs to be cleaned up a LOT... still buggy. i.e. after you select a group row, any rows after that which are selected then get selected with a gray highlight color.
2010-10-08 00:44:17 -04:00
Klaas Pieter Annema
5074938437
implement KVO dependent key path support
2010-10-07 21:17:28 +02:00
Aparajita Fishman
637b8bed33
wraps flag was not being calculated correctly, added flags for other layout modes
2010-10-07 10:27:05 -04:00
Klaas Pieter Annema
fcd75d72e0
remove cancel: action from CPResponder
2010-10-07 12:10:42 +02:00
Klaas Pieter Annema
5b82417698
Merge branch 'CPKeyValueObservingOptionInitial-fix' of http://github.com/eventualbuddha/cappuccino into eventualbuddha-CPKeyValueObservingOptionInitial-fix
2010-10-07 10:37:50 +02:00
Paul Baumgart
45ebe2c905
Fix deprecation warnings
2010-10-06 23:04:46 -07:00
Ross Boucher
ff2aa51a68
Fix accidental global in CPObject.
2010-10-06 19:41:45 -07:00
Aparajita Fishman
b6491f7bb8
CPTextField -initWithCoder was not ensuring the frame size was high enough. The default label height in IB is 17px, which unmodified was cutting off the bottom pixel of labels in Cappuccino.
2010-10-06 08:43:21 -04:00
Klaas Pieter Annema
e78200838f
don't make a modally run window the main window
2010-10-06 09:04:54 +02:00
Paul Baumgart
01852d8075
Fix a bunch of missing @imports.
...
All classes (excluding the ones prefixed with underscores) in Foundation
and AppKit can now be loaded individually except CPOpenPanel and
CPSavePanel. These two classes have some sort of dependency cycle
that seems impossible to resolve without forward declarations (which
we don't have).
2010-10-05 15:54:25 -07:00
Brian Donovan
0ce115bc9c
Ensure observeValueForKeyPath:ofObject:change:context is called consistently.
...
During the "normal" callback for new and old values, the ofObject:
parameter passed to the observer is the original receiver of the
addObserver:forKeyPath:options:context: call, but that isn't the case
with the call caused by the CPKeyValueObservingOptionInitial option.
This commit uses _targetObject, the receiver of the addObserver:...
call, rather than self, the _CPKVOProxy.
2010-10-05 07:45:43 -07:00
Brian Donovan
b430e2ef65
Fix "differ" that was supposed to be "defer".
2010-10-04 15:02:41 -07:00
Klaas Pieter Annema
a99e976610
Merge branch 'CPControl-bridge' of http://github.com/aparajita/cappuccino into aparajita-CPControl-bridge
2010-10-04 10:44:03 +02:00
Klaas Pieter Annema
9b4807de26
Merge branch 'CPButton-copy-bounds' of http://github.com/aparajita/cappuccino into aparajita-CPButton-copy-bounds
2010-10-04 10:39:32 +02:00
Alexander Ljungberg
56a0184258
Fixed a missing comma in the token field theme descriptor.
2010-10-03 15:39:17 -04:00
Alexander Ljungberg
b64390077a
Remove margin from token fields without bezel so that the tokens line up with text labels at the same X coordinate.
2010-10-03 15:31:48 -04:00
Alexander Ljungberg
e7e9c24aaa
Fix accidental globals in CPTokenField, convert tabs to spaces.
2010-10-03 00:35:57 -04:00
Alexander Ljungberg
9eba3c0cec
Make theme work for token fields without bezeled:NO. Demo of auto suggest in test app.
2010-10-03 00:29:29 -04:00
Alexander Ljungberg
69b30df8e6
Fixed: with more than one token field, the separator character for all fields would be bound to that of the first field.
2010-10-03 00:23:05 -04:00
Alexander Ljungberg
ca2aab1198
Visual CPTokenField test application.
2010-10-02 22:45:05 -04:00
Alexander Ljungberg
1b45f621a7
Created and implemented a first draft Aristo theme for CPTokenField.
2010-10-02 22:41:38 -04:00
Alexander Ljungberg
421a51f008
Made CPTokenField themeable separately from CPTextField since the placeholder insets must be handled differently.
2010-10-02 19:38:12 -04:00
Alexander Ljungberg
cce21e7e87
Fixed: forgot to define a theme name for the CPTokenField close button.
2010-10-02 19:38:01 -04:00
Alexander Ljungberg
f6236ca317
Fixed: CPTokenField setObjectValue:nil did not clear the token field.
2010-10-02 19:37:48 -04:00
Alexander Ljungberg
77e10c94e9
Fixed: if setValue was called to clear a token field, the placeholder message would not appear.
2010-10-02 19:37:37 -04:00
Alexander Ljungberg
38cc1943ee
Reverse binding support for deleting tokens using the delete button. Fixed: if the last token was deleted using the close button without the token field being the first responder, the placeholder message would not appear.
2010-10-02 19:37:31 -04:00
Alexander Ljungberg
3b1047e97d
Implemented tokenizingCharacterSet property for CPTokenField. This changes the default tag separator to "," and allows tags with spaces. The previous behaviour can be restored using [field setTokenizingCharacterSet:[CPCharacterSet characterSetWithCharactersInString:@" "]].
2010-10-02 19:37:17 -04:00
Alexander Ljungberg
34c1a1ce10
Fixed: if a CPTokenField was a subview of a container not at the top at the window, such as is often the case with a toolbar, the autocomplete view of CPTokenField would appear offset downwards.
...
Also switched the background of the autocomplete view to a simple menu style for now since the other graphics were not available.
2010-10-02 19:37:08 -04:00
Alexander Ljungberg
b0e3e38791
Reverse bindings support for when tokens are deleted through the close button.
2010-10-02 19:36:55 -04:00
Alexander Ljungberg
124a63736f
Made CPTokenField themeable. Todo: the autocomplete drop-down is still hardcoded and Aristo style images are needed.
2010-10-02 19:36:24 -04:00
Alexander Ljungberg
656e0eb28e
Whitespace cleanup in preparation for the next merge.
2010-10-02 19:19:51 -04:00
Alexander Ljungberg
688c46c793
Fixed some typos in the previous CPTokenField commit.
2010-10-02 15:36:35 -04:00
Alexander Ljungberg
ee2228a83c
Fixed: if [CPTokenField setObjectValue:X] was called while the token field was the first responder, the input value would be set to a string version of the object value due to CPTextField's setObjectValue method.
2010-10-02 15:36:29 -04:00
Klaas Pieter Annema and Alexander Ljungberg
9f4dd3c2b8
added various hacks to make the cptokenfield work with the new enstore admin
2010-10-02 15:36:24 -04:00
Klaas Pieter Annema and Alexander Ljungberg
c80a28077a
fixed some tokenfield issues
2010-10-02 15:36:19 -04:00
Klaas Pieter Annema and Alexander Ljungberg
47c631c58e
added CPTokenField
2010-10-02 15:36:11 -04:00
Alexander Ljungberg
ed4235d2f9
Fixed: setting any binding on a text field - even on an attribute like 'hidden' - would clear its placeholder string.
2010-10-02 14:42:06 -04:00
Alexander Ljungberg
16e9fce5b5
Unit test exposing a new bug: setting a binding on a text field causes it to lose its placeholder string.
2010-10-02 14:38:34 -04:00
Alexander Ljungberg
2e22a0d5e8
Merge branch 'master' of github.com:280north/cappuccino
2010-10-01 17:30:17 -04:00
Alexander Ljungberg
1ae31c9374
Style fixes.
2010-10-01 17:28:55 -04:00
Klaas Pieter Annema
973c43843d
improve multiple selection login in CPCollectionView
2010-10-01 11:31:59 +02:00
Alexander Ljungberg
90709156c6
Merge branch '_CPImageAndTextView-tweaks' of http://github.com/aparajita/cappuccino
2010-09-30 23:52:27 -04:00
Alexander Ljungberg
0d15e59d0a
CPSlider code cleanup.
2010-09-30 23:51:12 -04:00
Aparajita Fishman
60fcb24159
De-lint, whitespace cleanup, typos
2010-09-30 21:14:47 -04:00
Aparajita Fishman
a175e71906
- Fixed type of _textSize.
...
- Changed NULL to nil.
2010-09-30 17:30:58 -04:00
Aparajita Fishman
c3b5dc747a
CPButton bezelRectForBounds and contentRectForBounds were modifying the bounds parameter in place without copying it.
2010-09-30 17:27:06 -04:00
Klaas Pieter Annema
e527c7e19f
fix another bug introduced in my last commit
2010-09-30 18:58:40 +02:00
Klaas Pieter Annema
790327fbe8
revert d18bba6b03, it had unexpected side effect
2010-09-30 18:44:00 +02:00
Klaas Pieter Annema
d18bba6b03
make sure CPScrollView always sets up it's corner and header view when initializing from coder
2010-09-30 18:40:45 +02: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
b221cc1853
properly decode allows multiple selection in CPCollectionView
2010-09-30 13:54:34 +02:00
Klaas Pieter Annema
2935651578
only nib2cib bundle if bundle path is set in nib
2010-09-30 13:13:18 +02:00
Paul Baumgart
ca2ae22f15
Fix non-ASCII characters in CPDictionary.j and CPFormatter.j
2010-09-29 18:21:10 -07:00
Paul Baumgart
2cc6c54fbf
Start index for var-args needs to be 2, not 0. I only got lucky that it worked anyway.
2010-09-29 15:19:20 -07:00
Mike Fellows
1c597eb0df
Fix regression in CPBox's setBorder
2010-09-29 00:05:15 -07:00
Alexander Ljungberg
28dd74444f
Fixed a string of accidental globals in CPScroller.
2010-09-28 19:50:20 -04:00
Alexander Ljungberg
28cf834e0b
Merge branch 'CGGradientCreateWithColorComponents-location-fix' of http://github.com/eventualbuddha/cappuccino
2010-09-28 19:29:46 -04:00
Alexander Ljungberg
4dc102a3cf
Applied coding standards.
2010-09-28 19:00:59 -04:00
Brian Donovan
23a654d57a
Allow null locations per Quartz 2D documentation.
...
See http://developer.apple.com/library/ios/#DOCUMENTATION/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/dq_shadings.html%23//apple_ref/doc/uid/TP30001066-CH207-TPXREF101
2010-09-28 08:22:09 -07:00
Klaas Pieter Annema
ffcbf87858
add basic support for drawing separators to CPBox
2010-09-28 14:50:20 +02:00
Ross Boucher
32a0e950fe
Allow comparators to return any value > 1 to indicate CPOrderedDescending.
2010-09-28 16:46:39 +05:30
Randall Luecke
f21ec37531
Fix for NativeHost windows becoming inactive when then go to the background.
2010-09-28 00:18:02 -04:00
Paul Baumgart and Randall Luecke
a8d02f43e2
minor CPTableView clean-ups-- fix missing semi-colon, missing parameter type, and missing space
2010-09-27 22:43:58 -04:00
Paul Baumgart and Randall Luecke
7e863e7e96
selectTabViewItemAtIndex does not look up the TabViewItem to send to the delegate, which causes a JS ReferenceError; this commit fixes that
2010-09-27 22:42:55 -04:00
Randall Luecke
588577bd96
try to use setLocalStorageDatabasePath or use _setLocalStorageDatabasePath if not
...
Conflicts:
Tools/NativeHost/AppController.m
2010-09-27 22:38:32 -04:00
Randall Luecke
ee64c5d832
Proper decoding of delegate and datasource for the tableview.
2010-09-27 17:56:48 -04:00
Antoine Mercadal and Randall Luecke
e55cbbdc0e
Support for localstorage in NativeHost
2010-09-27 16:27:04 -04:00
Klaas Pieter Annema
65c48004ba
properly handle key events manually in the tableview
...
Commit cf6dc3fa5e was wrong. This commit should fix that.
2010-09-27 15:56:00 +02:00
Klaas Pieter Annema
4211abd0b0
handle tab key as early as possible in CPWindow sendEvent:
2010-09-27 11:53:07 +02:00
Klaas Pieter Annema
cf6dc3fa5e
Manually handle key events in CPTableView
2010-09-27 11:50:23 +02:00
Klaas Pieter Annema
fb3da5c5bd
don't handle key events directly in CPScrollView
...
In stead CPScrollView will just pass the keyDown: event up the responder chain. If the event reaches the window, the window will send the correct action back to the first responder, if no responder before CPScrollView in the chain handles the event, CPScrollView will.
2010-09-27 11:50:23 +02:00
Klaas Pieter Annema
e6bd921746
fix CPWindow to only sent certain not handled keys as actions
...
In Cocoa CPWindow will only send moveDown: (down arrow), moveUp: (up arrow), moveLeft: (left arrow), moveRight: (right arrow), pageUp: (page up), pageDown: (page down) and complete: (escape) down the responder chain. This commits makes us fully compatible with Cocoa except that we send scrollPageDown: and scrollPageUp: in stead of pageUp: and pageDown:.
2010-09-27 11:50:23 +02:00
Francisco Ryan Tolmasky I
40dcfbd72c
Merge branch 'master' of github.com:280north/cappuccino
2010-09-27 06:49:18 +05:30
Francisco Ryan Tolmasky I
48d14840ee
Fix file encoding for CPTableView.j.
...
Reviewed by me.
2010-09-26 15:40:36 +05:30
Paul Baumgart
e62fd3cf40
Add a test case to test some reductions of regexes that current cause errors in the Preprocessor.
2010-09-24 16:46:31 -07:00
Paul Baumgart
8cc61cccfd
add behavior tests for methods, ivars, and inheritance; currently, one of the ivar tests fails due to bug #498
2010-09-24 15:10:06 -07:00
Paul Baumgart
0802b80c35
Make local param shadowing detection print a warning instead of throwing a SyntaxError. This way it's easier to test that particular scenario, since this is actually a bug in the Preprocessor.
2010-09-24 15:03:22 -07:00
Paul Baumgart
8de508381a
re-organize directory structure of preprocessor tests
2010-09-24 15:02:07 -07:00
Klaas Pieter Annema
c9e0ab654f
test observations during setSelectionIndexes
2010-09-23 10:59:00 +02:00
Klaas Pieter Annema
d8c0d2da8e
don't reverse set binding if textfield is showing a bindings placeholder
2010-09-23 10:35:42 +02:00
Klaas Pieter Annema
e59f20668b
don't set objectValue in resignFirstResponder if it didn't change
...
This change makes sure that the textfield doesn't sent change notifications if the value didn't actually changed when resigning first responder.
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
8fe67b73da
implement _setCurrentValueIsPlaceholder in CPTextField
...
CPKeyValueBinding will sent _setCurrentValueIsPlaceholder: to indicate to an object that current value is a placeholder and should be displayed as such. This commit implements the method for CPTextField and adds a unit test to test the behavior.
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
2fba03dc75
fix style issues in CPTextField and CPKeyValueBindingTest
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
71f8d1db74
call selectionWill and didChange when setting selection indexes
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
098131e252
coding guideline improvements for CPArrayController
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
afc5b72092
made setting binding placeholder values slightly less hacky
2010-09-23 10:35:41 +02:00
Klaas Pieter Annema
14f494a25d
Properly set multiple value placeholders on textfields.
...
Previously CPKeyValueBinding would just set the binding marker placeholder values as the stringValue of the textfield. This commit fixes that and properly sets those values as the placeholder value.
2010-09-23 10:35:41 +02:00
Francisco Ryan Tolmasky I
8bc665f355
Merge branch 'master' of github.com:280north/cappuccino
2010-09-23 10:43:08 +05:30
Paul Baumgart
086fa29d78
Objective-J Preprocessor Tests: fix scoping bug that caused only the last file in FILENAMES to be tested.
2010-09-22 00:50:15 -07:00
Brian Donovan and Ross Boucher
6dd872f2d2
Fix CPScrollView -contentSize return type.
2010-09-21 21:43:28 +05:30
Mike Fellows and Randall Luecke
461bb65263
Set vertical slider disabled track-color to the proper background images, stop overwriting the horizontal slider disabled track-color background images with those meant for the vertical slider - fixes issue #737
2010-09-20 01:37:03 -04:00
Derek Hammer and Randall Luecke
266bed7dc9
Use include instead of push to increase performance of jake.
2010-09-20 01:33:36 -04:00
Randall Luecke
9777e4c52f
Added a missing import to the new CPTabView, and fixed the import for the test.
2010-09-20 01:28:57 -04:00
Derek Hammer and Randall Luecke
dd89a98242
Renaming class to CPTabView from CPTabView2. Also doing a little clean up for style.
2010-09-20 01:21:45 -04:00
Derek Hammer and Randall Luecke
9b57d04181
Tabs to spaces
2010-09-20 01:20:58 -04:00
Derek Hammer and Randall Luecke
8e74418a5c
Replacing CPTabView with new one
2010-09-20 01:20:48 -04:00
Derek Hammer and Randall Luecke
3350579675
Patch to fix error. :(
2010-09-20 01:20:40 -04:00
Derek Hammer and Randall Luecke
46c14f3766
Adding the real skeleton
...
Copying previous constants
Removing unnecessary constants
Borrowing initialization from my old implementation.
Refactoring the initialization method and adding setBackgroundColor: override.
Removing +initialize (no theming support yet) and -viewDidMoveToWindow (not sure why this was there?)
Implement the bulk of the new CPTabView
Adding delegate selectors. Don't think this is complete, though. What about when a user clicks on a segmented tab control?!
Adding delegate
Think I may have fixed the delegate blocking for selected segment control items
Adding tests. Fixing a bug by reverting to old way. Delegates still broken.
Cleaning up the test.
Resolving delegate issues (thanks Saikat!).
Switching tab appearance based on type enum. Updating tests to slightly test this.
Conflicts:
AppKit/CPTabView2.j
2010-09-20 01:20:31 -04:00
Randall Luecke
0aa65de6df
Fix for CPCookie not working after DOM checks.
2010-09-19 23:26:52 -04:00
Francisco Ryan Tolmasky I
06bb1a96f3
Fix for objjc not compiling.
...
Reviewed by me.
2010-09-19 15:21:01 -07:00
Francisco Ryan Tolmasky I
70e4dd16df
A few more parser tests and reorg of tests.
...
Reviewed by me.
2010-09-19 08:18:54 -07:00
Francisco Ryan Tolmasky I
b66034ef38
First couple of Objective-J language spec tests.
...
Reviewed by me.
2010-09-18 23:50:06 -07:00
Francisco Ryan Tolmasky I
d3c86aeefd
Cleanup for previous undo patch and added a few test cases.
...
Reviewed by me.
2010-09-18 21:47:43 -07:00
Blair Duncan and Francisco Ryan Tolmasky I
212feff636
CPUndoManager -added support for setActionName to enable the undo/redo menu to automatically update with the value passed as the action name. Test file included.
2010-09-18 20:30:43 -07:00
Alexander Ljungberg
b1b0cea27e
Merge remote branch 'hammerdr/clean_fix'
2010-09-17 21:25:05 -04:00
Alexander Ljungberg
5742608595
Recreated Aparajita Fishman's documentation related Jakefile change from 345343ef52.
2010-09-17 21:21:40 -04:00
Aparajita Fishman and Alexander Ljungberg
f46f97f8b6
Implemented doxygen parsing of @accessors synthesized methods, moved @accessors declarations in .h files to a comment to prevent improper parsing.
2010-09-17 21:19:02 -04:00
Alexander Ljungberg
7692f80f64
Additional fixes of inadvertent globals.
2010-09-17 16:48:00 -04:00
Alexander Ljungberg
bb811238f3
Fixed a number of inadvertent globals and improved code style.
2010-09-17 16:46:55 -04:00
Derek Hammer
68c657eb66
Adding the $CAPP_BUILD directory to the "jake clean" and "jake clobber" commands so that they act as expected.
2010-09-17 13:03:50 -05:00
Nicholas Small
b5bae40a0c
Fix the short circuit in CPCollectionView -setSelectionIndexes:
2010-09-17 12:23:36 -04:00
Michael Villar and Nicholas Small
f7c68736f0
Ctrl+click only sends right click on Mac.
2010-09-17 12:21:57 -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
Mike Fellows and Klaas Pieter Annema
7d855a9c09
Fix minor typos, some accidental globals, missing coma and missing semicolon
2010-09-17 11:03:32 +02:00
Nicholas Small
d59d141302
Fix a bool that's supposed to be an int in CPUndoManager -groupingLevel.
2010-09-16 13:26:17 -04:00
Aparajita Fishman and Klaas Pieter Annema
0c4ce1e756
Additions to the theme API to open it up to developers and provide access to theme attributes defined in ThemeDescriptors.j:
...
- Current theme blend is available via CPApplication -themeBlend.
- List of themes is available via CPApplication -themes.
- CPThemeBlend adds the following methods:
themes
themeNames
- CPTheme adds a number of methods to access theme attributes:
classNames
attributesForClass:
attributeNamesForClass:
attributeWithName:forClass: (was _attributeWithName:forClass:)
valueForAttributeWithName:forClass
valueForAttributeWithName:inState:forClass:
- _CPThemeAttribute -values was added to access the dictionary of attribute values.
- Theme browser application that demonstrates the API.
- In the course of making the test app, added the function CGInsetEqualToInset().
2010-09-16 10:28:06 +02:00
Alexander Ljungberg
9b8cadb91c
Fixed some additional accidental globals. Very addictive this.
2010-09-15 17:41:58 -04:00
Alexander Ljungberg
9c9d6a7fdc
Merge branch 'master' of github.com:280north/cappuccino
2010-09-15 17:25:54 -04:00
Alexander Ljungberg
fb31267cc1
Fixed two accidental globals found while testing Aparajita Fishman's capp_check utility.
2010-09-15 17:23:48 -04:00
Alexander Ljungberg
b194d407d3
Whitespace cleanup.
2010-09-15 17:19:45 -04:00
Klaas Pieter Annema
57813ea3fb
change CPButton imageOffset theme property to image-offset
2010-09-15 12:34:16 +02:00
Alexander Ljungberg
bce89ca75b
Merge branch 'master' of github.com:280north/cappuccino
2010-09-14 15:39:23 -04:00
Alexander Ljungberg
7204e73c22
Minor code cleanup.
2010-09-14 15:38:45 -04:00
Alexander Ljungberg
541f5b8948
Test editable text field text selection in a modal window.
2010-09-14 15:38:45 -04:00
Alexander Ljungberg
c5d471b31b
Fixed: if a text field in a modal window was clicked, it would become deselected. This prevented text selection by dragging or by double click. The problem was that the DOM event guard was always enabled when a modal window was on screen and this prevented the normal mouse event pass through to the text field input element.
2010-09-14 15:38:45 -04:00
Klaas Pieter Annema
ac26827f32
make CPTableHeaderView divider color theme-able
2010-09-14 14:47:10 +02:00
Klaas Pieter Annema
677cb4638f
fix bug where CPViewController viewDidLoad is called to early
...
The bug was caused by connections (outlets) being defined in undefined order. Sometimes the view connection was decoded and connected before other connections, because setView: would automatically call viewDidLoad the first time a view was set viewDidLoad was called before the entire view was actually loaded.
ViewDidLoad is now only called from setView: if the _view === nil and no view is currently being loaded.
2010-09-14 12:58:47 +02:00
Klaas Pieter Annema
32348148b8
fixed typos in CPViewController documentation
2010-09-14 12:12:50 +02:00
Klaas Pieter Annema
f79edc7bfb
fix scroller being offset 1 pixel when headerview had the same height as corner view
2010-09-14 12:05:39 +02:00
Klaas Pieter Annema
f7c7ee447d
set proper autoresizing for ScrollviewTheming test color well
2010-09-14 12:05:39 +02:00
Tom Robinson
1220555936
Fix for CPProxy not returning the return value
2010-09-13 16:44:45 -07:00
Sami Samhuri and Klaas Pieter Annema
032639234e
Use CPTextFields for RGB, HSB, and hex inputs in CPSliderColorPicker
...
The old DOM based fields only accepted a few characters. Backspace and
other expected functionality was broken. Switching to CPTextFields
makes them behave as expected.
2010-09-13 15:20:26 +02:00
Saikat Chakrabarti and Randall Luecke
cdf9a8c2a7
Adding a DOM check for CPCookie
2010-09-13 01:30:46 -04:00
Aparajita Fishman and Alexander Ljungberg
6fbdf7b400
Support for NSBox in nib2cib and some fixes to CPDrawTiledRects/CPDrawColorTiledRects.
...
- The default box background color is now clear, that is what Cocoa does.
- Bezel drawing uses CPDrawTiledRects, obeys border width.
- CPDrawTiledRects/CPDrawColorTiledRects explicitly sets the line width and saves/restores the graphics state.
- Whitespace cleanup in CPBox.
2010-09-10 20:35:38 -04:00
Alexander Ljungberg
4983e97884
Use CPNotFound instead of -1 in CPTableView editedRow and editedColumn for clarity.
2010-09-10 20:27:22 -04:00
Alexander Ljungberg
cc7d50f505
Fixed: CPTableView editedRow returned the edited column, not the edited row.
2010-09-10 20:26:01 -04:00
Alexander Ljungberg
f2f737fcd3
Merge remote branch 'hammerdr/subclassable'
2010-09-10 20:18:30 -04:00
cacaodev and Alexander Ljungberg
c47e6af6e4
nib2cib: Fix a bug where a view's tag of 0 in Interface Builder was decoded as -1 in capp. This is the default when instancing in code, not when unarchiving a Nib. Testing: in Tests/Manual/NibApp, just logging a textfield's tag
2010-09-10 20:03:28 -04:00
Alexander Ljungberg
5e6485b622
Merge remote branch 'samsonjs/rightclick'
2010-09-10 19:26:12 -04:00
Alexander Ljungberg
bb2ec9098b
Merge remote branch 'aparajita/CPLog-formatter'
2010-09-10 19:15:21 -04:00
Alexander Ljungberg
4e4cc65645
Style and whitespace cleanup.
2010-09-10 19:07:48 -04:00
Arkadiusz Młynarczyk and Alexander Ljungberg
ddfac8d717
- moved componentsSeparatedByCharactersInSet: into CPCharacterSetAdditions CPString category
...
- added tests for componentsSeparatedByCharactersInSet:
- ensured Cocoa compatibility of componentsSeparatedByCharactersInSet:
- added new test for CPString boolValue
- fixed CPString boolValue (" ++01" should return NO as in Cocoa, previously it returned YES)
2010-09-10 18:58:18 -04:00
Arkadiusz Młynarczyk and Alexander Ljungberg
009683ddd4
- Exception raising in componentsSeparatedByCharactersInSet: when separator parameter is nil
...
- Added support for edge cases (string is empty or string doesn't contain characters from separator set).
2010-09-10 18:58:10 -04:00
Arkadiusz Młynarczyk and Alexander Ljungberg
8eefb90944
- implemented componentsSeparatedByCharactersInSet:
2010-09-10 18:58:02 -04:00
Klaas Pieter Annema
6bc8a53618
Merge branch 'scrollview-theming'
2010-09-10 14:37:51 +02:00
Klaas Pieter Annema
de73c05316
add colorwell to change bordercolor to Scrollview theming test
2010-09-10 14:28:09 +02:00
Klaas Pieter Annema
fba8b85c90
theming changes to CPScrollView
...
- Add bottom corner view and make it's background color a theme property
- Make the border color themeable
2010-09-10 14:20:19 +02:00
Klaas Pieter Annema
20557190d9
make the scroller width themeable
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
4e4e7ae015
properly position the vertical scrollbar
...
The vertical scrollbar would be one pixel of if there was:
- no headerview (overlapping the border)
- a headerview, but no cornerview
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
36c3c94d3b
add the ability to turn header view on and off in ScrollviewTheming test
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
64b733b1ea
remove bottom corner view drawing in CPScrollView
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
67a023a992
set proper autoresizing mask for theming controls in ScrollviewTheming test app
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
b6e7d4149d
add scrollview theming test application
2010-09-10 14:20:18 +02:00
Klaas Pieter Annema
bcacee2147
draw the bottom corner in CPScrollView
2010-09-10 14:20:17 +02:00
Klaas Pieter Annema
b75dcd7ac4
made the scrollview line border color themeable
2010-09-10 14:20:17 +02:00
Klaas Pieter Annema
e77d28f761
properly decode CPColorWell color as an object in stead of bool
2010-09-10 14:17:39 +02:00
Sami Samhuri and Klaas Pieter Annema
bc9645aa4f
Added a test for hex conversions in CPColor
2010-09-10 10:02:21 +02:00
Sami Samhuri and Klaas Pieter Annema
d52cbb7077
Don't set placeholder text on hex text field
2010-09-10 10:02:14 +02:00
Sami Samhuri and Klaas Pieter Annema
ba9df402b0
Use a CPTextField for hex input in CPSliderColorPicker
...
The old DOM based field only accepted a few characters, and not even hex
chars. Backspace and other expected functionality was broken. Switching
to a CPTextField makes it behave as expected.
2010-09-10 10:02:04 +02:00
Sami Samhuri and Klaas Pieter Annema
c78b5e580a
Reliably convert colors to hex strings
...
Converting a hex string to CPColor and back to a hex string now returns
the same initial hex string. (Fixed an off-by-one error)
2010-09-10 10:01:57 +02:00
Aparajita Fishman and Klaas Pieter Annema
ce2c662872
Fixes to previous CPButton image positioning commit.
...
- Checkbox and radio selected states would not show in the images. It turns out that the image and alternate image cannot be encoded->decoded->set without messing up the theme, and unfortunately the theme blending task (during a jake build) would do so. So for now this means that we cannot encode non-theme images with a button class, which is unlikely to happen.
- Since we cannot access themes in the NS classes, I went ahead and started to make some constants in a few control classes so that the values can be changed in one place and affect the theme and nib2cib.
2010-09-10 09:56:26 +02:00
Klaas Pieter Annema
04b331ad55
decode CPTableColumn resizing mask as integer
2010-09-09 16:36:32 +02:00
Klaas Pieter Annema
35c026f92c
Merge branch 'master' of github.com:280north/cappuccino
2010-09-08 22:14:34 +02:00
Aparajita Fishman and Klaas Pieter Annema
6680a1f2a7
Overhaul of CPButton and supporting classes to support image positioning the way Cocoa does
2010-09-08 22:13:39 +02:00
Klaas Pieter Annema
1ffbf7857f
Overhaul of CPButton and supporting classes to support image positioning the way Cocoa does.
2010-09-08 22:10:20 +02:00
Klaas Pieter Annema
e2741ba604
made press work with custom themes
2010-09-08 16:13:45 +02:00
Koen Bok and Klaas Pieter Annema
5b7497093c
Made flatten work with custom themes.
2010-09-08 16:12:22 +02:00
Klaas Pieter Annema
b092ed8c2c
only load Aristo from AppKit/Resources
...
Other themes are loaded from the main bundle's resource directory
2010-09-08 16:12:21 +02:00
Klaas Pieter Annema
2dd1a1b54d
always return a boolean from CPKeyedUnarchiver decodeBoolForKey:
2010-09-08 13:28:40 +02:00
Klaas Pieter Annema
1952bc2b76
unhide the cornerview when a tableview is unarchived
2010-09-08 13:28:18 +02:00
Klaas Pieter Annema
b6da0fdf06
start of CPSplitView theming
2010-09-07 10:23:21 +02:00
Derek Hammer
fc545ed995
Adding support for CPURL
2010-09-06 14:18:53 -05:00
Derek Hammer
f85ab24993
Finishing the rest to make them inherit properties of superclasses.
2010-09-06 14:02:52 -05:00
Derek Hammer
4e1766485f
Updating CPDictionary and CPString to both actually subclass.. not just create a new object without inherited properties.
2010-09-06 13:46:27 -05:00
Derek Hammer
8e5471d0fe
Updating CPData and CPDate to be subclassable. Only non-subclassable toll free bridged object is CPURL at this point.
2010-09-06 13:45:46 -05:00
Derek Hammer
a09878dcb4
Adding self checks in toll free bridged objects so that they are subclassable.
2010-09-06 12:07:50 -05:00
Derek Hammer
7f7571a2d1
Adding tests to verify the behavior of CPDictionary when subclassed.
2010-09-06 11:44:27 -05:00
Alexander Ljungberg
e704d42adb
Fixed: if CPArrayController setPreserveSelection was off and a selected item disappeared, an invalid selection state could occur. The error was caused by a slightly overeager early-out optimisation in __setSelectionIndexes.
2010-09-04 22:12:08 -04:00
Sami Samhuri
5ff9683cd7
Send the correct event when right-clicking in a focused text field
2010-09-03 10:18:26 -07:00
Aparajita Fishman
7d36daa5b7
Added documentation for CPLogColorize
2010-09-03 11:45:06 -04:00
Aparajita Fishman
46956dbe9e
Added a README
2010-09-03 11:36:11 -04:00
Aparajita Fishman
586e18f1a7
Custom formatter support (and fixes) for CPLog.
...
- A formatter function can be passed to the CPLogRegister functions. If the given level already has a provider for the given level, the formatter will be replaced with the one passed to the register function.
- Added CPLogColorize function to make it easy for users to colorize messages.
- CPLogRegisterRange now checks for min <= max, and now correctly starts iterating from min.
- Moved colorization of log level to _CPFormatLogMessage.
- Whitespace cleanup.
2010-09-03 11:20:28 -04:00
luddep and Randall Luecke
c489909542
Added manual test for cpscrollview behavior
2010-09-03 11:09:08 -04:00
Randall Luecke
ad679e7c34
Merge remote branch 'luddep/native-scrolling-2'
2010-09-02 23:29:44 -04:00
luddep
75f6db436b
fix for clearing the hiding of the scroll element timeout not working. This improved performance. Also make the actual dom element smaller and the inner one bigger, since sometimes deltas need to be larger than 150px.
2010-09-02 22:25:09 +02:00
Alexander Ljungberg
bdcef193b7
Minor CPArrayTest cleanup.
2010-08-31 23:45:35 -04:00
Derek Hammer and Alexander Ljungberg
d377790e9d
Adding some tests to verify behavior.
2010-08-31 23:41:51 -04:00
Alexander Ljungberg
9a31297249
Put the logging setup into the natural code path.
2010-08-31 22:33:11 -04:00
Aparajita Fishman and Alexander Ljungberg
b4f7df4786
Graphics primitives
...
- Implemented CGRectDivide/CPDivideRect.
- Implemented CPDrawTiledRects/CPDrawColorTiledRects.
- Removed CPDrawGrayBezel and CPDrawGroove, they were not being done in a Cocoa-compliant way, and the Cocoa way is not really useful right now.
- Moved border drawing code back to CPScrollView since CPDrawGrayBezel/CPDrawGroove are gone.
- Test app to do simple demo of the new functions.
- Removed trailing whitespace.
2010-08-31 22:26:54 -04:00
Alexander Ljungberg
18d7dcc226
Closes #849 . Test application to verify the graphical rendering of menus.
2010-08-31 22:18:26 -04:00
Sami Samhuri and Alexander Ljungberg
f7ef182d33
Add 3px padding to the right of menu bar icons
2010-08-31 22:15:46 -04:00
Aparajita Fishman and Alexander Ljungberg
be36e17bd8
Make the names in +themeShowcaseExcludes case-insensitive
2010-08-31 22:09:29 -04:00
Aparajita Fishman and Alexander Ljungberg
6b940116be
Added ability to set sample text
2010-08-31 22:02:50 -04:00
luddep
da8ea72593
fix for scrolling not working in windows other than the default bridge one.
2010-08-31 14:22:46 +02:00
luddep
5effa853a3
use visibility instead of display to hide the scroll dom element. Using display made the div reset its scroll offset.
2010-08-31 14:09:49 +02:00
luddep
0780a68fba
fix for not being able to interact with DOM elements in views such as CPTextField
2010-08-31 09:36:54 +02:00
luddep
b61192a050
Initial lower level native scrolling attempt. Fixes scroll deltas globally, rather than in just CPScrollView.
2010-08-30 12:27:28 +02:00
Alexander Ljungberg
9bc9a49b8f
Merge branch 'master' of github.com:280north/cappuccino
2010-08-29 17:46:47 -04:00
Alexander Ljungberg
547f1fb786
While not used anywhere, the preprocessor 'peak' method was most likely meant to be called 'peek'. Renamed it. Also some minor code styling and whitespace fixes.
2010-08-29 17:42:22 -04:00
Blair Duncan and Randall Luecke
b27560c51e
Fix for issue 841 where the edit cursor would not always flash
2010-08-27 19:46:55 -04:00
Aparajita Fishman and Alexander Ljungberg
8dd1d20a2d
Made sure to remove the .doc directories first, fixed exec
2010-08-27 19:29:11 -04:00
Aparajita Fishman and Alexander Ljungberg
ad5badb0d7
Remove @import statements from source files, doxygen doesn't parse them correctly.
2010-08-27 19:28:23 -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
Aparajita Fishman and Alexander Ljungberg
4f2914a123
Implementation of CPFont -ascender, -descender and -defaultLineHeightForFont, supporting method +metricsOfFont in CPStringDrawing and CPPlatformString, and Font Metrics Explorer test app.
2010-08-27 14:32:03 -04:00
Alexander Ljungberg
431c6522a6
Test alerts with 1 or 0 buttons defined.
2010-08-27 14:07:31 -04:00
Aparajita Fishman and Alexander Ljungberg
b823eb7fe0
Fixes for Cocoa compliance
2010-08-27 14:04:28 -04:00
Klaas Pieter Annema
f8ceaf62b7
set font for tableCell during nib2cib
2010-08-27 15:50:59 +02:00
Klaas Pieter Annema
213fde04fe
fix CPArray+KVO addObjects inserting objects at beginning of array one by one
2010-08-27 12:06:40 +02:00
Klaas Pieter Annema
ddad10b615
fix CPPredicate predicateWithFormat: throwing exception (in WebKit)
...
I believe the exception was caused because WebKit thought arguments was the function.Arguments.
Issue was resolved by renaming the local arguments variable to args
2010-08-26 16:55:05 +02:00
Klaas Pieter Annema
f4e7386a0a
fix gridColor when decoding a CPTableView
...
Don't default to a gray color when there is no grid color in the cib.
The tableview theme will automatically set the correct grid color.
2010-08-26 16:29:46 +02:00
Alexander Ljungberg
9a42e12985
Moved TableCibTest into the table tests folder.
2010-08-25 16:15:27 -04:00
Klaas Pieter Annema
86ee790ea1
implement missing __setSelectionIndex:
2010-08-25 15:57:35 +02:00
Klaas Pieter Annema
b21eab1bf1
Improved KVC mutable indexed accessors
...
Refactored everything away into insertObjects:atIndexes: so all the logic is in the same place
and made it so that the _insertManySEL is the preferred selector to use. If it doesn't exist it will fall back to the _insertSEL.
2010-08-25 15:50:24 +02:00
Klaas Pieter Annema
b3f2ba035e
add CPDecimal and CPDecimalNumber to Foundation.j
2010-08-25 15:07:04 +02:00
Klaas Pieter Annema
10a620017d
Merge remote branch 'stevegeek/CPDecimalNumber' into CPDecimalNumber
2010-08-25 15:06:47 +02:00
Klaas Pieter Annema
c9752195ac
several CPButton theming additions
...
- made image and alternate image a theme property
- made image margins theme-able
2010-08-25 13:26:44 +02:00
Klaas Pieter Annema
64000215a4
Call CPObjectController designated initializer from init and initialize _observedKeys instance variable
2010-08-25 13:15:19 +02:00
Alexander Ljungberg
65d957f9f5
Fixed: an ivar was not being properly initialized in CPAlert.
2010-08-24 14:00:12 -04:00
Alexander Ljungberg
aef19c3b13
Merge branch 'master' of github.com:280north/cappuccino
2010-08-24 12:30:51 -04:00
Alexander Ljungberg
9968896bbd
When running CPAlert as a sheet, automatically activate the CPDocModalWindowMask window style if needed.
2010-08-24 12:14:24 -04:00
Alexander Ljungberg
1a27ae39a3
Removed CPAlert long message test from last commit since this branch already has its own long message test. Also slight clean up.
2010-08-24 11:58:36 -04:00
cacaodev and Alexander Ljungberg
ee4802e513
CPAlert: Attached alerts. Added a new method -beginSheetModalForWindow: that calls -alertDidEnd:returnCode: on ending. CPAlertTest update testing it.
...
Fixed a bug in CPWindow where the didEndSelector was reset too early. This bug was visible only when trying to chain sheet alerts.
Fixed a local/instance variable conflict in AttachedSheet/AppController.j
2010-08-24 11:50:44 -04:00
Klaas Pieter Annema
60dd1863b3
Implement objectsAtIndexes on _CPObservableArray to return another _CPObservableArray instance
2010-08-24 11:41:52 +02:00
Klaas Pieter Annema
71408e7c3a
made CPObjectController call it's designated initializer (init)
2010-08-24 11:41:51 +02:00
Klaas Pieter Annema
659543461b
Merge branch 'upstream'
2010-08-24 11:13:26 +02:00
Alexander Ljungberg
50b7f02470
Merge branch 'master' of github.com:280north/cappuccino
2010-08-23 19:45:08 -04:00
Alexander Ljungberg
febdf4092e
New implementation of change notifications from CPArrayController.
...
It is crucial that we send notification only before and after complete changes. In the middle notifications might cause observers to see or react to inconsistent data (e.g. selection indexes pointing to rows no longer present). Added some unit tests - more might be needed in the future. Fixed: before and after values when observing array controller key paths during content changes or rearranges were wrong. Fixed: the array controller sent out multiple redundant change notifications.
2010-08-23 18:53:29 -04:00
Alexander Ljungberg
a3d89c8d78
Ignore table view row selection of already selected rows. This avoids potential infinite recursion caused by the explicit bindings propagation.
2010-08-23 18:51:00 -04:00
Nicholas Small
c9b02603bc
Don't use the deprecated .path() method in CFBundle OBJJ_PROGRESS_CALLBACK.
2010-08-23 15:48:17 -04:00
Alexander Ljungberg
b9086f134a
Don't include table column header graphics in the showcase - they're not really widgets which make sense standing alone.
2010-08-22 23:03:51 -04:00
Alexander Ljungberg
447c33b806
Don't layout CPAlert in layoutSubviews since it's not a real view. This avoids the theme showcase error where the CPAlert windowing code was activated by the theme descriptor setup.
2010-08-22 23:01:52 -04:00
Aparajita Fishman and Alexander Ljungberg
ae47ba78cd
Use [self respondsToSelector] instead of class_respondsToSelector
2010-08-22 22:06:38 -04:00
Aparajita Fishman and Alexander Ljungberg
2f51358ea0
Added documentation for the excluded mechanism.
2010-08-22 22:06:31 -04:00
Aparajita Fishman and Alexander Ljungberg
c91c513b60
Proposed method of excluding themed objects from the theme showcase.
...
- Also added class_respondsToSelector, it was a no-brainer.
- Cleaned up trailing whitespace in CPThemeBlend.j. Woo-hoo!
2010-08-22 22:06:22 -04:00
Aparajita Fishman and Alexander Ljungberg
189d90da91
Moved theWindow to an ivar so other methods can reference it.
2010-08-22 19:03:15 -04:00
Aparajita Fishman and Alexander Ljungberg
5e20a6d9ef
Sending NS_initWithCoder at the right time
2010-08-22 19:03:02 -04:00
Aparajita Fishman and Alexander Ljungberg
05edec8a8b
Removed CPButton -setDefaultButton, new version of CPButton after merging with latest master.
2010-08-22 18:53:52 -04:00
Aparajita Fishman and Alexander Ljungberg
75cc0be52a
Test app for default button fixes
2010-08-22 18:48:43 -04:00
Alexander Ljungberg
a9e59e1e87
Fixed: in the new theme definition the table header sort images were no longer images. This would cause an exception whenever a table header was clicked such that the sort arrows needed to display.
2010-08-22 17:47:52 -04:00
Alexander Ljungberg
e766a2c945
Fixed: if a CPAlert message was 3 lines or more and there was no informative text, the upper half of the CPAlert buttons would not react to clicks as the blank informative label partially covered them.
2010-08-21 17:47:03 -04:00
Alexander Ljungberg
fbd5a78cf0
Don't make space for CPAlert informative text if there is none. Consider the theme size a minimum size.
2010-08-20 12:41:20 -04:00
Alexander Ljungberg
f39c1a2eb8
Try to help the build bot by not calling CPAlert setWindowStyle: in init.
2010-08-20 03:01:37 -04:00
Alexander Ljungberg
5335a611a0
Use Aristo icons for CPAlert.
2010-08-20 01:55:45 -04:00
Alexander Ljungberg
c06068c931
Themable CPAlert which automatically grows height-wise to accommodate all text. Adjustable icons, margins, spacing and fonts.
2010-08-19 23:03:35 -04:00
Alexander Ljungberg
62f81f2601
Remove hardcoded Aristo theme from CPAlert. New CPTheme method to get the default HUD theme style, which defaults to the default theme + "-HUD". Clean up CPAlert slightly.
2010-08-19 19:11:52 -04:00
Alexander Ljungberg
077e548219
Manual test for CPAlert which cycles through all 6 possible alert types for visual verification.
2010-08-19 19:08:25 -04:00
Alexander Ljungberg
d56bc733ad
Remove some accidental globals.
2010-08-18 22:01:18 -04:00
Alexander Ljungberg
8fbd24c861
Moved file globals to the top of the file. Removed a misplaced var. Eliminated empty statements.
2010-08-18 21:32:51 -04:00
Alexander Ljungberg
98049aeb78
Whitespace cleanup.
2010-08-18 17:02:22 -04:00
Aparajita Fishman and Alexander Ljungberg
c9718783af
Made the new theming mechanism generic (see ecbbe57)
2010-08-18 16:45:45 -04:00
Aparajita Fishman and Alexander Ljungberg
bfe01badc1
Radically simplified the whole theming mechanism. Theming can now be done declaratively with less typing, better readability, easier maintenance.
...
Also fixed some oversights in the existing themes: text was not dimmed in disabled state for segmented controls, text was not dimmed for default buttons in disabled state in HUD (IIRC).
2010-08-18 16:45:38 -04:00
Francisco Ryan Tolmasky I
111ac84a65
Removed unecessary whitespace.
...
Reviewed by me.
2010-08-17 11:23:50 -07:00
Randall Luecke
d7540eea84
if the new proposed selection is empty the tableview should not deselect any rows.
2010-08-17 00:01:33 -05:00
Randall Luecke
88408fc0ea
Missed a couple lines in tableview custom drawing because of a merge conflict.
2010-08-16 15:10:29 -05:00
Randall Luecke
6e796d7a22
Fix for endless loop with default buttons.
2010-08-16 15:05:46 -05:00
Randall Luecke
f587713795
This was terrible, real fix soon...Revert "Fix for endless loop when changing platform windows."
...
This reverts commit 66fcba846b .
2010-08-16 14:55:44 -05:00
Randall Luecke
66fcba846b
Fix for endless loop when changing platform windows.
2010-08-16 01:26:48 -05:00
Alexander Ljungberg
bdf20b0267
Merge branch 'master' of github.com:280north/cappuccino
2010-08-13 20:24:00 -04:00
Alexander Ljungberg
0292203ec0
Test that CPValueTransformerBindingOption works with CPTableColumn bindings. When run the rightmost column should read "right" and "also right" in the two initial rows.
2010-08-13 20:19:45 -04:00
Alexander Ljungberg
112ad65882
Support value transformers in CPTableColumn when using bindings.
2010-08-13 20:19:35 -04:00
Tom Robinson
6bc0880a0d
Fix Doxygen executable search logic
2010-08-13 16:48:49 -07:00
Aparajita Fishman and Tom Robinson
90a63e1b14
Fixes/enhancements to jake docs:
...
- We now have class hierarchy information! Don't remove generated headers before doxygen runs so it can generate class hierarchies. Now the headers are cleaned up separately.
- Added inline collapsible class hierarchy diagrams within each class.
- Enabled the built-in search! It's awesome!
- Changed image format to gif, dot is generated invalid png on Mac OS X.
- Explicitly turned off generation of to do and bug list.
- Turned off most warnings, most of them are useless warnings arising from the fact that we are pretending Objective-J is Objective-C.
- Doxyfile format updated to 1.7.1.
2010-08-13 15:42:43 -07:00
Tom Robinson
6ce45d32da
Add comparison test for native sorting.
2010-08-13 15:40:33 -07:00
Tom Robinson
4eaf560ee6
Fixes two bugs in compareObjectsUsingDescriptors causing test to fail: extra semi-colon after while() and uninitized "result" variable.
...
The former masked the latter when a single sort descriptor was used.
2010-08-13 15:34:28 -07:00
Alexander Ljungberg
4c0057e66a
Undoing this change since it is no longer necessary due to an alternative solution implemented by Ross Boucher. Revert "Merge commit 'c17a3533ecae63d479b285b23ac3a490ebe8bd3c'"
...
This reverts commit 039f2ce449 , reversing
changes made to 494f39dd86 .
2010-08-13 14:39:27 -04:00
Alexander Ljungberg
bcb22c7e46
Remove debug output from CPArrayControllerTest.
2010-08-13 14:28:25 -04:00
Alexander Ljungberg
0683b46239
Since issue #795 has not been decided on yet, make CPArrayControllerTest pass without those changes at this time.
2010-08-13 14:18:25 -04:00
Alexander Ljungberg
61ccc39f81
Merge remote branch 'klaaspieter/fix/794-cparraycontroller-preserveselection'
...
Conflicts:
Tests/AppKit/CPArrayControllerTest.j
2010-08-13 14:06:35 -04:00
Alexander Ljungberg
533e1a1846
Merge remote branch 'klaaspieter/fix/786-cparraycontroller-removeobject'
2010-08-13 14:01:47 -04:00
Alexander Ljungberg
6afe22f351
Merge remote branch 'klaaspieter/fix/784-cparraycontroller-selection'
2010-08-13 14:00:27 -04:00
Alexander Ljungberg
039f2ce449
Merge commit 'c17a3533ecae63d479b285b23ac3a490ebe8bd3c'
2010-08-13 13:56:21 -04:00
Alexander Ljungberg
494f39dd86
Closes #752 . Removed some debug code which snuck in with the merge of fix-752-CPValueTransformerNameBindingOption.
2010-08-12 23:37:53 -04:00
Alexander Ljungberg
c851522536
Fixed: if the CPWebView iframe was destroyed before its HTML loader timer fired, an error would occur.
2010-08-12 23:36:25 -04:00
Alexander Ljungberg
9b37ba20a3
Merge remote branch 'klaaspieter/fix-752-CPValueTransformerNameBindingOption'
2010-08-12 22:59:42 -04:00
Alexander Ljungberg
6310bfe084
Merge branch 'master' of github.com:280north/cappuccino
2010-08-12 22:50:09 -04:00
Klaas Pieter Annema and Alexander Ljungberg
1a9670ae9c
made sure CPViewController calls viewDidLoad if it's view property is set directly
2010-08-12 22:47:59 -04:00
Randall Luecke
ee9da8e31e
Only call drawRect: is the view is visible.
2010-08-12 16:03:24 -05:00
cacaodev and Randall Luecke
23e9fd927c
CPBox: Made CPBezelType the default type instead of none.
...
Slighly grayed stroke color for bezel type & fillColor for all types to better match cocoa
Fix contentView autoresizingMask
2010-08-12 15:16:20 -05:00
Randall Luecke
22c481ff27
Implemented allKeysForObject: in CPDictionary with tests.
2010-08-12 14:18:45 -05:00
Randall Luecke
14fb769582
Removed ambiguity in CPDictionary keys type. Closes #700
2010-08-12 13:29:17 -05:00
Randall Luecke
da0af13142
Added basic suppport for CPOutlineView in the nib2cib tool
...
Conflicts:
AppKit/CPOutlineView.j
2010-08-12 13:11:41 -05:00
Aparajita Fishman and Randall Luecke
44fb4a9b83
-setIntercellSpacing should update the header as well as the table, per Cocoa (and common sense)
2010-08-11 23:21:30 -05:00
Randall Luecke
1e6f6879ff
Run CPArrayPerformanceTest with jake test.
2010-08-11 23:17:38 -05:00
Alexander Ljungberg
ba33bb56d0
Moved the visual table test for borders into the TableTest folder.
2010-08-12 00:08:43 -04:00
Aparajita Fishman and Alexander Ljungberg
ab5e2dd774
Fix for issue #816 (NSTableView/CPTableView do not read selection highlight style and column resizing style)
2010-08-12 00:06:52 -04:00
Aparajita Fishman and Alexander Ljungberg
0b1b1bbe0b
Fix for issue #817 (Support for alignment and line break mode in NSTextField/CPTextField)
2010-08-11 23:53:34 -04:00
Alexander Ljungberg
1aebc8942d
Merge branch 'master' of github.com:280north/cappuccino
2010-08-11 23:35:26 -04:00
Alexander Ljungberg
233df3bdab
Fixed: the "fix for column reordering with hidden columns" sometimes caused the table view to try to remove nonexistent data views and crash. The fix is to consider a nonexistent data view already removed and just move on.
2010-08-11 23:33:21 -04:00
Randall Luecke
dd9c085ae3
Fix for new sort being unstable with a huge thanks to Shon Frazier. Reviewed by Me and Alexander Ljungberg.
2010-08-11 22:33:14 -05:00
Alexander Ljungberg
1fed798120
Fixed: CPGraphics.j was not imported anywhere so the CPScrollView borders changes didn't work. Also minor code cleanup.
2010-08-11 23:07:05 -04:00
Aparajita Fishman and Alexander Ljungberg
fcf9c0bc84
Full support for all NSScrollView border types, beginnings of a new tableview tester that shows dynamic changing of border type.
2010-08-11 22:49:37 -04:00
Aparajita Fishman and Alexander Ljungberg
fd9a753170
Port of NSGraphics
2010-08-11 22:49:31 -04:00
Randall Luecke
2a5f4b98ed
Merge branch 'master' of git://github.com/280north/cappuccino
2010-08-11 20:30:17 -05:00
David Hess and Randall Luecke
ad33d1648c
Patch to CPSlider to invert its value in vertical mode so that max value is represented at the top of the track instead of the bottom.
2010-08-11 20:29:46 -05:00
Alexander Ljungberg
1f784f46c7
Merge branch 'master' of github.com:280north/cappuccino
2010-08-11 20:24:29 -04:00
Randall Luecke
ed52b44f8b
Removed redundent methods in the tableview. Closes #822
2010-08-11 19:07:13 -05:00
Randall Luecke
4b8cc3e6d1
Table column drag view should draw lines the same color as the parent tableview.
2010-08-11 18:39:16 -05:00
Alexander Ljungberg
6b8e10cb2e
Whitespace cleanup of CPShadowView.
2010-08-11 19:20:10 -04:00
Aparajita Fishman and Alexander Ljungberg
952bb4bb7c
added CPShadow shadowViewEnclosingView
2010-08-11 19:18:52 -04:00
Aparajita Fishman and Randall Luecke
a0bcae2404
The Cocoa default is always to draw column lines, this wasn't being set in CPTableColumnView.
2010-08-11 18:16:48 -05:00
Randall Luecke
567f54c9f9
Fix global from error in previous mergre.
2010-08-11 17:32:50 -05:00
Aparajita Fishman and Randall Luecke
66f84ede6e
Fix for issue #799 (NSFont replaces LucidaGrande-Bold 13 with the theme font)
2010-08-11 17:16:44 -05:00
Aparajita Fishman and Randall Luecke
5b1ca8a7f9
Fix for issue #807 (NSTextField sets text color unconditionally, which causes theme lookup failure later)
2010-08-11 17:07:51 -05:00
Aparajita Fishman and Randall Luecke
4fc894e430
Fix for issue #820 (horizontal grid drawn incorrectly with no rows)
2010-08-11 16:58:05 -05:00
cacaodev and Randall Luecke
15356b617b
DrawRowTest that was announced in the previous commit
2010-08-11 16:32:26 -05:00
cacaodev and Randall Luecke
c8f6e12586
CPTableView: Implement -drawRow:clipRect: . The method is called only when a tableview subclass implements it for performance reasons.
...
DrawRowTest demonstrating the feature.
Conflicts:
AppKit/CPTableView.j
2010-08-11 16:32:01 -05:00
Randall Luecke
102cc92991
Merge branch 'master' of git://github.com/280north/cappuccino
2010-08-11 16:12:43 -05:00
Randall Luecke
1e490f1796
Fix for column reordering with hidden columns. Closes #637
2010-08-11 15:59:04 -05:00
Aparajita Fishman and Alexander Ljungberg
088a5c7166
Remove extra call to _init in -initWithCoder:
2010-08-11 12:23:47 -04:00
Randall Luecke
5837533678
Use a default TableView.
2010-08-10 20:58:04 -05:00
Randall Luecke
20ec557655
Initial reorganization of CPTableView testing.
2010-08-10 20:53:43 -05:00
cacaodev and Randall Luecke
b7d1dfa75f
CPArray sorting: improve performance by 40% (JSC) replacing native js sort() with the merge-sort algorithm.
...
Test with ojunit CPArrayPerformance.j
2010-08-10 18:16:03 -05:00
Randall Luecke
33e4a082d6
Some visual changes to column dragging to make it a bit more like cocoa.
2010-08-09 18:43:11 -05:00
Randall Luecke
dd49ef51d5
Merge branch 'master' of git://github.com/280north/cappuccino
2010-08-09 17:37:49 -05:00
Randall Luecke
13b2a886f3
Changed CPRect and CPPoint functions to _CG
2010-08-09 17:36:33 -05:00
Alexander Ljungberg
c1dfb315a9
Merge branch 'master' of github.com:280north/cappuccino
2010-08-09 18:31:51 -04:00
Randall Luecke
96958d26c7
Accidental globals.
2010-08-09 17:22:14 -05:00
Alexander Ljungberg
8d635c7a5a
Moved ArrayController1 test into the Manual folder.
2010-08-09 18:21:16 -04:00
Aparajita Fishman and Alexander Ljungberg
627c300b4a
Switched to using bit mask constants
2010-08-09 18:02:40 -04:00
Aparajita Fishman and Alexander Ljungberg
00812025c2
Fix for issue #818 (NSView does not read hidden flag)
2010-08-09 18:02:32 -04:00
Alexander Ljungberg
0b21b8bab1
Merge branch 'master' of github.com:280north/cappuccino
2010-08-09 17:54:30 -04:00
Alexander Ljungberg
271bb00147
Marginally faster filter and sort in CPArrayController's arrangeObjects (4% in the performance tester.) Reduced memory usage when both a filter and a sort order are applied. Cleanup of the tester and a filter only test run.
2010-08-09 17:31:36 -04:00
Randall Luecke
b346d761d8
Fix bug so we can drag items below the last child index in the outlineView.
2010-08-09 14:13:04 -05:00
Randall Luecke
21614e15b2
Draw column header lines by default.
2010-08-09 14:05:58 -05:00
Alexander Ljungberg
998c2f19cf
Performance tester for CPArrayController.
2010-08-09 14:21:22 -04:00
cacaodev and Alexander Ljungberg
750cd3c258
CPComparisonPredicate :
...
Fixed a bug where *lhs custom_selector: nil* was always returning false.
Test nil on left and/or right with some operators.
2010-08-05 16:18:18 -04:00
Alexander Ljungberg
df358ccc42
Fix failing CPPredicate unit tests: comment out test for unimplemented expressionForSubquery, finish CPExpression_unionset and fix typo in CPExpression expressionForIntersectSet.
2010-08-04 21:27:01 -04:00
Alexander Ljungberg
1b5efdfc5b
Fixed with CPPredicate tests: [CPArray arrayWithObjects] don't take a final nil anymore in Cappuccino.
2010-08-04 20:50:55 -04:00
Alexander Ljungberg
63dfb8a227
CPPredicate optimization: early out in failing AND expression.
2010-08-04 20:50:36 -04:00
Alexander Ljungberg
a3c0590218
Fixed with CPPredicate: [CPArray arrayWithObjects:...] should no longer be terminated with a nil in Cappuccino.
2010-08-04 20:50:07 -04:00
cacaodev and Alexander Ljungberg
c694c96a32
CPPredicate & co style cleaning
2010-08-04 20:45:06 -04:00
Alexander Ljungberg
30bc304a20
Whitespace and style fixes.
2010-08-04 20:23:35 -04:00
cacaodev and Alexander Ljungberg
974cf64e1d
CPPredicate &al implementation. OJUnit test.
2010-08-04 19:53:44 -04:00
cacaodev and Alexander Ljungberg
fce726a031
CPScanner implementation
2010-08-04 19:48:51 -04:00
cacaodev and Alexander Ljungberg
7187ba3074
CPCharacterSet implementation
2010-08-04 19:48:27 -04:00
cacaodev and Alexander Ljungberg
bfbf8fb841
Support for diacritics aware strings comparison
2010-08-04 19:48:06 -04:00
Alexander Ljungberg
4ea0d4d043
CPNull is equal to CPNull. Unit test included.
2010-08-04 16:43:04 -04:00
Alexander Ljungberg
8c13204afa
Save some memory and time in CPTableViewFirstColumnOnlyAutoresizingStyle mode.
2010-08-02 23:28:40 -04:00
Alexander Ljungberg
e4c79d2101
Closes #809 . End editing of a text field if it is disabled or made uneditable. Manual test included.
2010-08-02 23:13:06 -04:00
Randall Luecke
90a45dca29
some fixes to default buttons to make them more cocoa compliant...
2010-08-01 20:19:26 -05:00
Alexander Ljungberg
bcff25b959
Merge branch 'master' of github.com:280north/cappuccino
2010-08-01 19:15:52 -04:00
Alexander Ljungberg
dff6203fb3
Closes #806 . Fixed: if a selected row was removed from a table view, the selection remained and would show up again if a new row was later added.
2010-08-01 19:10:22 -04:00
Alexander Ljungberg
b4dd6b670b
Switch to the standard macros in _resizeAllColumnUniformlyWithOldSize as originally intended by Randy Luecke.
2010-08-01 19:06:57 -04:00
Randall Luecke
f028533c07
Removed gradient stuff that has been moved to the theme.
2010-08-01 17:50:19 -05:00
Alexander Ljungberg
dac61a14cd
Eliminated some accidental globals in uniform table column resizing.
2010-08-01 18:10:27 -04:00
Alexander Ljungberg
6884f93d76
Fixed: after the intercell spacing commit, table column auto resizing on the first or last column would result in a total column width wider than the scroll width of the table. This would appear as the rightmost column sticking out and the table showing a horizontal scrollbar.
2010-08-01 18:06:18 -04:00
Alexander Ljungberg
17cc77e816
Clean up code in table column resizing paths in preparation for fixing it.
2010-08-01 17:14:59 -04:00
Randall Luecke
7ac59dd142
Sheets should be assigned to the platform window of the window it is attached to.
2010-07-31 20:20:18 -05:00
Alexander Ljungberg
c277ae7f68
Fixed: calling CPTabView setTabViewType:CPNoTabsNoBorder before the first insertTabViewItem would cause an error. Fixed: if a tab item was added in CPNoTabsNoBorder mode, and the mode was later switched to CPTopTabsBezelBorder, that previously added tab item would have no label/tab. The solution is to maintain _labelsView in either mode; since in CPNoTabsNoBorder mode _labelsView is not in the view hierarchy anyhow the performance impact should be minimal.
2010-07-30 21:03:00 -04:00
Alexander Ljungberg
7c78753865
Fixed with CPTabView: don't remove the content and auxiliary views if the new views are the same as the old ones. This prevents flickering and needless redraws when the currently selected tab is reselected.
2010-07-30 21:02:50 -04:00
Alexander Ljungberg
9fc07ac622
Implemented NSView viewDidHide and viewDidUnhide.
2010-07-30 20:52:26 -04:00
Aparajita Fishman and Ross Boucher
364a11491d
Full support for intercell spacing (issue #797 )
2010-07-30 16:14:53 -07:00
Aparajita Fishman and Ross Boucher
0a26288d88
Fix for issue #804 (doxygen fails to generate class references), also did a bit of formatting cleanup in CPColor.j
2010-07-30 15:48:06 -07:00
Aparajita Fishman and Ross Boucher
dcfb916d30
Fix for issue #803 (jake docs doesn't use Doxygen.app on Mac OS X)
2010-07-30 15:47:56 -07:00
Alexander Ljungberg
d1c7dab356
If a CPSplitView view is collapsed through means of double click and then later restored in the same manner, preserve the original position of the divider. If the view was collapsed through dragging, double clicking to expand still positions the divider in the center of its available space.
2010-07-29 23:23:00 -04:00
Alexander Ljungberg
0e5b5c844c
Split view cursor improvements. If a split view divider is at its minimum position but a collapse is possible, show that a smaller size is possible through the cursor. If a split view has a collapsed view and the cursor moves over the divider, show a 'larger size is possible' cursor.
2010-07-29 23:22:45 -04:00
Aparajita Fishman and Ross Boucher
3eea14abe4
For the methods that don't have context: in their signature, the predicate will receive undefined in the context parameter instead of nil.
2010-07-29 14:08:04 -07:00
Ross Boucher
a7ca917abf
Better method of expressing this condition.
2010-07-29 11:26:13 -07:00
Aparajita Fishman and Ross Boucher
9ca80df67a
Cleaned up the state indicator (it was a little uneven) and centered it more horizontally in the state column.
2010-07-29 11:24:06 -07:00
Aparajita Fishman and Ross Boucher
48a89fd828
frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment
2010-07-29 09:56:55 -07:00
Aparajita Fishman and Ross Boucher
1002f80617
Another fix for issue #782 , uses class variable for the empty image placeholder.
2010-07-28 16:27:56 -07:00
Aparajita Fishman and Ross Boucher
fc51bead8e
Another try at fixing issue #782
2010-07-28 16:27:56 -07:00
Francisco Ryan Tolmasky I
cea663f4eb
Fix for isEqual: not being implemented in CPIndexSet.
...
Closes #785 .
Reviewed by rossco.
2010-07-28 16:17:54 -07:00
Aparajita Fishman and Ross Boucher
8ecac8d03c
Fix and test case for issue #746
2010-07-28 16:12:02 -07:00
Ross Boucher
f26d2f4ebf
Merge remote branch 'klaaspieter/fix-751-cpwindow-center'
2010-07-28 16:03:48 -07:00
Aparajita Fishman and Ross Boucher
cb7f60aba8
Added -indexOfObjectPassingTest: and related methods
2010-07-28 15:57:47 -07:00
Ross Boucher
b4dbe422ff
Revert to addObject if there are no sort descriptors in insert...sortedby.
...
Closes #764 .
2010-07-28 15:48:25 -07:00
Andreas and Ross Boucher
aea19c5cd0
Add modal stylemask in nib2cib
2010-07-28 15:33:45 -07:00
Aparajita Fishman and Ross Boucher
edc5542ee6
Fix for issue #748
2010-07-28 15:24:37 -07:00
Aparajita Fishman and Ross Boucher
eb99b7d7ca
CPSearchField fixes/enhancements to commit 5b763928fe:
...
- Added more documentation for -defaultSearchTemplate.
- Capitalized the text of the menu items in the default template.
- Adding a separator before no recents menu item if there are items before it.
- Updated the test app to use the default template and then modify it.
- Updated the test app to maintain the state of the custom items.
2010-07-28 15:16:04 -07:00
Aparajita Fishman and Ross Boucher
006f709d37
Fixes to commit 69273259a5:
...
- No longer setting the search menu template to the default, but -defaultSearchMenuTemplate was made public.
- Action and target for clear recents item is always set to CPSearchField -_searchFieldClearRecents: since that is a built-in type.
- Action and target for recents item is always set to CPSearchField -_searchFieldSearch: since that is a built-in type.
- Template menu items are copied via CPMenuItem -copy (which is now implemented), so all state is maintained.
2010-07-28 15:15:47 -07:00
Ross Boucher
f5322b39bc
Fix a debug mode bug in IE. Closes #768 .
2010-07-28 15:13:21 -07:00
Aparajita Fishman and Ross Boucher
8702b1421f
Fix for issue #777 , also fixed a declared type while I was at it
2010-07-28 15:09:02 -07:00
Nicholas Small
3070634aab
Make -center on a bridge window into a no-op.
2010-07-28 18:06:08 -04:00
Nicholas Small
b65041a780
Merge branch 'master' of github.com:280north/cappuccino
2010-07-28 18:05:23 -04:00
Aparajita Fishman and Ross Boucher
6426c8aee2
Fix for issue #778
2010-07-28 15:04:40 -07:00
Nicholas Small
16b6753f1d
Merge branch 'master' of github.com:280north/cappuccino
2010-07-28 18:03:12 -04:00
Nicholas Small
b96db40e3d
Merge branch 'master' of github.com:280north/cappuccino
2010-07-28 17:56:45 -04:00
Ross Boucher
7caf5fe20a
Must return from this method.
2010-07-28 14:54:07 -07:00
Aparajita Fishman and Ross Boucher
44a958d3f8
-hitTest was always returning self, which did not allow any other views to receive a mouse down
2010-07-28 14:53:13 -07:00
Aparajita Fishman and Ross Boucher
4c562048dc
More fixes to CPSearchField (Cocoa compliance and bugs):
...
- Added the ability to specify a separator in the template by using the tag CPSearchFieldSeparatorMenuItemTag.
- _recentSearches was not being initialized by -initWithCoder, moved that code into -_init.
- -setSearchMenuTemplate was not being invoked. Since having a recents menu is the default behavior in Cocoa, it should probably be the default behavior in cappuccino. To turn it off, set _maximumRecents to >= 254.
- -searchTextRectForBounds was using the wrong rect for -searchButtonRectForBounds and -cancelButtonRectForBounds, resulting in a rect that was too narrow and did not fill the space.
- Tightened up the spacing between the magnifying glass and the text to exactly Cocoa distance.
- Overhauled -
updateSearchMenu to fix some logic bugs.
- Made sure the search field becomes first responder after closing the search menu.
- Cleared the search string when clearing recent searches, this is what Safari does.
- Removed redundant invoking of -setDelegate in -initWithCoder.
- -_init has to be called last in _initWithCoder.
2010-07-28 14:53:04 -07:00
Aparajita Fishman and Ross Boucher
f3b92c7445
Fixes to cacaodev/searchfield/ffb8f99603d96b903b6bb39bc4dcb15ad09465be...
...
- Replaced CG functions with inline _CG functions
- _canResignFirstResponder was not being initialized to YES
- -resignFirstResponder has to call super if _canResignFirstResponder == YES
2010-07-28 14:51:57 -07:00
cacaodev and Ross Boucher
675e9829bd
CPSearchField: Fixes (per cocoa)
...
- Do not override search button action, catch mouse events in mouseDown: instead.
- Do not resign first responder on searchfield when showing the context menu
- Give more space between search button and insertion point
- Do not add search string to recents searches when typing and sendsWholeString == NO, only on enter.
- Select all text when showing the menu or after selecting a recent search in the menu
- Support custom search/cancel buttons and custom layout
- Allow images in template menu items
- Updated Test App with custom buttons
2010-07-28 14:49:02 -07:00
Ross Boucher
4c0dbda558
Merge remote branch 'klaaspieter/fix/789-observeablearray-removeobjectatindex'
2010-07-28 14:22:14 -07:00
Ross Boucher
e586273a3f
Fix accidental global.
2010-07-28 14:13:12 -07:00
Ross Boucher
d4a0f0cd21
Merge remote branch 'klaaspieter/fix/787-cptablecolumn-editability'
2010-07-28 14:12:49 -07:00
Klaas Pieter Annema and Ross Boucher
8cfba4c242
only offset a nib2cib'ed textfield if it has a bezel
2010-07-28 14:09:11 -07:00
Aparajita Fishman and Ross Boucher
cce13b4b45
NSMenuItem is not reading the tag for some reason
2010-07-28 14:07:45 -07:00
Alexander Ljungberg and Ross Boucher
05e435633f
Fixed: if a custom CPTableView header view was used for a column, such as a CPImageView, sorting by that column would cause an exception as CPTableView tried to send _setIndicatorImage: to the view. The fix is to only send the message if the view supports it.
2010-07-28 13:57:49 -07:00
Mike Fellows and Ross Boucher
6ff3fa0e52
Fix for issue #769 , allow ctrl/cmd keys and F1-F12 keys to propagate to the browser unless they are blacklisted
2010-07-28 13:52:01 -07:00
Aparajita Fishman and Ross Boucher
c3c996f1f7
Don't substitute the font if the textfield is not editable (a label)
2010-07-28 13:50:52 -07:00
Klaas Pieter Annema
ff98a9be5a
fix preserve selection in removeObjects and added unit test
2010-07-28 15:02:48 +02:00
Klaas Pieter Annema
96cef81267
Merge branch 'master' of git://github.com/280north/cappuccino
2010-07-28 13:29:16 +02:00
Klaas Pieter Annema
75ceeffab8
remove commented code from CPArrayControllerTest
2010-07-28 13:28:53 +02:00
Klaas Pieter Annema
71fffb6b68
Merge branch 'master' of git://github.com/280north/cappuccino into cparraycontroller-removeobject
2010-07-27 09:47:28 +02:00
Klaas Pieter Annema
e066228015
Merge branch 'cpindexset-isequal' into arraycontroller-fixes
2010-07-27 09:23:00 +02:00
Klaas Pieter Annema
48a5d55af7
fix CPArrayController selectPrevious: and selectNext:
...
Also added unit-tests for canSelectPrevious, canSelectNext, selectPrevious: and selectNext:
2010-07-27 09:10:41 +02:00
Klaas Pieter Annema
b9c2becd3e
implement CPIndexSet isEqual:
2010-07-27 09:09:59 +02:00
Klaas Pieter Annema
24f72c0b73
Merge branch 'master' of git://github.com/280north/cappuccino into arraycontroller-fixes
2010-07-27 08:47:14 +02:00
Klaas Pieter Annema and Ross Boucher
90e9b86497
match CPTableView's alternating row colors with Aristo's
2010-07-26 22:48:58 -07:00
Klaas Pieter Annema and Ross Boucher
560ea75a25
added CPArrayController to AppKit.j
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
78fd972312
only reverse set the binding on end editing
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
d947c849c8
made _accessorForKey slightly faster by inlining it as a function
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
8ce63a244c
store accessors in a javascript object not a CPDictionary, for slight performance improvement
2010-07-26 22:48:39 -07:00
Klaas Pieter Annema and Ross Boucher
0306c35b54
don't copy the selection indexes in setContent:
2010-07-26 22:48:39 -07:00
Klaas Pieter Annema and Ross Boucher
ff8e5ae42e
save _replacedKeys on the class in stead of the object instance
...
reviewed: Ross
2010-07-26 22:48:39 -07:00
Klaas Pieter Annema
acf5e5b75f
call super in _CPObservableArray removeObjectAtIndex:
...
The current implementation calls self, which causes an infinite loop
2010-07-26 18:44:50 +02:00
Klaas Pieter Annema
4f946f267e
fix CPArrayController removeObject:
...
removeObject: only shifted the selection, it never actually removes the object
2010-07-26 18:44:00 +02:00
Klaas Pieter Annema
abfe2b4be6
Merge branch 'master' of git://github.com/280north/cappuccino
2010-07-26 16:23:28 +02:00
Klaas Pieter Annema
bb3c08ce0b
add CPArrayController test
2010-07-26 14:04:26 +02:00
Klaas Pieter Annema
138888e620
implement CPArrayController insertObject:atArrangedObjectIndex:
2010-07-26 14:04:05 +02:00
Nicholas Small
4e1b429913
Merge branch 'master' of github.com:280north/cappuccino
2010-07-22 15:41:28 -04:00
Randall Luecke
51f780b5f5
Merge branch 'master' of github.com:280north/cappuccino
2010-07-22 00:21:51 -05:00
Randall Luecke
cffbf86351
TableView theming
2010-07-22 00:21:02 -05:00
Ross Boucher
709a9b3c61
Merge remote branch 'klaaspieter/fix-758-cpdate-isequal'
2010-07-21 15:04:10 -07:00
Ross Boucher
c35621b669
Merge remote branch 'klaaspieter/fix-756-cpstring-isequal'
2010-07-21 15:03:43 -07:00
Alexander Ljungberg and Ross Boucher
4d1baac4db
Fixed: first clearing a \r keqyEquivalent from one button and then setting it on another would result in an exception.
2010-07-21 14:57:52 -07:00
Alexander Ljungberg and Ross Boucher
474623feb3
Added support for punctuation based key equivalents such as Cmd-' or Cmd-;. Fixed: [event characters] would contain Þ when Cmd-' was pressed and º for Cmd-; since the key codes for punctuation do not match the ASCII codes and String.fromCharCode does not work. Manual test included.
2010-07-21 14:52:05 -07:00
Klaas Pieter Annema
c17a3533ec
fix #764
...
Array controller inserts object in wrong arranged object position if there are no sort descriptors defined
2010-07-20 14:59:18 +02:00
Ross Boucher
85f3691432
Don't add a "Shift" if it's not required.
2010-07-19 16:27:44 -07:00
Klaas Pieter Annema
2ae8d25d18
don't use === for date equality checking
...
Apparently this will return false for equal dates, reverted the actual equality check to what was already in Cappuccino before my fix !(date < otherDate || date > otherDate)
2010-07-19 13:10:15 +02:00
Nicholas Small
780bdc4421
Generate accessors for _CPSegmentInfo.
2010-07-18 03:05:31 -04:00
Randall Luecke
a2e6f8f964
Initial theming of TableView header.
2010-07-15 22:32:00 -05:00
Klaas Pieter Annema
564668587c
fix CPDate isEqual: and isEqualToDate:
2010-07-15 14:42:48 +02:00
Klaas Pieter Annema
023cf46041
check for nil in CPString isEqual:
2010-07-15 14:39:24 +02:00
Klaas Pieter Annema
36bb41a945
implemented isEqual: on CPString
2010-07-15 12:49:52 +02:00
Randall Luecke
0cbdb3b2d1
Fix for redrawing issues in tableview. Closes #627
2010-07-12 21:14:48 -05:00
Randall Luecke
70f2d86b58
Fixes for adding and removing columns to the tableview after the tableview has already been displayed... There are still issues though.
2010-07-12 20:45:30 -05:00
Klaas Pieter Annema
914175de70
If CPValueTransformerNameBindingOption contains an existing class, allocate and use it in CPKeyValueBinding
2010-07-12 15:41:00 +02:00
Randall Luecke
7696b30067
Added tests for CPFormatter and Foundation import.
2010-07-11 16:57:17 -05:00
Klaas Pieter Annema
478b5eaba3
make sure CPWindow center never puts it's window origin at a negative coordinate
2010-07-09 12:46:54 +02:00
Klaas Pieter Annema
52f0c0f587
Merge branch 'master' of git://github.com/280north/cappuccino
2010-07-08 16:27:15 +02:00
Randall Luecke
2a4d3507b8
Implementation fix for CPFormatter to conform to documentation.
2010-07-07 19:49:16 -05:00
Randall Luecke
78a75924de
selectedRowIndexes should return a copy, closes #605
2010-07-07 16:46:48 -05:00
Randall Luecke
a34dfee752
CPFormatter implementation.
2010-07-06 22:43:30 -05:00
Randall Luecke
5ca9b4f370
Merge branch 'master' of git://github.com/280north/cappuccino
2010-07-06 22:43:15 -05:00
Randall Luecke
2a2b320be3
Added image support for overflow toolbaritems. Also disabled the menu items if the toolbar is disabled.
2010-07-06 22:37:58 -05:00
Nicholas Small
071ab7d555
Only use CPView -display* methods while in DOM.
2010-07-02 14:58:23 -04:00
Klaas Pieter Annema
9738bbfbe5
Merge branch 'master' of git://github.com/280north/cappuccino
2010-07-02 09:25:27 +02:00
Nicholas Small
e385321f95
CPArrayController -selectedObjects returns a CPObservableArray.
2010-06-30 22:28:02 -04:00
Nicholas Small
21a9ae4c45
Make CPTableView work with selectionIndexes binding.
2010-06-30 12:03:03 -04:00
Nicholas Small
6a689dc3df
Fix for asking the wrong object for -_replacementKeyPathForBinding: when creating a new binding.
2010-06-30 12:00:20 -04:00
Klaas Pieter Annema
af0ca52739
made CPViewController equal cappuccino master
2010-06-30 11:50:53 +02:00
Klaas Pieter Annema
83ea50a836
don't send windowWillLoad and windowDidLoad if the window is not loaded from cib
2010-06-30 11:41:22 +02:00
Klaas Pieter Annema
2022eb5c12
Merge branch 'master' of git://github.com/280north/cappuccino
2010-06-30 11:19:23 +02:00
Klaas Pieter Annema
6b132c4d3b
added check for nil in CPIndexSet isEqual
2010-06-30 11:15:38 +02:00
Nicholas Small
f34775b038
CPAttributedString should not call its own -beginEditing or -endEditing.
2010-06-29 14:02:37 -04:00
Klaas Pieter Annema
f73d8a55de
implemented isEditable nib2cib support for CPTableColumn
2010-06-29 17:47:36 +02:00
Klaas Pieter Annema
3d39bf8720
Merge branch 'master' of git://github.com/280north/cappuccino
2010-06-29 11:27:33 +02:00
Randall Luecke
9a302328c6
Move the new close button a little to the right to confrom with the Aristo art.
2010-06-26 23:35:33 -05:00
Randall Luecke
cdb1ac32fa
Use the new Aristo HUD window art.
2010-06-26 23:22:24 -05:00
Alexander Ljungberg and Randall Luecke
74af0dc93a
Fixed: Shift + Arrow Keys in allowsMultipleSelection CPTableViews did not expand the selection anymore after the recent key binding updates.
2010-06-26 00:10:30 -05:00
Alexander Ljungberg and Randall Luecke
2da1dc31fb
Simplify CPCollectionView keyboard selection code, eliminate some redundancy.
2010-06-26 00:10:21 -05:00
Alexander Ljungberg and Randall Luecke
6b55c81462
Fixed: Shift + Arrow Keys in allowsMultipleSelection CPCollectionViews did not expand the selection anymore after the recent key binding updates.
2010-06-26 00:10:12 -05:00
Alexander Ljungberg and Randall Luecke
07630964c1
Reverse bindings support for CPCollectionView selectionIndexes. This enables binding a CPCollectionView's selectionIndexes to a CPArrayController.
2010-06-26 00:09:54 -05:00
Andreas and Ross Boucher
a6b7d456f4
Add isLoaded to CFBundle and CPBundle
2010-06-23 20:11:05 -07:00
Ross Boucher
7c5a07f709
Fix the issue where CPSecureTextField would sometimes cause all other text fields to go crazy afterwards.
2010-06-23 19:58:43 -07:00
Ross Boucher
7e25166ce1
Revert the fixed frame size assumption for now.
2010-06-23 19:13:56 -07:00
Klaas Pieter Annema
10df31cbf9
made isEqual: work on CPIndexSet and updated unit tests
2010-06-22 07:47:30 +02:00
Randall Luecke
10c067e44f
When dragging over a tableview row we should jump to the next row at the bottom 30% of the row, not 50%... otherwise it gets really really bad with large row heights.
2010-06-21 22:32:18 -05:00
Scott Kyle and Ross Boucher
f81e97726a
Fixed setName: in CPImage to return BOOL as in Cocoa
2010-06-21 13:23:27 -07:00
nciagra
8f040d6ff1
Fixed a couple of Unix key bindings.
2010-06-21 13:53:17 -04:00
Alexander Ljungberg and Ross Boucher
32fb13a9a9
Fixed: long titles in CPAlert buttons would be cut off. Fix is to use the standard 80 pixels width as a minimum width only.
2010-06-19 18:26:19 -07:00
Alexander Ljungberg and Ross Boucher
4b86115d30
Set the alert default button using the CPCarriageReturnCharacter key equivalent to match the recent Cappuccino change for default buttons.
2010-06-19 15:42:29 -07:00
Alexander Ljungberg and Ross Boucher
12a49d0ee1
CPAlert informative text support.
2010-06-19 15:41:15 -07:00
nciagra
b37f5b4143
Fix CPResponderTest.
2010-06-18 14:18:29 -04:00
nciagra
cbb9602f9e
Better caching of key bindings.
2010-06-18 11:50:33 -04:00
nciagra
997a305d35
Added CPKeyBinding for a dynamic key binding system.
2010-06-18 10:40:15 -04:00
nciagra
f09193ce07
Properly differentiate between special keys and normal keys in key handlers.
2010-06-17 00:17:52 -04:00
nciagra
96fc34c00e
CPResponder -interpretKeyEvents: will only call -insertText: if the Command and Control keys are not being held.
2010-06-16 22:03:31 -04:00
nciagra
bd06b8a867
Modifier keys will fire flagsChanged: instead of keyDown: and keyUp:, like Cocoa does.
2010-06-16 22:02:40 -04:00
Randall Luecke
7414d1407f
Moved tracking of last selected row index to selectRowIndexes: in tableview.
2010-06-16 13:59:25 -05: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
Alexander Ljungberg and Ross Boucher
f2c01cbbbd
In CPUndoManager, handle the edge cases if an object changes from being an Objective-J object to being just a JS object. Also handle the case where an Objective-J object could theoretically compare equal to nil - CPNull isEqual:.
2010-06-16 08:50:42 -07:00
Alexander Ljungberg and Ross Boucher
c807358216
Support non Objective-J objects in CPUndoManager's no-op check for auto undo.
2010-06-16 08:50:34 -07:00
Alexander Ljungberg and Ross Boucher
685c3c9853
Don't add no-ops to the undo stack when using automatic undo manager mode. This is necessary when used together with bindings since controls issue reverse binding updates whenever editing ends, which would add a 'do nothing' undo entry on the stack in cases where nothing changed.
2010-06-16 08:50:27 -07:00
Alexander Ljungberg and Ross Boucher
db3514a2c1
Only allow a single window frame animation at a time; stop the previous animation before starting a new one. This allows e.g. a sheet animating open to 'turn around' and animate right back out. Fixed: if a sheet was closed before it finished animating open, for example by hitting a keyboard equivalent immediately, CPWindow would crash with "Uncaught TypeError: Cannot read property 'sheet' of null".
2010-06-16 08:46:54 -07:00
Aparajita Fishman and Ross Boucher
6a43c544eb
Added support for reading max rows/columns from cib
2010-06-16 08:32:14 -07:00
Ross Boucher
1b174b86ca
Buttons should also be re-centered after their height is changed in nib2cib.
2010-06-16 08:14:04 -07:00
Klaas Pieter Annema
f40fc321fe
Make the window perform it's defaults button's key equivalent after the default keyDown messages are handled
2010-06-16 14:17:58 +02: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
Ross Boucher
17a8be1ae6
Return the actually last selected row in CPTableView.
...
Closes 716.
2010-06-15 19:20:48 -07:00
Aparajita Fishman and Ross Boucher
16be03b162
If first segment is enabled and mode is one-only, _selectedSegment is correctly set to 0
2010-06-15 19:11:31 -07:00
Ross Boucher
2f58517ce5
Request headers should be set after the request is re-opened. Closes #701 .
2010-06-15 09:29:04 -07:00
Francisco Ryan Tolmasky I
9a3c2d5311
Fix for scrolling affecting background windows with NativeHost.
...
Reviewed by me.
2010-06-12 18:33:59 -07:00
Ross Boucher
fed39694f6
Improve the handling of key window's losing their status.
2010-06-12 18:23:51 -07:00
Stephen Ierodiaconou
c10b06e29b
Merge branch 'master' of git://github.com/280north/cappuccino into CPDecimalNumber
2010-06-13 00:03:13 +03:00
Alexander Ljungberg and Ross Boucher
5c5412db67
Make didChangeValueForKey work even if willChangeValueForKey was not called.
2010-06-11 14:08:07 -07:00
Alexander Ljungberg and Ross Boucher
1c35bd22f8
Don't test keyCodes directly in CPResponder now that we have proper key equivalent characters.
2010-06-11 12:05:31 -07:00
Alexander Ljungberg and Ross Boucher
c28222e04d
Test CPResponder's interpretKeyEvents in preparation for rewrite.
2010-06-11 12:05:23 -07:00
Alexander Ljungberg and Ross Boucher
854481e395
Fixes #710 . Treat \r and \n key equivalents as the same key (return).
2010-06-11 10:19:07 -07:00
Alexander Ljungberg and Ross Boucher
44555ac724
UTF compatible CFData base64 string encoder and decoder. Use it for CPButton key equivalent archiving. Also ordered CPText.j constants by value and removed the empty CPText class definition as it caused errors with nib2cib. Fixed: the key equivalent for forward delete (CPDeleteFunctionKey, \uF728) was transformed to '(' (\u0028) when archived and unarchived.
2010-06-11 09:39:19 -07:00
Alexander Ljungberg and Ross Boucher
dcec14decd
Fixed: delete (backspace) and forward delete were switched as compared to Cocoa. Fixed: delete could not be used as a key equivalent without a modifier.
2010-06-11 09:37:47 -07:00
Randall Luecke
f62d81e79f
Fix for nib2cib breaking with an emptry class implementation.
2010-06-10 22:37:52 -05:00
Derek Hammer and Randall Luecke
9ff056f073
Making the DisclosureButton a little more subtle. Adding shadow to the disclosure buttons.
2010-06-10 18:21:51 -05:00
Ross Boucher
1edb0bcc4a
Fix for null key equivalents.
2010-06-10 16:14:22 -07:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
Scott Kyle and Randall Luecke
443e23e348
Without the commas, these create global variables
2010-06-10 16:42:19 -05:00
Ross Boucher
1e6595fca7
Slight switch statement change so that nil/0 are treated equivalently.
2010-06-10 13:29:47 -07:00
Alexander Ljungberg and Ross Boucher
5ed475eedd
Slightly faster _couldBeKeyEquivalent (1% of runtime in 3000 calls). Performance test included.
2010-06-10 10:57:42 -07:00
Alexander Ljungberg and Ross Boucher
17669fd09d
Optimized _triggersKeyEquivalent for a 6.5% performance gain in the CPKeyEquivalentPerformance test.
2010-06-10 10:56:02 -07:00
Alexander Ljungberg and Ross Boucher
51825db716
Fixed: [CPDate description] did not generate a correct date for users in timezones with a negative timezone offset.
2010-06-10 10:49:49 -07:00
Ross Boucher
421ae6b316
Make CPButton archive its key equivalents, and make nib2cib support the feature.
2010-06-10 10:41:15 -07:00
Aparajita Fishman and Ross Boucher
9ab446b790
Added image alignment support to CPImageView, CPWindowController always loads a cib from the main bundle for consistency with Cocoa, CPApplication modified to explicitly load the About panel cib from the Framework bundle
2010-06-09 14:24:00 -07:00
Ross Boucher
c65e3d4e6d
Move the bindings test to the manual folder.
2010-06-09 14:23:27 -07:00
Ross Boucher
10fad00c1e
Merge remote branch 'aljungberg/keyequivalents-merge'
2010-06-09 13:42:57 -07:00
Tom Robinson
478f2d8134
Name Objective-J allocators to get correct WebKit heap snapshot reports.
2010-06-09 13:16:45 -07:00
Thomas Ingham and Ross Boucher
a49b01d396
Added missing asset.
2010-06-08 19:29:11 -07:00
Alexander Ljungberg
c26ebe0bd2
Added support for menu key equivalents such as Escape or Cmd-Delete. Refactored code to recognize key equivalents for reuse between CPMenu and CPButton. Added unit tests for CPMenu key equivalents.
2010-06-07 19:09:15 -04:00
Alexander Ljungberg
381a44148e
Special keys such as backspace and escape can now be used as key equivalents through checking for their unicode representations in [CPEvent characters]. This replaces the earlier raw key code approach.
2010-06-07 19:09:10 -04:00
Alexander Ljungberg
c1f16de441
Defined function and special key constants.
2010-06-07 19:09:01 -04:00
Alexander Ljungberg
4a048657c5
If a button is named "Cancel" in a CPAlert window, give it the 'escape' key equivalent.
2010-06-07 19:08:50 -04:00
Alexander Ljungberg
44f5086600
Key equivalents for CPButton.
2010-06-07 19:08:44 -04:00
Klaas Pieter Annema
ddddc3330d
Merge branch 'master' of git://github.com/280north/cappuccino
2010-06-07 11:09:41 +02:00
Randall Luecke
39ba9b9a4f
setSeletable now works in CPTextField. Closes #690
2010-06-06 16:26:51 -05:00
Alexander Ljungberg and Randall Luecke
bdb36f35cf
Fixed: the actual delegate method definition somehow didn't make it into the change enabling outlineView:shouldEditTableColumn:item: for outline view inline editing. This commit predefines all CPOutlineView delegate methods.
2010-06-06 16:07:50 -05:00
Ross Boucher
0c9b4da473
Don't supress exceptions in the backtrace decorator, add an exception supressing decarator.
2010-06-06 12:57:45 -07:00
Stephen Ierodiaconou and Ross Boucher
935f1084d6
Javascript Date object returns month between 0 and 11
2010-06-06 12:05:11 -07:00
Saikat Chakrabarti and Ross Boucher
c8759babae
Adding checks for existence of DOM when calling CPPlatformWindow+DOM-only methods
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2010-06-06 11:48:15 -07:00
Francisco Ryan Tolmasky I
ab3d648244
Fix for browser:acceptDrop:atRow:column:dropOperation: not being called if browser:validateDrop:proposedRow:column:dropOperation: is implemented.
...
Reviewed by me.
2010-06-04 19:21:43 -07:00
Randall Luecke
57dc0460a3
Fixed theme state for CPBrowser.
2010-06-03 21:09:18 -05:00
Randall Luecke
d5ee07fe1b
CPControl should not be allowed to performClick: if it's disabled.
2010-06-02 20:43:09 -05:00
Klaas Pieter Annema
89e3618d85
Merge branch 'master' of git://github.com/280north/cappuccino
2010-06-02 15:37:11 +02:00
Randall Luecke
162381a73f
Removed worthless variable in the collectionview.
2010-06-01 19:16:02 -05:00
Klaas Pieter Annema
08db857334
Merge branch 'master' of git://github.com/280north/cappuccino
2010-06-01 10:16:11 +02:00
Randall Luecke
bb651d0c70
Added multiple selection support to the collectionview.
2010-06-01 01:53:26 -05:00
klaaspieter and Randall Luecke
d9c094f644
call tableview doubleclick action even if target is nil (action will travel down the responder chain)
...
Conflicts:
AppKit/CPTableView.j
2010-05-31 19:14:54 -05:00
Klaas Pieter Annema
32040bdd7e
Merge branch 'tableview-doubleclick'
...
Conflicts:
AppKit/CPTableView.j
2010-05-31 15:44:24 +02:00
Klaas Pieter Annema
43f0e43de7
call tableview doubleclick action even if target is nil (action will travel down the responder chain)
2010-05-31 15:41:52 +02:00
Klaas Pieter Annema
5122b15ffb
Merge branch 'windowcontroller-loadwindowfix'
2010-05-31 13:48:23 +02:00
Klaas Pieter Annema
468d8e7c33
call windowWillLoad and windowDidLoad if the window is set directly from the initializer
2010-05-31 13:45:51 +02:00
Klaas Pieter Annema
93b1d1e591
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-31 10:34:52 +02:00
Ross Boucher
1642149228
Missing #include had broken the slider color picker.
2010-05-28 12:45:15 -07: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
eacd408ce8
Fixed a typo in CPObjectController
2010-05-27 15:23:09 +02:00
Klaas Pieter Annema
084da71420
exposed more bindings on CPControl
2010-05-27 15:22:40 +02:00
Alexander Ljungberg
3fa47ee9ec
Fixed: [_CPImageAndTextView setDimsImage] wasn't working right due to checking if a non existent variable equalled the current value.
2010-05-26 20:09:01 -04:00
Alexander Ljungberg
e811895570
Fixed: CPObjectController keyPathsForValuesAffectingX typos.
2010-05-26 20:06:32 -04:00
Alexander Ljungberg
47e890b8e1
Fixed table row drag view when using bindings.
2010-05-26 20:02:12 -04:00
Alexander Ljungberg
f2bb27dc32
Fixed: [CPArray isEqualToArray:nil] threw an exception instead of returning NO.
2010-05-26 19:54:20 -04: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
Alexander Ljungberg
45a2bcb71a
Fixed bindings problems where 'nil' would be transformed into @"". Also, CPIsNilTransformerName and its inverse couldn't work because any nil value was immediately returned without transformations being applied. Full complement of unit tests included, based on Cocoa empirical testing.
...
Fixed with CPKeyValueBinding: the CPValueTransformerNameBindingOption option would cause an exception due a missing import.
2010-05-26 19:50:35 -04:00
Alexander Ljungberg
48fb660e66
The problem with initialize in fb5950c82d0124bdebb6e03cb4509306ef4161c8 turned out to be caused by a Cappuccino bug with class methods and arguments named 'name'. Renaming the argument solved the problem so I reverted the initialize change. This fix also fixes valueTransformerForName.
2010-05-26 19:49:49 -04:00
Alexander Ljungberg
218919a8ba
Fixed: exposed bindings on CPObject would not appear in CPObject subclasses.
2010-05-26 19:48:27 -04:00
Alexander Ljungberg
79ed04e403
Fixed: including CPValueTransformer.j causes an infinite loop due to the recent Objective-J (mis?) behavior that every class has to inherit from CPObject. Also, the transformer map failed to initialize properly with the existing setup code for reasons which were not immediately clear. Moving the initialization to a regular + initialize method eliminated the problem.
...
Fixed: CPKeyValueBinding.j would throw an exception if a named value transformer option was specified, due to CPValueTransformer.j not being imported.
2010-05-26 19:47:45 -04:00
Alexander Ljungberg
3c995fe17b
Fixed: the array controller remove method mapped selection indexes to the content array instead of the arranged objects, leading to the wrong objects being removed as filters and sort descriptors were effectively ignored.
2010-05-26 19:45:13 -04:00
Alexander Ljungberg
5ff8ddf5f3
Fewer bindings debug log messages.
2010-05-26 19:44:14 -04:00
Alexander Ljungberg
8b2350fb22
Optimized table data loading when using bindings for the cell values. A special code path in the CPTableColumn's prepareDataView:forRow: method turns a O(n) operation into O(1) where n is the number of items in the model array.
2010-05-26 19:42:59 -04:00
Alexander Ljungberg
15be647c16
Fixed: the CPArrayController code to remove out of bounds selections failed to remove the last selected item if the new arrangedObjects array was empty.
2010-05-26 19:42:40 -04:00
Alexander Ljungberg
8a8af0e4a9
Fixed: CPArrayController could get out of bounds selections if a call to rearrangeObjects caused objects to disappear from the arranged set.
2010-05-26 19:41:34 -04:00
Alexander Ljungberg
4ff89eab04
Fixed: CPArrayController would throw out of bounds exceptions when its content array was shortened and items at the end were selected.
...
Extended avoid empty selection support so that when the last item is selected and deleted, the (previously) second to last item is selected instead. Works as expected with multiple selections.
2010-05-26 19:40:55 -04:00
Alexander Ljungberg
ec032cb739
Performance fix: willChange and didChange for CPArrayController's selectionIndexes were sent doubly.
2010-05-26 19:40:24 -04:00
Alexander Ljungberg
2b287a85e5
CPArrayController now pushes new selections to the bound model for selectionIndexes. Using this, support for selectsInsertedObjects was added.
...
This commit also fixes a performance problem where calling setSelectionIndexes with a selection equal to the one already active caused a selection update.
2010-05-26 19:39:42 -04:00
Alexander Ljungberg
6ea2b4e0e2
Fixed: the CPArrayController addObject: optimization for fast index updates would never fire with a nil _filterPredicate, causing rearrangeObjects to be called needlessly.
2010-05-26 19:39:09 -04:00
Alexander Ljungberg
f7e2e9c2ee
Fixed: the _CPObservableArray init method used by CPArrayController did not properly initialize _observationProxies.
...
Fixed: _CPObservableArray's insertObject:atIndex: caused an infinite loop.
2010-05-26 19:37:28 -04:00
Alexander Ljungberg
5463e5ca55
Fixed: CPArray insertObject:inArraySortedByDescriptors: did not return the index into which the object was inserted. This would have broken CPArrayController's addObject code.
2010-05-26 19:36:26 -04:00
Alexander Ljungberg
396d4218f0
Fixed: CPArrayController keys ContentArray, ArrangedObjects, Selection, SelectionIndex, SelectedObjects, CanRemove and CanSelectNext could not be observed properly because their dependency declarations had a repeated typo.
2010-05-26 19:30:06 -04:00
Alexander Ljungberg
e3a07845d4
Implemented CPTableView clickedRow for use in double-action.
2010-05-26 19:24:36 -04:00
Alexander Ljungberg
341a42bddd
DataSource delegate method tableView:objectValueForTableColumn:row is optional if bindings are used to provide data for the table view.
2010-05-26 19:20:38 -04:00
Alexander Ljungberg
573444e640
Removed a bindings console.log statement incompatible with browsers without a debug console.
2010-05-26 19:14:03 -04:00
Alexander Ljungberg
ed9c6d7959
Added reverse sort tests for CPArray insertObject:inArraySortedByDescriptors:.
2010-05-26 19:11:58 -04:00
Alexander Ljungberg
ed2c65dd6f
Merge branch 'master' of git://github.com/280north/cappuccino into bindings-merge
...
Conflicts:
AppKit/CPTableView.j
Foundation/CPArray+KVO.j
Foundation/CPArray.j
2010-05-26 19:05:04 -04:00
cacaodev and Ross Boucher
0062caafdf
CPObject -implementsSelector:
2010-05-26 10:06:49 -07:00
Stephen Ierodiaconou and Ross Boucher
b98f0b1427
Apply style rules to Foundation
2010-05-26 08:53:05 -07:00
Stephen Ierodiaconou and Ross Boucher
b6a3d2b283
Remove import of deprecated CPLog.j
...
Remove deprecated CPLog.j
2010-05-26 08:52:59 -07:00
Stephen Ierodiaconou and Ross Boucher
0d848e3d93
Add test on self in init of CPAttributedString
2010-05-26 08:52:46 -07:00
Stephen Ierodiaconou and Ross Boucher
065197980b
CPCoder typo fixes
2010-05-26 08:51:58 -07:00
Thomas Ingham and Ross Boucher
2a36488db7
Added new artwork and theme style for the button.
...
Matching fonts to segctl.
2010-05-26 08:51:36 -07:00
Klaas Pieter Annema
3cd44284c4
- added CPValueTransformer to Foundation.j
...
- made CPValueTransformer import Foundation objects directly
- gave the build in transformers CPValueTransformer as superclass
2010-05-26 16:46:44 +02:00
Klaas Pieter Annema
bc0fa6a62e
made removeObject on _CPKVCArray work properly
2010-05-26 16:45:55 +02: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
df1b56becf
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-26 11:58:49 +02:00
Tom Robinson
5a77c19791
Silence tools output during tests (press, flatten, capp gen)
2010-05-25 16:24:29 -07:00
Tom Robinson
eae3270385
Add bcomm hook to LoadTimeTest
2010-05-25 14:09:10 -07:00
Randall Luecke
daee101005
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-25 14:05:24 -05:00
Klaas Pieter Annema and Randall Luecke
b32d503d65
implemented CPTableColumn isHidden nib2cib support
2010-05-25 14:03:14 -05:00
Klaas Pieter Annema and Randall Luecke
ca7af88c59
- updated tablecolumn nib2cib to support new row selection theme state
...
- nib2cibed the MainMenu.xib in the tablecib example to update it's cib to the changes
2010-05-25 14:03:04 -05:00
Klaas Pieter Annema and Randall Luecke
6bd8e96ac0
fixed a bug where the table header would attempt to set content inset on a _CPImageAndTextView
2010-05-25 14:02:52 -05:00
Klaas Pieter Annema and Randall Luecke
d06d69966b
used content inset in stead of frame offset to properly place the table header text
2010-05-25 14:02:41 -05:00
Klaas Pieter Annema and Randall Luecke
004829ac9e
table header view nib2cib updates
2010-05-25 14:02:30 -05:00
Randall Luecke
0009603098
removed the border from _CPCornerView (Aristo)
...
Conflicts:
Tests/Manual/TableCibTest/Resources/MainMenu.cib
2010-05-25 14:01:42 -05:00
Klaas Pieter Annema and Randall Luecke
5479c77ae6
changed the table header view image height to 23.0
2010-05-25 14:00:46 -05:00
Klaas Pieter Annema and Randall Luecke
1f97616f3c
override default IB tableview grid colors with aristo's
2010-05-25 14:00:34 -05:00
Klaas Pieter Annema and Randall Luecke
e65fcdab42
- changed default dataview styling to aristo
...
- updated nib2cib support for CPTableColumn
2010-05-25 14:00:22 -05:00
Klaas Pieter Annema and Randall Luecke
428f5a656d
changed default table view alternating row colors to aristo
2010-05-25 14:00:10 -05:00
Klaas Pieter Annema and Ross Boucher
0315ad38f9
- fixed CPKeyedUnarchiver decodeBytesForKey attempting to access nil (or undefined) data
...
- improved CPSearchField nib2cib support
2010-05-25 11:48:03 -07:00
Klaas Pieter Annema and Ross Boucher
6c1a6a2033
made _sendPartialString send it's action down the responder chain
2010-05-25 11:47:52 -07:00
Klaas Pieter Annema and Ross Boucher
2a630a7210
made CPDictionary call [super valueForKey:] on keys prefixed with @
2010-05-25 11:40:45 -07:00
Klaas Pieter Annema
528203d8e5
made CPDictionary call [super valueForKey:] on keys prefixed with @
2010-05-25 20:37:00 +02:00
Klaas Pieter Annema
fd5a0cc468
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-25 11:23:18 +02:00
Randall Luecke
359a29874b
Return a copy instead of the array itself.
2010-05-24 22:44:14 -05:00
Randall Luecke
f9da7f73b3
Added missing pathComponents method to CPURL.
2010-05-24 21:59:37 -05:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
49ae82d96a
Fixed: CPToolbar validateVisibleItems was called validateVisibleToolbarItems.
2010-05-24 15:53:12 -07:00
Francisco Ryan Tolmasky I
fbd23fb2c3
Removed unecessary var.
...
Reviewed by me.
2010-05-24 15:45:54 -07:00
Paul Baumgart and Francisco Ryan Tolmasky I
252b258159
fix CFDictionary.containsValue and CFDictionary.countOfValue and add tests to prove it
2010-05-24 15:45:21 -07:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
dfcef3ca2d
Fixed: [CPPopUpButton itemTitles] didn't work.
2010-05-24 15:45:07 -07:00
Thomas Ingham and Ross Boucher
3d4a33d373
Re-preflight on the image assets resulting in 24px tall images in each case. This is done by cutting the top edge close (well into the aliased edge on top.)
...
Added defs for the horizontal and vertical sliders.
2010-05-24 15:31:04 -07:00
Ross Boucher
28397e672e
fix a misnamed variable.
...
closes #673 .
2010-05-24 11:28:57 -07:00
Alexander Ljungberg and Ross Boucher
bbbf439028
Fixed: contentBounds not var'ed in _verticalScrollerDidScroll. Whitespace cleanup.
2010-05-24 11:21:23 -07:00
Alexander Ljungberg and Ross Boucher
3c5dab1f34
Implemented CPCoding for CPButton imageDimsWhenDisabled. Fixed a problem where setImageDimsWhenDisabled:NO would not cause a redraw even if the image was previously dimmed.
2010-05-24 11:17:25 -07:00
Saikat Chakrabarti and Ross Boucher
e8499e1751
Adding grab/grabbing cursors for Firefox.
2010-05-24 10:15:29 -07:00
Ross Boucher
be26ab9201
CPDictionary is now KVO compliant.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
7519b7ab63
Added hud style for circular slider knob thing.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
aaf5c7581c
Moved the non-highlighted version of the knob down one more freaking pixel.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
ce4e8dc8b7
Moved knobs down a pixel.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
5c2e6c8ed8
Matched up the knob images to those in the file and split them into HUD as well.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
4020f9c6c2
Adding images for sliders.
2010-05-24 10:09:38 -07:00
Thomas Ingham and Ross Boucher
16bf635aca
Added images that I missed because git doesn't do recursive directories.
2010-05-24 10:09:38 -07:00
Thomas Ingham and Ross Boucher
99bc5a018e
Added segmented control graphics and theme method to support HUD style displays for CPSegmentedControl.
2010-05-24 10:09:38 -07:00
Stephen Ierodiaconou
411a634242
Merge branch 'CPDecimalNumber' of http://github.com/klaaspieter/cappuccino into CPDecimalNumber
2010-05-23 10:35:44 +03:00
Stephen Ierodiaconou
4ab421f183
Merge branch 'master' of git://github.com/280north/cappuccino into CPDecimalNumber
2010-05-23 10:26:17 +03:00
Klaas Pieter Annema
06a553ba85
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-21 11:51:02 +02:00
klaaspieter and Randall Luecke
08b06b8632
implemented CPCoding support for CPSortDescriptor and made CPTableColumn decode it's _sortDescriptorPrototype
...
Conflicts:
AppKit/CPTableColumn.j
Tools/nib2cib/NSTableColumn.j
2010-05-20 22:51:01 -05:00
Randall Luecke
79e8b6e242
Added API for changing tableview selection color and source list gradient.
2010-05-20 19:43:01 -05:00
Klaas Pieter Annema and Randall Luecke
6a34329765
fixed a typo where CPThemeStateSelectedDataView was set on the header view of a table column
2010-05-20 13:42:50 -05:00
Klaas Pieter Annema
f7dd6e4387
fixed a typo where CPThemeStateSelectedDataView was set on the header view of a table column
2010-05-20 18:52:43 +02:00
Klaas Pieter Annema
6a33acbb7c
implemented CPCoding support for CPSortDescriptor and made CPTableColumn decode it's _sortDescriptorPrototype
2010-05-20 11:39:47 +02:00
Klaas Pieter Annema
97e4b69eaa
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-20 10:50:47 +02:00
Alan Rogers and Randall Luecke
e96678eebc
Fix for gh issue #674 : passing item in userInfo for the will/did expand/collapse notifications for the OutlineView.
2010-05-20 02:12:39 -05:00
Randall Luecke
1bc8536f0e
Row indexes which no longer exist are removed from selectedRowIndexes.
2010-05-19 21:15:50 -05:00
Klaas Pieter Annema
76df9be4fb
implemented CPTableColumn isHidden nib2cib support
2010-05-19 18:51:18 +02:00
Klaas Pieter Annema
322d8c67b3
Fixed NSTableColumn user resizable nib2cib
2010-05-19 18:31:21 +02:00
Randall Luecke
d6ac30be75
CPTableView dataViews when selected now use the new CPThemeStateSelectedDataView state to avoid conflict with other CPControl theme states.
2010-05-19 01:55:01 -05:00
Randall Luecke
a9f970459b
Fix for undoManager thowing exception in -canUndo.
2010-05-19 01:33:13 -05:00
Randall Luecke
76443a5d7f
Fire selectionIsChanging when selecting column. closes #437
2010-05-19 01:02:39 -05:00
Randall Luecke
f0501f8494
Fixed regression from last commits where children would fail to expand.
2010-05-19 00:29:12 -05:00
Blair Duncan and Randall Luecke
efb752f1f4
CPOutlineView, forgot to unregister notifications prior to adding them in the last commit.
2010-05-19 00:13:26 -05:00
Randall Luecke
d252e94892
CPOutlineView item Expande/Collapse delegate method notifications
...
Conflicts:
AppKit/CPOutlineView.j
2010-05-19 00:13:05 -05:00
Alexander Ljungberg and Randall Luecke
0be23981f3
Fixed a nonsensical CPTableview highlight style check which only accidentally did the right thing.
2010-05-18 23:57:00 -05:00
cacaodev and Randall Luecke
a4cadc5fb3
CPOutlineView: fix for _retargetedDropRow not set when retargeting an item which resulted in a wrong drop line position
2010-05-18 23:56:49 -05:00
Alexander Ljungberg and Randall Luecke
f902223597
Edit table cells programmatically (editColumn:row:withEvent:select:). Also implements editedColumn and editedRow.
2010-05-18 23:56:42 -05:00
Alexander Ljungberg and Randall Luecke
9b926be557
Support CPOutlineView inline editing.
2010-05-18 23:56:34 -05:00
Klaas Pieter Annema
db568af302
made sure CPViewController calls viewDidLoad if it's view property is set directly
2010-05-17 12:44:11 +02:00
Klaas Pieter Annema
e7cf20a723
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-17 11:19:14 +02:00
Randall Luecke
202243f711
fixed typo in CPViewAnimation.
2010-05-16 13:41:09 -05:00
Randall Luecke
c5f51ae826
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-16 13:26:45 -05:00
Randall Luecke
61b9c7a1ee
Moved depreciated CPGeometry methods to CGGeomotry and fixed the filename in the header.
2010-05-16 13:19:28 -05:00
Saikat Chakrabarti and Ross Boucher
4520715b5b
Making CPURLConnection authentication challenges happen before the delegate gets a response
2010-05-15 19:14:57 -07:00
Thomas Ingham and Ross Boucher
6ef829e9ec
Added documentation in the form of source code comments; verified using doxygen and the included recipe file.
2010-05-15 12:36:36 -07:00
Alexander Ljungberg and Ross Boucher
791e65c88b
Improved CPArray sortUsingDescriptors performance by about 3% by pulling the descriptor count out of the sort function.
2010-05-15 12:32:19 -07:00
Ross Boucher
fddcde757f
Add a more specific cache header.
...
Closes #649 .
2010-05-15 12:22:29 -07:00
Paul Baumgart and Ross Boucher
66180f8de4
change @property to @accessors in pre-processor error messages
2010-05-15 12:19:35 -07:00
Paul Baumgart and Ross Boucher
bc5a21d545
Change objj_exception_throw to manually throw an exception, because objj_exception_throw doesn't exist anymore.
2010-05-15 12:19:06 -07:00
Paul Baumgart and Ross Boucher
fc8525e4d8
throw a regular Error() exception in Runtime.js because objj_exception doesn't exist anymore
2010-05-15 12:19:00 -07:00
Francisco Ryan Tolmasky I
8dd61155bf
Merge branch 'master' of github.com:280north/cappuccino
2010-05-12 19:23:06 -07:00
Francisco Ryan Tolmasky I
5a89dfe8f4
Fix for identifying when we can use platform windows.
...
Reviewed by me.
2010-05-12 19:22:31 -07:00
Ross Boucher
80b70ec6b9
Can't sprited resources whos resulting dataURL is larger than 32k, not resources which themselves are over 32k.
2010-05-12 19:08:30 -07:00
Francisco Ryan Tolmasky I
ac81ab458c
Fix for same html appearing multiple times in CPWebView when using loadHTMLString: many times in succession.
...
Reviewed by me.
2010-05-12 18:41:14 -07:00
Ross Boucher
23b76874df
A few IE fixes for web view.
2010-05-12 18:23:33 -07:00
Randall Luecke
bc54fcf6c0
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-12 19:46:34 -05:00
Randall Luecke
e0a3a683a5
access ivars directly from within CPTableHeaderView class.
2010-05-12 19:44:07 -05:00
Randall Luecke
c31786c4c1
Refactored autoresizing
2010-05-12 19:01:28 -05:00
Ross Boucher
13a5c7f215
indexOf is not a safe operation on arrays.
2010-05-12 16:51:28 -07:00
Klaas Pieter Annema and Ross Boucher
ee2f361425
Reimplemented setImageDimsWhenDisabled: on CPButton to only dim the image instead of the entire button
2010-05-12 16:51:28 -07:00
Scott Kyle and Ross Boucher
9eab2071dc
In CPImageView, performDragOperation: should return a BOOL
2010-05-12 16:51:28 -07:00
Randall Luecke
61d7fe04e8
If we tell the tableview not to draw a selection then we shouldn't draw it...
2010-05-12 18:43:56 -05:00
Randall Luecke
d3161422db
Updated TableTest adding a checkbox as a dataview for a column.
2010-05-12 17:14:25 -05:00
Ross Boucher
d1ae1bd41f
Menu window's should open in the same platform window as the view they are attached to.
2010-05-12 10:36:48 -07:00
Francisco Ryan Tolmasky I
6384bed9cc
Properly handle window.location= links as well.
...
Reviewed by me.
2010-05-12 09:45:58 -07:00
Francisco Ryan Tolmasky I
be75e4948d
Merge branch 'master' of github.com:280north/cappuccino
2010-05-12 08:54:15 -07:00
Francisco Ryan Tolmasky I
337f5d9e73
Correctly handle targeted links in NativeHost.
...
Reviewed by me.
2010-05-12 08:53:50 -07:00
Ross Boucher
4afa2bfada
clean up style issues
2010-05-11 23:20:02 -07:00
Randall Luecke
b94174f9e1
Updated TableTest to provide a test case for tables that do not sit at (0,0) of a window.
2010-05-11 19:43:01 -05:00
Randall Luecke
bf71045381
Fixed bug where column reordering would be off if the table didn't sit at (0,0) on a window.
2010-05-11 19:39:51 -05:00
Francisco Ryan Tolmasky I
0ade0e1361
Merge branch 'master' of github.com:280north/cappuccino
2010-05-11 14:05:51 -07:00
Ross Boucher
0f02e0d8dd
Revert "added enumerateWithBlock: to CPArray"
...
This reverts commit 39bb8e3418 .
2010-05-11 12:40:37 -07:00
klaaspieter and Randall Luecke
7c786407a5
Merge remote branch 'klaaspieter/column-reordering'
...
Conflicts:
AppKit/CPTableHeaderView.j
2010-05-11 01:18:56 -05:00
Klaas Pieter Annema and Randall Luecke
79ba8fecd5
made column reordering work with scrolled content
2010-05-11 00:25:54 -05:00
Klaas Pieter Annema and Randall Luecke
213c81ed4d
made table column reordering work in non full-bridged apps
2010-05-11 00:25:47 -05:00
Klaas Pieter Annema and Randall Luecke
d7432c376d
fixed a bug where column reordering would break when the last column was hidden
2010-05-11 00:25:39 -05:00
Klaas Pieter Annema and Randall Luecke
b8c7d6ea86
some cleanup
2010-05-11 00:25:30 -05:00
Randall Luecke
983f0a92b2
- fixed a out of bounds error when clicking in the table header outside of any column
...
- made the dragged table column appear gray
- gave the tablecolumn drag view a white background
Conflicts:
AppKit/CPTableView.j
2010-05-11 00:25:19 -05:00
Klaas Pieter Annema and Randall Luecke
256cc902eb
- switch columns when the dragged column is more than halfway over the previous/next column
...
- constrain the horizontal coordinates within the header view
2010-05-11 00:24:16 -05:00
Klaas Pieter Annema and Randall Luecke
f7b766cc4a
- made the _dragViewForTableColumn:event:offset: method private
...
- removed the multiple column support from _dragViewForTableColumn:event:offset: (Cocoa doesn't allow multiple column selection / dragging)
- made the dragview the size of the dragged column
2010-05-11 00:24:03 -05:00
Klaas Pieter Annema and Randall Luecke
dca66f300d
- gave the drag column a proper 'image' representation
...
- constrained the drags y coordinates
- made sure a drag is never out of bounds
2010-05-11 00:23:55 -05:00
Klaas Pieter Annema and Randall Luecke
fd9dac8122
- refactored mouse interaction
...
- implemented basic column reordering
2010-05-11 00:23:40 -05:00
Klaas Pieter Annema and Randall Luecke
8b168e76af
refactored CPTableHeaderView mouse interaction
2010-05-11 00:18:21 -05:00
Randall Luecke
5b518797d7
fixed CPTableView moveColumn:
...
Conflicts:
AppKit/CPTableView.j
2010-05-11 00:18:05 -05:00
Randall Luecke
e5275514dd
OutlineView items auto expand when hovering over them.
2010-05-11 00:05:12 -05:00
cacaodev and Randall Luecke
0d35b38282
CPOutlineView: Fix a bug where newly expanded items would have a white disclosure control.
...
In CPTableView, add a method for data view selection. Use it in CPOutlineView for disclosure selection and do not subclass the entire -selectRows:... method.
Darken disclosure control when pressed depending on the selected state.
2010-05-10 15:03:06 -05:00
Randall Luecke
837dcbf19d
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-10 15:02:19 -05:00
Ross Boucher and Randall Luecke
e68d70cf1d
Make mouse wheel events work in CPWebView in Firefox 3+
2010-05-09 21:46:02 -05:00
Klaas Pieter Annema
1171e2c9af
Merge branch 'master' of git://github.com/280north/cappuccino
...
Conflicts:
Foundation/CPKeyValueObserving.j
2010-05-07 10:23:27 +02:00
Klaas Pieter Annema
e5873caf04
fixed a typo in objectValueForTableColumn:row:
2010-05-07 09:38:23 +02:00
Ross Boucher
34ee33aea0
Merge commit '6f0ca9d94c217bc5e3c3' into bindings
2010-05-06 13:35:00 -07:00
Klaas Pieter Annema and Ross Boucher
2d93d12cad
Made bindings branch jake buildable
2010-05-06 13:33:38 -07:00
Ross Boucher
c43b80cb91
Make mouse wheel events work in CPWebView in Firefox 3+
2010-05-06 12:41:01 -07:00
Ross Boucher
542e491bb4
whitespace cleanup.
2010-05-06 11:26:56 -07:00
Klaas Pieter Annema and Ross Boucher
9c9eb519df
call willChange* and didChange* methods on the actual classes
2010-05-06 11:23:49 -07:00
Klaas Pieter Annema
0a96cb8eb3
call willChange* and didChange* methods on the actual classes
2010-05-06 17:36:11 +02:00
Klaas Pieter Annema
8e3e15080b
made CPDecimalCreateWithString work with empty string
2010-05-06 14:13:29 +02:00
Ross Boucher
90975c96f9
Updates for scrolling behavior in webview.
2010-05-05 14:05:09 -07:00
Klaas Pieter Annema
2fd85ab78f
made column reordering work with scrolled content
2010-05-05 14:08:06 +02:00
Klaas Pieter Annema
a0cf7d5787
made table column reordering work in non full-bridged apps
2010-05-05 12:56:23 +02:00
Klaas Pieter Annema
e7fc9d9912
fixed a bug where column reordering would break when the last column was hidden
2010-05-05 12:25:09 +02:00
Klaas Pieter Annema
bdb0fb1310
some cleanup
2010-05-05 12:24:05 +02:00
Klaas Pieter Annema
006f7e0c15
- fixed a out of bounds error when clicking in the table header outside of any column
...
- made the dragged table column appear gray
- gave the tablecolumn drag view a white background
2010-05-05 12:23:55 +02:00
Klaas Pieter Annema
93afa11ef9
- switch columns when the dragged column is more than halfway over the previous/next column
...
- constrain the horizontal coordinates within the header view
2010-05-05 12:23:07 +02:00
Klaas Pieter Annema
040e7bc9ee
- made the _dragViewForTableColumn:event:offset: method private
...
- removed the multiple column support from _dragViewForTableColumn:event:offset: (Cocoa doesn't allow multiple column selection / dragging)
- made the dragview the size of the dragged column
2010-05-05 12:23:00 +02:00
Klaas Pieter Annema
6bb8514253
- gave the drag column a proper 'image' representation
...
- constrained the drags y coordinates
- made sure a drag is never out of bounds
2010-05-05 12:22:53 +02:00
Klaas Pieter Annema
85283cff38
- refactored mouse interaction
...
- implemented basic column reordering
2010-05-05 12:22:42 +02:00
Klaas Pieter Annema
ef68408fff
refactored CPTableHeaderView mouse interaction
2010-05-05 12:22:36 +02:00
Klaas Pieter Annema
71104e4902
fixed CPTableView moveColumn:
2010-05-05 12:22:16 +02:00
Klaas Pieter Annema
fd625c96d6
made CPDecimalNumber a subclass of CPNumber
2010-05-05 12:14:55 +02:00
Klaas Pieter Annema
4f721fc1e2
added description to CPDecimalNumber
2010-05-05 12:13:47 +02:00
Klaas Pieter Annema
373210e610
fixed several global declarations of i in for loops
2010-05-05 12:13:24 +02:00
Klaas Pieter Annema
65362e727a
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-05 12:03:51 +02:00
Ross Boucher
5044ce4236
Add a doctype when creating new platform windows.
2010-05-04 22:55:06 -07:00
Francisco Ryan Tolmasky I
b4aca3410f
Merge branch 'master' of github.com:280north/cappuccino
2010-05-04 22:08:08 -07:00
Ross Boucher
b5971eae95
Missed this, it's no longer needed.
2010-05-04 19:09:06 -07:00
Tom Robinson
4b775796be
Add a test for capp gen, press, and flatten.
2010-05-04 15:41:50 -07:00
Tom Robinson
e97af776a0
Fix press/flatten due to changes to CFHTTPRequest.
2010-05-04 15:40:35 -07:00
Ross Boucher
e83e5b7c29
Only send open if we aren't already open
2010-05-04 15:04:51 -07:00
Francisco Ryan Tolmasky I
179ef85f4e
Final timer fix.
...
Reviewed by me.
2010-05-04 14:49:31 -07:00
Ross Boucher
5b4603b6a7
add missing ivar declaration to CPPlatformWindow
2010-05-04 13:53:56 -07:00
Francisco Ryan Tolmasky I
fc2560eb32
Fix for native drag and drop breaking across different window starts.
...
Reviewed by me.
2010-05-04 10:28:51 -07:00
Francisco Ryan Tolmasky I
2c23c0ffa7
Disable new timer stuff for CommonJS.
...
Reviewed by me.
2010-05-04 10:09:16 -07:00
Klaas Pieter Annema
fda974458e
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-04 15:55:17 +02:00
Francisco Ryan Tolmasky I
efe4d5f339
Merge branch 'master' of github.com:280north/cappuccino
2010-05-04 03:32:51 -07:00
Francisco Ryan Tolmasky I
032fe7cc0c
Fix for timers not working if they are created outside of a run loop.
...
Reviewed by me.
2010-05-04 03:32:16 -07:00
Randall Luecke
50c519ec69
Fixed issue with CPWebView where document.body didn't exist when reloaded quickly.
2010-05-03 17:34:12 -04:00
Tom Robinson
af566ec08a
Fix LoadTimeTest, location.host includes the port.
2010-05-03 00:25:35 -07:00
Ross Boucher
cb7879eecf
Make CFHTTPRequests re-fireable.
2010-05-02 12:58:36 -07:00
Ross Boucher
b1825334dd
If the vertical status changes, or the pane splitter status changes, we need to update the image value.
2010-05-01 20:40:38 -07:00
Ross Boucher
09727909b3
Fix for menuless windows. Closes #640 .
2010-05-01 14:47:43 -07:00
Ross Boucher
f98d3bd44b
Add global 403 handler for CFHTTPRequest, to make it easier to catch authentication challenges.
2010-05-01 11:57:32 -07:00
Ross Boucher
1545f7b60a
Return the cib created in CibLoading.j methods.
2010-04-29 15:38:33 -07:00
Ross Boucher
2453e403ef
Make nil a completely valid object in a CPArray.
...
Closes #630 .
2010-04-29 12:04:44 -07:00
Klaas Pieter Annema
2bb16c3617
Merge branch 'master' of git://github.com/280north/cappuccino
2010-04-29 14:28:16 +02:00
Klaas Pieter Annema
4ef9202e92
made the tableview handle hiding and showing of columns properly
2010-04-29 14:22:46 +02:00
Tom Robinson
22668b6b43
Use 127.0.0.1 instead of localhost in case localhost != loopback.
2010-04-28 02:23:07 -07:00
Francisco Ryan Tolmasky I
f9c786f3eb
Merge branch 'master' of git@github.com:280north/cappuccino
2010-04-28 02:06:48 -07:00
Francisco Ryan Tolmasky I
0f2ee1966e
Only create main menu in code if no cib is loaded.
...
Reviewed by me.
2010-04-28 02:06:01 -07:00
Tom Robinson
62e520a6a5
Some more NativeHost building enhancements.
2010-04-28 01:45:04 -07:00
Ross Boucher
2f9cf6bc9b
Add action buttons to button bars.
2010-04-27 22:11:17 -07:00
Ross Boucher
e03cfe8287
Missing printResults() in Jakefile for ThemeDescriptor template
...
Conflicts:
Tools/capp/Resources/Templates/ThemeDescriptor/Jakefile
2010-04-27 13:16:17 -07:00
Tom Robinson
0d97dfacd6
give zero sized borderless bridge windows a default size if we're not in the browser so they show up in NativeHost.
2010-04-27 12:56:24 -07:00
Francisco Ryan Tolmasky I
6ac0191451
Show main menu in cibless apps.
...
Remaining: Make a main menu with quit for desktop version, without for web version.
Reviewed by me.
2010-04-27 11:33:00 -07:00
Ross Boucher
f5b360f66c
Move a lot of common initialization code into the _init method.
2010-04-27 10:49:50 -07:00
Ross Boucher
1d5c21fa72
If we decode a scroll view without a header clip view, create one.
2010-04-27 10:49:50 -07:00
Klaas Pieter Annema
015aca9165
Merge branch 'master' of git://github.com/280north/cappuccino
2010-04-27 10:36:12 +02:00
Francisco Ryan Tolmasky I
d3e1c39e35
Merge branch 'master' of git@github.com:280north/cappuccino
2010-04-27 01:05:14 -07:00
Francisco Ryan Tolmasky I
ae47509aa7
Add convinience methods for dealing with multiple objects and controls.
...
Reviewed by me.
2010-04-27 01:04:46 -07:00
Tom Robinson
5ff798306f
Copy CFBundleIconFile in NativeHost building.
2010-04-26 23:19:05 -07:00
Ross Boucher
c41ffc14c7
checkboxes and radio buttons shouldn't be bold.
2010-04-26 21:36:45 -07:00
Ross Boucher
1e7a3bef0d
Fix a potential infinite loop in CPBrowser.
2010-04-26 12:56:52 -07:00
Nicholas Small
243f564396
Fix typo in new autoscroll stuff.
2010-04-26 11:11:42 -04:00
Tom Robinson
dae1e44a8f
Merge Cappuccino Info.plist into NativeHost's Info.plist.
2010-04-25 23:22:16 -07:00
Tom Robinson
67bcc29baf
NativeHost.
2010-04-25 22:33:31 -07:00
Ross Boucher
cdb089778c
autoscroll when drag selecting.
2010-04-25 15:43:23 -07:00
Ross Boucher
5e43a02ffa
Fix some faulty validation logic.
2010-04-25 15:43:22 -07:00
Ross Boucher
7395d13c3e
Typo in CPJSONPConnection.
2010-04-25 15:43:22 -07:00
Tom Robinson
f6000468db
Missing printResults function in ThemeDescriptor Jakefile.
2010-04-25 14:58:27 -07:00
Stephen Ierodiaconou and Ross Boucher
09e52d82bf
Code style clean up, as per style guide
2010-04-24 15:06:12 -07:00
Ross Boucher
0e98f44a93
Fix for IE transparent backgrounds not being resized.
...
Closes #604 .
2010-04-24 14:51:10 -07:00
Ross Boucher
6d595c1344
Collection view should tile itself to be the height of its superview if inside a clip view.
2010-04-24 11:10:58 -07:00
Ross Boucher
5f6f997095
Only attempt to scroll views, not windows.
2010-04-24 11:10:36 -07:00
Ross Boucher
6662fabcb8
Tests for the bug exposed in the previous cparray commit.
2010-04-23 16:43:22 -07:00
Stephen Ierodiaconou and Ross Boucher
7577cf8645
Fix error in initWithArray:copyItems:
2010-04-23 16:42:55 -07:00
Ross Boucher
8340791824
Don't let color wells work if they are disabled.
...
Closes #626 .
2010-04-23 16:34:47 -07:00
Ross Boucher
14f0d16fae
Update scrollWheel: to propagate unused scroll deltas to parent scroll views.
2010-04-23 16:16:46 -07:00
cacaodev and Ross Boucher
e1ad4a2fce
CPTableView: remove custom scrolling now that it's handled in the CPDragServer + CPClipView
2010-04-23 14:31:25 -07:00
Ross Boucher
f67580e2b2
Add support for automatically scrolling during drag and drop operations.
2010-04-23 14:00:47 -07:00
Ross Boucher
31f408478a
Update to scrolling behavior.
2010-04-23 12:03:25 -07:00
Klaas Pieter Annema
fd93b6e5f7
Merge branch 'master' of git://github.com/280north/cappuccino
2010-04-23 16:34:59 +02:00
Klaas Pieter Annema
39bb8e3418
added enumerateWithBlock: to CPArray
2010-04-23 16:34:40 +02:00
Randall Luecke
ab6d5d6a90
Added connectionDidFinsihLoading delegate to CPJSONPConnection
2010-04-23 01:29:46 -04:00
Ross Boucher
6b3600d67b
Slight update to button bar theme values.
2010-04-22 11:50:06 -07:00
Francisco Ryan Tolmasky I
bf8ff44b84
Merge branch 'master' of git@github.com:280north/cappuccino
2010-04-21 22:56:21 -07:00
Francisco Ryan Tolmasky I
72a3888062
Add ObjectiveJ global to CommonJS so that references to it aren't broken in Cappuccino.
...
Reviewed by me.
2010-04-21 22:55:46 -07:00
Ross Boucher
4479233bea
Return nil fonts if they are the aristo default, so that the theme default is used instead of the arist default (for custom themes).
2010-04-21 20:57:53 -07:00
Alexander Ljungberg and Ross Boucher
a7021e6b66
Fixed a parameter type typo.
2010-04-21 15:48:47 -07:00
Alexander Ljungberg and Ross Boucher
0f5dd9d469
[CPSet description] with unit test.
2010-04-21 15:48:39 -07:00
Alexander Ljungberg and Ross Boucher
388f008189
Fixed: CPCollectionView frameForItemsAtIndexes used the deprecated method rectForItemAtIndex causing warnings.
2010-04-21 15:47:48 -07:00
Alexander Ljungberg and Ross Boucher
639a32ea7e
CPWindow alpha value support.
2010-04-21 15:47:25 -07:00
Alexander Ljungberg and Ross Boucher
5838f1aec8
Implemented CPCoding for CPNull.
2010-04-21 15:36:29 -07:00
Ross Boucher
d2399b6157
Add support for not clipping to bounds in cpview.
2010-04-21 14:15:05 -07:00
Ross Boucher
b1282b4362
Fix an infinite recursion bug in CPBrowser, and add support for looking up a column/row by location.
2010-04-21 12:58:31 -07:00
Francisco Ryan Tolmasky I
bbd402fcff
Partial fix for HTML5 drag and drop with collection views.
...
Reviewed by me.
2010-04-20 23:51:18 -07: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
Tom Robinson
a18fb1b686
Add manifest generation options to press and flatten, since manifests need to be updated after each is run.
2010-04-12 13:47:38 -07:00
Alexander Ljungberg and Ross Boucher
3cb3bfc008
Fixed: CPArrayController selectionIndexes returned nil initially rather than an empty index set.
2010-01-08 09:58:54 -08:00
Stephen Ierodiaconou
0ddb17862c
Merge branch 'master' of git://github.com/280north/cappuccino into CPDecimalNumber
2009-11-28 17:02:43 +00:00
Stephen Ierodiaconou
aae415c1ee
Merge branch 'master' of git://github.com/280north/cappuccino into CPDecimalNumber
2009-10-18 21:05:19 +01:00
Stephen Ierodiaconou
c79b2456f5
Some style changes to CPDecimal
2009-10-16 12:35:59 +01:00
Stephen Ierodiaconou
5104d323bb
Merge branch 'master' of git://github.com/280north/cappuccino
2009-10-14 14:30:13 +01:00
Stephen Ierodiaconou
80c4be6e5f
Merge branch 'master' of git://github.com/280north/cappuccino
2009-10-11 19:34:13 +01:00
Stephen Ierodiaconou
970859311d
Merge branch 'master' of git://github.com/280north/cappuccino
2009-10-09 15:21:43 +01:00
Stephen Ierodiaconou
449581e7c4
Merge branch 'master' of git://github.com/280north/cappuccino
2009-10-08 21:39:23 +01:00
Stephen Ierodiaconou
02a8fc7f72
Merge branch 'master' of git://github.com/280north/cappuccino
2009-10-08 21:32:59 +01:00
stevegeek
7bbeee8234
Merge branch 'master' of git://github.com/280north/cappuccino
2009-10-02 14:22:33 +01:00
stevegeek
00532fe7ac
First CPDecimal and CPDecimalNumber commits (and tests).
...
These implementations are mostly complete but require optimisation.
2009-09-28 13:59:18 +01:00
stevegeek
073a934b2b
Merge branch 'master' of git://github.com/280north/cappuccino
2009-09-28 11:55:10 +01:00
stevegeek
ea7631de9e
Merge branch 'master' of git://github.com/280north/cappuccino
2009-09-23 23:20:19 +01:00
Ross Boucher
3635d0ec26
Bindings Checkpoint.
2009-09-21 13:27:50 -07:00
stevegeek
81e15c91f4
Merge branch 'master' of git://github.com/280north/cappuccino
2009-09-21 09:30:21 +01:00
Ross Boucher
105bb7512f
Merge branch 'master' of git@github.com:280north/cappuccino into bindings
2009-09-20 22:55:19 -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
Stephen Ierodiaconou
b8afbb66a7
Merge branch 'master' of git://github.com/280north/cappuccino
2009-09-20 10:35:33 +01:00
Francisco Ryan Tolmasky I
08ed16c493
Made CPObjectController's contentObject binding bidirectional.
...
Reviewed by me.
2009-07-22 23:54:38 -07:00
Francisco Ryan Tolmasky I
734efdf343
Merge branch 'master' into bindings
2009-07-22 19:40:23 -07:00
Francisco Ryan Tolmasky I
1195678893
Removed Framework directories from bindings tests.
...
Reviewed by me.
2009-07-22 17:54:53 -07: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
stephen
9e9eba695f
Merge branch 'master' of git://github.com/280north/cappuccino
...
Conflicts:
Foundation/CPArray.j
Foundation/CPAttributedString.j
Foundation/CPCountedSet.j
Foundation/CPIndexSet.j
Foundation/CPJSONPConnection.j
Foundation/CPSet.j
Foundation/CPTimer.j
2009-05-31 12:09:43 +01:00
Stephen Ierodiaconou
c6e3cad944
Update to docs of replaceCharactersInRange in CPAttributedString.
2009-05-28 01:51:19 +01:00
Stephen Ierodiaconou
3af0e3249a
Added a new group Cocoa Compatability for the empty compatability
...
classes like CPMutableArray
2009-05-28 01:34:40 +01:00
Stephen Ierodiaconou
510a836b90
Added briefs to all Foundation and made some cleanups to docs
2009-05-28 01:24:48 +01:00
Stephen Ierodiaconou
25f415045a
All Foundation classes briefed
2009-05-28 01:14:27 +01:00
Stephen Ierodiaconou
0af9c18ef2
adding briefs and unifying class header structure
2009-05-28 00:15:57 +01:00
Ross Boucher
18cf198592
Beginnings of a simple array controller test app.
2009-02-19 01:36:40 -08:00
Ross Boucher
9bbe51fa64
CPArrayController works simply with bindings and arrangedObjects
2009-02-19 01:29:39 -08:00
Ross Boucher
4de3a34a3e
CPObjectController now works, as do bindings and CPControls.
2009-02-16 00:37:50 -08:00
Ross Boucher
c028425f14
More bindings fixes.
2009-02-09 17:35:25 -08:00
Ross Boucher
7d03d8a58f
Some test apps for bindings.
2009-02-07 13:00:27 -07:00
Ross Boucher
db0e88d8a7
Various fixes.
2009-02-07 12:59:50 -07:00
Ross Boucher
1b8aca26a3
In progress work on bindings.
2009-02-07 12:55:15 -07:00
Ross Boucher
b239053810
First take at CPController, CPObjectController.
2009-02-07 12:55:05 -07:00
Ross Boucher
1acb130be1
Add preliminary support for Key Value Bindings to Cappuccino.
2009-02-07 12:54:59 -07:00