Stefan Eilers
5c69589355
Merge remote-tracking branch 'Slevenbits/master' into slevenbits-master
2013-01-02 14:45:22 +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
Stefan Eilers
c7e0341c2c
Merge remote-tracking branch 'Slevenbits/master' into slevenbits-master
2012-12-26 21:33:40 +01: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
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
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
Stefan Eilers
a61db69dea
Merge branch 'master' of git://github.com/slevenbits/cappuccino into slevenbits-master
2012-12-14 16:33:55 +01: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
Stefan Eilers
f974955d4b
Fix "jake release"
2012-12-13 17:06:15 +01: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
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
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
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
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
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
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
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
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
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
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
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
aparajita
4c86c75b5f
Merge pull request #1635 from wmeddie/patch-1
...
Removed tailing comma from CPColorWithImages call.
2012-07-27 10:18:56 -07: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
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
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
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
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
Alexander Ljungberg
7e562fa3aa
Fixes #1624 . Fix grouping for CPNumberFormatter.
2012-07-21 13:08:54 +01: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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Aparajita Fishman
6293380406
Let jake proceed if a man page cannot be copied
2012-04-10 22:42:46 -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
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
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
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
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
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
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
Francisco Ryan Tolmasky I
6a72e1b6ff
Merge branch 'master' of git@github.com:280north/cappuccino
2010-04-12 12:22:25 -07:00
Francisco Ryan Tolmasky I
b3141f1a62
Add CPApplicationWillTerminateNotification.
...
Reviewed by me.
2010-04-12 12:21:45 -07:00
Randall Luecke
aea8f1f0dc
Added proper background color to the tableview.
2010-04-12 02:09:46 -04:00
Francisco Ryan Tolmasky I
8aecf880e5
Merge branch 'master' of git@github.com:280north/cappuccino
2010-04-09 22:22:55 -07:00
Francisco Ryan Tolmasky I
7d5ce51910
Upped the version number to 0.8.1.
...
Reviewed by me.
2010-04-09 22:22:35 -07:00
Ross Boucher
cfc8ccafce
Remove typo.
2010-04-09 14:56:54 -07:00
Kelly McDonald and Ross Boucher
e11dfc2875
CPDragServer was checking the selector on the delegate of draggedImage:endAt:operation: but calling draggedImage:endedAt:operation:. I changed so that it uses endedAt to better reflect what is done in cocoa
2010-04-09 14:56:43 -07:00
Ross Boucher
b3ef31ad05
Fixed: [CPArray isEqualToArray:nil] threw an exception instead of returning NO.
...
Conflicts:
Foundation/CPArray.j
Tests/Foundation/CPArrayTest.j
2010-04-09 14:51:46 -07:00
Ross Boucher
70410d6311
Fix the buttonNumber method of CPEvent.
...
Closes #70 .
2010-04-09 14:38:08 -07:00
Ross Boucher
4cc7dec35b
Throw syntax error for # followed by anything other than pragma.
2010-04-09 14:34:02 -07:00
Ross Boucher
47ecd40c4f
Made the pre-processor capable of recognizing and ignoring Xcode's '#pragma mark' mark-ups
...
Conflicts:
Objective-J/Preprocessor.js
2010-04-09 14:26:29 -07:00
saikat and Ross Boucher
489f2bcfa0
Reverting 1c9763eaa8 - autoresizing the contentview breaks sizetofit
2010-04-09 14:18:20 -07:00
Ross Boucher
16590e0603
Closes #590 .
...
Closes #594 .
2010-04-09 14:17:11 -07:00
Paul Baumgart and Ross Boucher
f50cda9abc
change CPAccordionItem to CPAccordionViewItem in CPAccordionView
...
selector types. Closes gh-596.
2010-04-09 13:58:05 -07:00
Francisco Ryan Tolmasky I
7543968203
Merge branch 'master' of git@github.com:280north/cappuccino
2010-04-08 23:59:00 -07:00
Francisco Ryan Tolmasky I
54685b1f36
One additional fix for IE not loading in certain occasions.
...
Reviewed by me.
2010-04-08 23:58:47 -07:00
Francisco Ryan Tolmasky I
abdc601d92
Fix for IE not loading bug.
...
Reviewed by me.
2010-04-08 23:58:31 -07:00
Tom Robinson
9f50f08065
Add automated HTML5 cache manifest generation. Disabled by default.
2010-04-07 22:46:23 -07:00
Tom Robinson
aabb1fa6f2
Move CPCursor test out of Resources.
2010-04-07 16:03:42 -07:00
Tom Robinson
4b770714bd
Update starter task to include version of bootstrap which installs Cappuccino packages.
2010-04-06 12:54:23 -07:00
Ross Boucher
8175dbca53
Updates to the Jakefile and capp gen.
2010-04-06 12:26:35 -07:00
Tom Robinson
c91332afb4
Add the other MobileSafari meta/link tags.
2010-04-05 20:09:04 -07:00
Tom Robinson
08fb1b33b4
Add viewport tag to templates. Fixes drawing errors on MobileSafari.
2010-04-05 18:14:04 -07:00
Ross Boucher
cd6b6afc65
Don't convert text fields to bold default system font.
2010-04-05 10:38:20 -07:00
Tom Robinson
cd4a70ea78
Add hook to CPApplicationMain to notify parent frame (if app is in a child frame of same origin)
2010-04-04 18:39:47 -07:00
Tom Robinson
eb24ba9835
Re-enable flatten compression by default.
2010-04-01 23:48:48 -07:00
Tom Robinson
468869821f
Add charset attributes to all external script tags, including flatten. Fixes unicode bugs in flatten.
2010-04-01 23:41:08 -07:00
Tom Robinson
0c85dbf9b0
Add some charset options, and disable compressor by default.
2010-04-01 23:15:47 -07:00
Tom Robinson
2db47e413e
Add comrpessor support to flatten.
2010-04-01 12:01:16 -07:00
Tom Robinson
b8fddc98bf
Fixes flatten, splitting mode. Also escape dollar signs before replacing.
2010-04-01 11:12:08 -07:00
Tom Robinson
467f798147
Fixes flatten, non-splitting mode.
2010-04-01 11:11:58 -07:00
Ross Boucher
374f3d13f1
Convert default IB fonts to default Cappuccino fonts
2010-03-31 21:31:09 -07:00
Tom Robinson
b0a35a183f
Only enable debug logger in browsers, not command line utilities.
2010-03-31 17:28:46 -07:00
Francisco Ryan Tolmasky I
74e349ed33
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-31 17:05:32 -07:00
Francisco Ryan Tolmasky I
c57aa2ac5e
Fix for menu bar being broken if displayed after a window is ordered front in IE.
...
Reviewed by me.
2010-03-31 17:04:35 -07:00
Ross Boucher
acac29dcda
Merge branch 'master' of github.com:280north/cappuccino
2010-03-31 16:37:16 -07:00
Paul Baumgart and Tom Robinson
675969af6d
Add some dependency checking to bootstrap.sh: make sure correct JVM is
...
being used and ensure other dependencies are installed and on the $PATH.
2010-03-31 15:00:09 -07:00
Tom Robinson
ce32177e1d
Use "CommonJS" task as the dependency for "test" task for now.
2010-03-31 13:53:09 -07:00
Randall Luecke
e956d61a08
Fixed bug introduced by renaming of private class.
2010-03-31 16:41:13 -04:00
Alexander Ljungberg and Ross Boucher
068cdb9817
CPNull valueForKey:X returns CPNull for any value of X, paralleling [nil valueForKey:X]. Verified against Cocoa through empirical testing.
2010-03-31 13:17:42 -07:00
Randall Luecke
0ec7d4cd9a
Made drag feedback view in the tableview more correct, fixed encoding issues.
...
Conflicts:
AppKit/CPTableView.j
2010-03-31 16:11:10 -04:00
Nicholas Small
6a8126337c
Added right click responder methods and context menu support.
2010-03-31 15:56:18 -04:00
Ross Boucher
12db25a829
Fix for a potential error in IE when setting a width to a negative value.
2010-03-31 12:11:21 -07:00
Ross Boucher
a347bfb8b1
Sprite images recursively.
2010-03-31 11:10:17 -07:00
Francisco Ryan Tolmasky I
9255af210c
Fix for loading Cappuccino apps locally on Windows.
...
Reviewed by me.
2010-03-30 16:28:42 -07:00
Tom Robinson
0b3264a99d
Enable default logger in debug frameworks. Add configurable options to index-debug.html.
2010-03-30 14:12:59 -07:00
Ross Boucher
2bf16da441
These menu key equivs were incorrect.
2010-03-30 11:10:36 -07:00
Ross Boucher
5c4d890100
Fix a nil variable error that caused problems in Firefox 2.
2010-03-30 10:52:48 -07:00
Francisco Ryan Tolmasky I
99282026fa
One more fix for image spriting.
...
Reviewed by me.
2010-03-30 00:45:11 -07:00
Francisco Ryan Tolmasky I
8f4b2a7cfd
Fail more gracefully when main cib is not found.
...
Reviewed by me.
2010-03-29 23:20:31 -07:00
Randall Luecke
c78feda3d6
Fixed nib2cib bug with cornerview where resources were not loaded from the correct location.
2010-03-30 01:45:36 -04:00
Francisco Ryan Tolmasky I
a279d62c88
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-28 11:40:38 -07:00
Francisco Ryan Tolmasky I
8d1f787179
Fix for a few minor regressions:
...
1. Split out flatten specific code to get file size back down.
2. Fix for non-native string URL not working with the URLCache (typeof x !=== "string")
3. Fix for slight IE performance regression.
Reviewed by me.
2010-03-28 11:39:36 -07:00
Ross Boucher
7ab41cf195
If there is no key window or no main window make the first opened window those things.
2010-03-28 09:03:33 -07:00
Ross Boucher
df728b7a21
Support terminating method signatures with ;. Closes #416 .
2010-03-28 08:51:35 -07:00
Francisco Ryan Tolmasky I
cba26faf9b
Fix for HelloWorld not flattening correctly.
...
Reviewed by me.
2010-03-27 19:31:16 -07:00
Francisco Ryan Tolmasky I
c4c1cffc01
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-27 18:53:03 -07:00
Francisco Ryan Tolmasky I
321706e5c6
Fix for user code errors during load not being reported (Cappuccino failing silently).
...
Reviewed by me.
2010-03-27 18:52:19 -07:00
Ross Boucher
47bf4c0baa
Finish split view cursor implementation.
...
Closes #494 .
2010-03-27 15:47:10 -07:00
Alexander Ljungberg and Ross Boucher
fc628c1221
CPSplitView resize cursors now require [[self window] setAcceptsMouseMovedEvents:YES]; to be called manually pending a CPTrackingArea based implementation.
2010-03-27 15:47:10 -07:00
Ross Boucher
eb6a03704a
Proper resize cursors for CPSplitView. Also enables resize cursor for additionalEffectiveRectOfDividerAtIndex areas.
...
Conflicts:
AppKit/CPSplitView.j
2010-03-27 15:47:10 -07:00
Francisco Ryan Tolmasky I
7b855e6c68
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-27 13:56:35 -07:00
Francisco Ryan Tolmasky I
fe0818c612
Don't generate image files if there aren't any.
...
Reviewed by me.
2010-03-27 13:54:07 -07:00
Ross Boucher
74dabcae8a
Update the CPDictionary test suite.
2010-03-27 13:52:44 -07:00
Emmanuel Maillard and Ross Boucher
daf7870bab
- add containsKey: method
2010-03-27 13:41:32 -07:00
Ross Boucher
64da7f8775
define out DOM code from _CPImageAndTextView.
...
Closes #562 .
2010-03-27 13:37:13 -07:00
aburkhalter and Ross Boucher
6cfa11a94d
Initial boilerplate and file for putting the untested (at least not directly) CPView.j under test. Initial test to confirm we can actually create the object and a test demonstrating issue #562 .
2010-03-27 13:33:04 -07:00
Ross Boucher
db3c6c1463
A few minor updates to the pathExtension patch.
2010-03-27 13:25:44 -07:00
Emmanuel Maillard and Ross Boucher
65a669a9a1
- correct pathExtension and stringByDeletingPathExtension
2010-03-27 13:23:55 -07:00
Emmanuel Maillard and Ross Boucher
33f56bb203
- implement stringByDeletingPathExtension
2010-03-27 13:23:32 -07:00
Emmanuel Maillard and Ross Boucher
1ff873e170
- add tests for pathExtension and stringByDeletingPathExtension
2010-03-27 13:22:36 -07:00
Ross Boucher
b0e0156880
Fix support for initial first responder.
2010-03-27 13:08:47 -07:00
Ross Boucher
896f36dffb
A better (but not perfect) way to handle the browser's first responder state.
2010-03-27 11:27:44 -07:00
Ross Boucher
eae975652e
Add default line break mode.
2010-03-26 16:59:02 -07:00
Ross Boucher
e46d1a793c
autoresize the cpbrowser test browser.
2010-03-26 16:41:33 -07:00
Ross Boucher
1c9763eaa8
CPBox should autoresize its content view.
2010-03-26 16:41:23 -07:00
Ross Boucher
686370ac0e
Add convenience accessors for the browser's selected items.
2010-03-26 15:52:53 -07:00
Ross Boucher
e4ca057e4c
Fix import directives.
2010-03-26 14:27:46 -07:00
Ross Boucher
ac5a0e3dfc
Add CPBrowser manual test app.
2010-03-26 14:00:51 -07:00
Ross Boucher
a580b522e3
Add initial CPBrowser implementation.
2010-03-26 14:00:30 -07:00
Ross Boucher
af53c271c7
Fix a few naming convention violations.
...
Make dragView.... use the columns its passed, rather than computing from scratch.
2010-03-26 13:59:41 -07:00
Ross Boucher
4476dad395
Whitespace fix.
2010-03-26 10:36:08 -07:00
Emmanuel Maillard and Ross Boucher
b7b2dd2915
- CGPathAddQuadCurveToPoint fix for an unknown variable when using a transformation matrix
2010-03-26 10:36:08 -07:00
Francisco Ryan Tolmasky I
efb6a0f5c6
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-26 01:31:39 -07:00
Francisco Ryan Tolmasky I
deba653661
Fix for unrecognized selector in CPURL's initWithCoder:.
...
Reviewed by me.
2010-03-26 01:30:50 -07:00
Ross Boucher
eb831dc4ac
Typo. Closes #572 .
2010-03-25 10:40:37 -07:00
Scott Kyle and Ross Boucher
b0d355a71c
Some somewhat minor style fixes
2010-03-24 19:46:38 -07:00
Ross Boucher
af11b4e423
Fix for pattern images not being displayed correctly under the new background color system
2010-03-23 14:32:24 -07:00
Ross Boucher
0cf86318ce
Make semi-transparent background colors work in browsers that don't support RGBA.
...
Closes #569 .
2010-03-23 14:26:32 -07:00
Ross Boucher
4175b762c3
Disable new syntax check while we work out the build issue some people are having.
2010-03-23 13:29:55 -07:00
Ross Boucher
3ddcb5f118
Remove duplicate method declaration.
2010-03-23 13:29:43 -07:00
Ross Boucher
d0ad865976
Add the with{} back in for Class methods, instead take the disallowed list from objj_class.
2010-03-23 11:21:59 -07:00
Ross Boucher
7013b34897
Add a few additional syntax checks.
...
Throw an error if a method uses a parameter name that is also an ivar name.
Stop using with{} block for class methods.
2010-03-23 11:21:59 -07:00
Ross Boucher
bbbae36e6a
Missing - on a method.
2010-03-23 11:21:59 -07:00
Francisco Ryan Tolmasky I
34c3a9530b
Fixed a bug where CPKeyedUnarchiver would incorrectly unarchive 0 as null.
...
Reviewed by me.
2010-03-23 02:06:44 -07:00
Francisco Ryan Tolmasky I
78cb522874
Temporarily revert "Make semi-transparent background colors work in browsers that don't support RGBA."
...
This fix was making lots of resources not show up.
This reverts commit f8c13f1e30 .
2010-03-23 01:22:59 -07:00
Francisco Ryan Tolmasky I
e8a0d2acf6
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-23 00:04:59 -07:00
Ross Boucher
f8c13f1e30
Make semi-transparent background colors work in browsers that don't support RGBA.
...
Closes #569 .
2010-03-22 19:00:49 -07:00
Randall Luecke
4b272a76fd
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-22 19:27:13 -04:00
Randall Luecke
f73d96af08
Fixed black background of dragview in Opera and IE.
2010-03-22 19:24:32 -04:00
Scott Kyle and Ross Boucher
bb0835e2f3
CPImageView should send action on drop, as in Cocoa
2010-03-22 16:15:02 -07:00
Ross Boucher
ef4c108b9e
Date test wasn't accurately accounting for daylight savings time.
2010-03-22 15:08:29 -07:00
Ross Boucher
319b9ed00f
Use === not ==.
2010-03-22 14:53:49 -07:00
Alan Rogers and Ross Boucher
35b62ca53f
Updated test and fix for gh issue #539
2010-03-22 14:53:07 -07:00
Alan Rogers and Ross Boucher
4e1e6f3c0b
Little fix for CPDictionary, we should not try and recursively convert null JSON objects.
2010-03-22 14:52:55 -07:00
Alan Rogers and Ross Boucher
c8f3445fa6
Adding a unit test to verify fix to +[CPDictionary dictionaryWithJSObject:(JSObject)object recursively:(BOOL)recursively]
2010-03-22 14:52:49 -07:00
Emmanuel Maillard and Ross Boucher
7aa1ae6bd4
- fix typo
2010-03-22 14:43:53 -07:00
Emmanuel Maillard and Ross Boucher
58179939bb
- fix a typo in documentation
2010-03-22 14:43:31 -07:00
Scott Kyle and Ross Boucher
5d3eae9022
deleteBackwards: => deleteBackward:
2010-03-22 14:30:48 -07:00
aburkhalter and Ross Boucher
05f8a10b3d
Trivial syntax fixes.
2010-03-22 14:29:27 -07:00
Francisco Ryan Tolmasky I
6843df410a
Fix for empty data URLs, MHTML, etc. files being created when no image resources exist, causing a useless xhr.
...
Reviewed by me.
2010-03-21 14:30:31 -07:00
Randall Luecke
f324577014
Fixed default height in tableheader for Nib2Cib.
2010-03-21 02:54:14 -04:00
Tom Robinson
df8357e1fc
Add --split option to flatten. Asynchronously load multiple flattened files.
2010-03-20 23:38:40 -07:00
Tom Robinson
35d14939c4
Fix for flatten in Firefox (silly security restriction makes onreadystatechange not readable)
2010-03-20 22:32:11 -07:00
Francisco Ryan Tolmasky I
f2c19ad403
Slight fix for collectionView:canDragItemsAtIndexes:withEvent: not passing the correct event.
...
Reviewed by me.
2010-03-20 20:58:08 -07:00
Francisco Ryan Tolmasky I
ed9fee3038
Added collectionView:canDragItemAtIndexes:forEvent:.
...
Reviewed by me.
2010-03-20 20:56:37 -07:00
Francisco Ryan Tolmasky I
58e31b9cb4
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-19 12:25:39 -07:00
Francisco Ryan Tolmasky I
401ee3fd94
Added itemAtIndex: to CPCollectionView and updates API names.
...
Reviewed by me.
2010-03-19 12:24:07 -07:00
Randall Luecke
43b601af9b
Fixed TableTest for IE.
2010-03-17 21:07:47 -04:00
Francisco Ryan Tolmasky I
5581dd71fa
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-17 01:17:50 -07:00
Tom Robinson
d8fb849691
Refactor objj_eval to work in the browser. Move from CommonJS-specific code to Objective-J proper.
2010-03-16 23:57:37 -07:00
Tom Robinson
5f4281b851
Add default theme to flattened app, "-P" option for specifying other inlined files.
2010-03-16 22:38:30 -07:00
Tom Robinson
24ab176236
Make asyncLoader a configurable option on exports.
2010-03-16 22:38:30 -07:00
Tom Robinson
9c342ca19c
Fix objj_eval (used in objj REPL, etc).
2010-03-16 22:38:30 -07:00
Randall Luecke
3ee3acc948
Fixed failed TableCibTest in Firefox.
2010-03-17 00:11:36 -04:00
Randall Luecke
9bdc5fa0fe
Various nib2cib improvements on the tableview.
2010-03-16 22:49:38 -04:00
Randall Luecke
d7a7d8e2ae
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-16 22:47:40 -04:00
Ross Boucher
5a9682b1bd
Remove two calls to a dead function.
2010-03-16 18:13:57 -07:00
Randall Luecke
3c97903ed0
Fixed Nib2Cib selection color for the tableview.
2010-03-16 19:34:04 -04:00
Ross Boucher
c9cf21be80
Fix for sizeWithFont: in Internet Explorer.
2010-03-16 16:01:44 -07:00
Tom Robinson
f0818d94e9
Typo in window.clearNativeInterval.
2010-03-16 15:44:45 -07:00
Francisco Ryan Tolmasky I
831555cf5a
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-15 02:33:36 -07:00
Randall Luecke
e0483e316e
Fixed bug with nib2cib tableviews loading incorrect resources.
2010-03-14 17:24:36 -04:00
Ross Boucher
c1fe45cbcd
Add a way to tell a CPSplitView about a button bar for a specific divider index,
...
which mitigates the need to use additional effective rect delegate method when
using a split view + button bar.
2010-03-14 12:32:52 -07:00
Ross Boucher
ef7ad8ee8e
A few minor bug fixes for key/main window handling.
2010-03-13 22:49:06 -08:00
Ross Boucher
0ed7d46926
Add encoding support for CPButtonBar.
2010-03-13 22:49:06 -08:00
Tom Robinson
ac69879fba
Update flatten to use new file/function caching system.
2010-03-13 21:42:51 -08:00
Tom Robinson
50e779ef5a
Add CFHTTPRequest and FileExecutable hooks for inlining files and module functions (for flatten). Removed hook used by flatten.
2010-03-13 21:35:15 -08:00
Tom Robinson
0032af1468
Merge branch 'master' of github.com:280north/cappuccino
2010-03-13 19:05:10 -08:00
Ross Boucher
cf1c369dc3
Rewrite of CPButtonBar. Now it will automatically layout the buttons, and the position
...
and visibility of the resize control is configurable.
Also has class methods for plusButton and minusButton. API subject to change.
2010-03-13 17:37:28 -08:00
Tom Robinson
ece7996895
Cleanup flatten, use resourceAtURL instead of manually walking path.
2010-03-13 01:17:47 -08:00
Randall Luecke
3cdfc1192a
Fixes flickering issues with CPTableView if you hold the command key and drag. Closes #544
2010-03-13 00:07:00 -05:00
Ross Boucher
8b8998a2b9
Don't encode the search/cancel buttons. They add bloat and complicate the process.
2010-03-12 19:46:05 -08:00
Tom Robinson
677cf9e1df
Change FileRequest to always use CFHTTPRequest and make async/sync configurable. Preparation for "flatten" changes.
2010-03-12 19:40:27 -08:00
Ross Boucher
a08d4c6a06
Whitespace error.
2010-03-12 18:55:44 -08:00
aburkhalter and Ross Boucher
e1e344dad1
Missing semi-colon.
2010-03-12 18:54:05 -08:00
aburkhalter and Ross Boucher
b9427f84ae
Fixes testShiftIndexesStartingAtIndex. Upward shifting no longer throws.
2010-03-12 18:53:58 -08:00
Andrew Burkhalter and Ross Boucher
dc9d79bc3d
Adding failing test demonstrating that CPIndexSet throws with negative delta (e.g. shifting indexes at starting point upwards). Simple downward shift example included and working successfully.
...
Misc method reorganization with test suite so it's a bit more intuitive.
2010-03-12 18:50:35 -08:00
Ross Boucher
503ce5502e
Fix nib2cib support for CPSearchField
2010-03-12 18:49:37 -08:00
Tom Robinson
0e4d476d76
Add guard div to protect against iframes consuming events during tracking.
2010-03-12 17:25:19 -08:00
Francisco Ryan Tolmasky I
cc2d579bc9
Merge branch '0.8.0' of git@github.com:280north/cappuccino
2010-03-12 03:33:21 -08:00
Tom Robinson
94bf2a36cf
Updated flatten to work with new loader changes.
2010-03-11 15:56:58 -08:00
Tom Robinson
63127bf9c3
Fix CFBundle path deprecation warning and absoluteString not found.
2010-03-11 14:35:06 -08:00
Ross Boucher
033765e866
temporary fix for whiteSpace style issue in IE.
2010-03-11 14:28:31 -08:00
Ross Boucher
1634e4562a
Update the template files to more modern standards.
2010-03-11 14:28:22 -08:00
Ross Boucher
ed66d78585
Update the template files to more modern standards.
2010-03-11 14:27:15 -08:00
Ross Boucher
39e1514620
temporary fix for whiteSpace style issue in IE.
2010-03-11 14:18:24 -08:00
Randall Luecke
10b7eb83f1
Fixed previous commit so it doesn't break buttons in the tableview.
2010-03-09 23:52:08 -05:00
Randall Luecke
672be3991d
Merge branch '0.8.0' of git://github.com/280north/cappuccino into 0.8.0
2010-03-09 23:49:03 -05:00
Randall Luecke
b350c2be91
Fixed previous commit so it doesn't break buttons in the tableview.
2010-03-09 19:19:25 -05:00
Tom Robinson
68ab5bd4e7
Typo in CI script.
2010-03-09 16:12:13 -08:00
Tom Robinson
bd21153300
Typo in CI script.
2010-03-09 16:07:39 -08:00
Tom Robinson
9cca7ead17
Factor out nightly build portion of CI script so not all branches push builds
2010-03-09 15:35:53 -08:00
Tom Robinson
4b1bf1fe65
Factor out nightly build portion of CI script so not all branches push builds
2010-03-09 15:32:13 -08:00
Randall Luecke
6d353f378d
Fixed bug where editable tableview would not honor setEditable:NO for columns unless resized. closes #426
2010-03-09 14:43:12 -05:00
Randall Luecke
cc2bb8f496
Fixed bug where editable tableview would not honor setEditable:NO for columns unless resized. closes #426
2010-03-09 14:39:26 -05:00
cacaodev and Randall Luecke
20853e3ad7
CPTableView & al. : change CPThemeStateHighlighted to CPThemeStateSelected to avoid conflicts with CPControl -highlight: method.
2010-03-09 11:43:37 -05:00
appden and Randall Luecke
67def34e29
Added semi-colons to global vars and removed accidental gloabl variable.
2010-03-09 03:22:02 -05:00
appden and Randall Luecke
54549b61e1
Added semi-colons to global vars and removed accidental gloabl variable.
2010-03-09 03:20:00 -05:00
Tom Robinson
3e7c3e952b
Merge branch '0.8.0' of github.com:280north/cappuccino into 0.8.0
2010-03-08 19:03:14 -08:00
Francisco Ryan Tolmasky I
e6411d7d90
Fix for classes declared in subfolders reporting wrong bundle (fictional).
...
Reviewed by me.
2010-03-08 18:27:43 -08:00
Francisco Ryan Tolmasky I
9e7d0d3183
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-08 18:23:36 -08:00
Francisco Ryan Tolmasky I
3ae4b1cf19
Fix for classes declared in subfolders reporting wrong bundle (fictional).
...
Reviewed by me.
2010-03-08 18:22:53 -08:00
Ross Boucher
2841223c9d
Create the args and namedArgs objects in Bootstrap.js, pass them along up to CPApplication.
2010-03-08 15:14:09 -08:00
Tom Robinson
ba713b8b06
Use getCappuccinoVersion() in various Jakefiles instead of hardcoded versions.
2010-03-08 15:10:08 -08:00
Tom Robinson
c53bff288a
Add a central version.json file. Change package building to insert version, revision, and timestamp. Auto-push tags.
2010-03-08 15:10:08 -08:00
Ross Boucher
d85e8798c2
Create the args and namedArgs objects in Bootstrap.js, pass them along up to CPApplication.
2010-03-08 15:00:52 -08:00
Randall Luecke
6dbb4eedb7
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-08 10:56:56 -05:00
Francisco Ryan Tolmasky I
33b4b94426
Fix for loading bundles generating multiple did load callbacks.
...
Reviewed by me.
2010-03-08 01:03:52 -08:00
Francisco Ryan Tolmasky I
3fc99095e2
Fix bug in keyed unarchiving.
...
Reviewed by me.
2010-03-07 23:48:23 -08:00
Randall Luecke
8410198c37
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-08 00:58:28 -05:00
Francisco Ryan Tolmasky I
d1b325052d
Fixed incorrect import.
...
Reviewed by me.
2010-03-07 21:56:29 -08:00
Randall Luecke
4c4b42833a
Added -selectedColumn to the tableview.
2010-03-08 00:00:28 -05:00
Randall Luecke
519a9300e2
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-07 23:39:41 -05:00
Tom Robinson
91dda1f759
Remove warning from press.
2010-03-07 18:24:45 -08:00
Tom Robinson
65e12269d1
Fix flatten
2010-03-07 18:24:45 -08:00
Francisco Ryan Tolmasky I
9d2474b142
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-07 17:57:36 -08:00
Ross Boucher
e804d44934
Slight error in my sprintf change. Fixed here.
2010-03-07 17:54:57 -08:00
Francisco Ryan Tolmasky I
961628d8d3
Fix for count global and also cleaned up display names in CFDictionary.
...
Reviewed by me.
2010-03-07 17:53:44 -08:00
Randall Luecke
7522751fd2
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-07 20:50:29 -05:00
Ross Boucher
e3dc9fd96b
Make sprintf no longer global, instead ObjectiveJ.sprintf.
2010-03-07 17:41:33 -08:00
Ross Boucher
c3ac076d13
Remove base64 globals, move to CFData. Update tests.
2010-03-07 17:22:29 -08:00
Francisco Ryan Tolmasky I
1e02511022
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-07 17:20:56 -08:00
Francisco Ryan Tolmasky I
071a772208
Fix for drawRect: not working in IE 8 anymore. (Close chrome meta tag).
...
Reviewed by me.
2010-03-07 17:20:26 -08:00
Ross Boucher
78711163c5
Update the README to more accurately reflect the process.
2010-03-07 17:03:29 -08:00
Ross Boucher
3f005ff476
Add a "demos" task which downloads the demos repo and zips each demo as part of the deploy process.
2010-03-07 17:03:28 -08:00
Emmanuel Maillard and Ross Boucher
ddd399631f
- correct CPEmptyRange documentation
2010-03-07 17:03:28 -08:00
Francisco Ryan Tolmasky I
c0ce830456
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-07 16:55:33 -08:00
Francisco Ryan Tolmasky I
481555f11f
Further perfomance improvements.
...
Reviewed by me.
2010-03-07 16:54:43 -08:00
Tom Robinson
20327d8fb6
Move CPLog css file inline, remove redundant ANSI control sequence stuff, automatically use command line tool name in CPLog title.
2010-03-07 16:18:26 -08:00
Francisco Ryan Tolmasky I
a377e15368
Added display names to Executables and FileExecutables.
...
Reviewed by me.
2010-03-07 15:51:49 -08:00
Francisco Ryan Tolmasky I
52ca9628fd
Added display names to CFURL.
...
Reviewed by me.
2010-03-07 15:44:59 -08:00
Francisco Ryan Tolmasky I
db1454c4fe
Add display names to runtime methods.
...
Reviewed by me.
2010-03-07 15:36:32 -08:00
Francisco Ryan Tolmasky I
6845bd4598
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-07 14:34:12 -08:00
Francisco Ryan Tolmasky I
f02286e3f5
Update press to support new fileExecutableSearcher style.
...
Reviewed by me.
2010-03-07 14:33:39 -08:00
Ross Boucher
d473c251e6
Update undo/redo key equivalents to match the new menu code from a while ago.
2010-03-07 14:10:18 -08:00
Francisco Ryan Tolmasky I
64a401125d
Further performance improvements and better debug values for CFDictionary and CFMutableDictionary.
...
Reviewed by me.
2010-03-07 12:49:37 -08:00
Francisco Ryan Tolmasky I
68ae1af13f
Some performance improvements in CPKeyedUnarchiver.
...
Reviewed by me.
2010-03-07 12:24:59 -08:00
Randall Luecke
f2165af48f
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-07 10:30:17 -05:00
Francisco Ryan Tolmasky I
62b1dbbc74
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-07 03:58:48 -08:00
Francisco Ryan Tolmasky I
0881d86998
A number of performance improvements in the loader.
...
Reviewed by me.
2010-03-07 03:58:21 -08:00
Tom Robinson
aff4883222
Initial fixes for "flatten". Loads everything correct but AppKit does not start completely.
2010-03-07 02:16:01 -08:00
Tom Robinson
fbed77fc64
Fix press yet again.
2010-03-07 00:53:08 -08:00
Francisco Ryan Tolmasky I
276e8b948d
Removed remaining Rakefiles.
...
Reviewed by me.
2010-03-06 22:32:52 -08:00
Francisco Ryan Tolmasky I
2edcfbda35
Updated version strings in preparation for 0.8.0 Release Candidate.
...
Reviewed by me.
2010-03-06 22:30:51 -08:00
Tom Robinson
22cdd6e04d
Cleanup nib2cib logging.
2010-03-06 21:21:08 -08:00
Tom Robinson
3518813145
Switch nib2cib to use more robust args parsing.
2010-03-06 21:21:08 -08:00
Tom Robinson
a453412d5b
Strip invalid characters from plist before attempting to parse (so far just ESC)
2010-03-06 21:21:08 -08:00
Ross Boucher
55b438e8c1
Use sudo to update jake packages if sudo-install was the task.
...
Closes #525 .
2010-03-06 20:17:51 -08:00
Tom Robinson
ce749302a5
Fix nib2cib .nib support. Also use array form of OS.popen to avoid path escaping issues.
2010-03-06 19:34:56 -08:00
Francisco Ryan Tolmasky I
3356175f3e
Merge branch 'master' of git@github.com:280north/cappuccino
2010-03-06 16:54:31 -08:00
Francisco Ryan Tolmasky I
50ff20ba33
Further reduction of CFURL creation and caching of method values.
...
Reviewed by me.
2010-03-06 16:53:24 -08:00
Francisco Ryan Tolmasky I
d3ba51104e
Create much fewer CFURLs.
...
Reviewed by me.
2010-03-06 16:20:20 -08:00
Francisco Ryan Tolmasky I
981c184c20
A few performance improvements in Objective-J loading.
...
Reviewed by me.
2010-03-06 16:01:03 -08:00
Randall Luecke
e3a65a1847
Added preparatory support for group items in CPOutlineView.
2010-03-06 18:46:49 -05:00
Ross Boucher
64eb440ea3
nib2cib will now launch a rhino process in order to get the size of images.
2010-03-06 15:39:46 -08:00
Ross Boucher
994383f73a
Remove print statement.
2010-03-06 15:32:07 -08:00
Francisco Ryan Tolmasky I
89bd5f5b93
Fixed remaining failing CPURL tests and removed prints from CFURL tests.
...
Reviewed by me.
2010-03-06 12:10:57 -08:00
Francisco Ryan Tolmasky I
ae25f489ad
Add back in accidentally removed "baseURL".
...
Reviewed by me.
2010-03-06 11:40:24 -08:00
Francisco Ryan Tolmasky I
510eaabcfb
Fix some MHTML generation stuff.
...
Reviewed by me.
2010-03-06 01:57:10 -08:00
Francisco Ryan Tolmasky I
875e177219
Added global versions of objj_importFile and objj_executeFile, as well as objj_import with a deprecation warning.
...
Reviewed by me.
2010-03-06 01:26:27 -08:00
Francisco Ryan Tolmasky I
f8f62e1473
Merge branch 'master' into URL
2010-03-06 01:15:07 -08:00
Ross Boucher
c1a70a3aa2
Closes #528 .
...
Update CPScrollView to use more modern key command parsing.
2010-03-06 01:07:46 -08:00
Ross Boucher
c514fd7a08
Fix an issue where window levels weren't kept in sync with dom window layers.
...
Closes #507 .
2010-03-06 00:57:59 -08:00
Ross Boucher
3cefc86fbf
Whitespace fix.
2010-03-06 00:55:39 -08:00
Ross Boucher
0c66606d1d
Closes #517 .
...
Adds missing delegate accessor.
2010-03-06 00:01:36 -08:00
Francisco Ryan Tolmasky I
05fc35a5b9
Merge branch 'master' of git@github.com:280north/cappuccino into URL
2010-03-05 23:59:05 -08:00
Tom Robinson
2425838ea6
Add install-symlinks Jake task.
2010-03-05 23:30:39 -08:00
Francisco Ryan Tolmasky I
20d117e129
Further movement to CFURL.
...
Reviewed by me.
2010-03-05 22:56:15 -08:00
Francisco Ryan Tolmasky I
8f08c33bcc
Update CPBundle to better support CPURLs.
...
Reviewed by me.
2010-03-05 22:44:59 -08:00
Francisco Ryan Tolmasky I
d7f0bf6a24
Support root level apps.
...
Reviewed by me.
2010-03-05 22:34:04 -08:00
Francisco Ryan Tolmasky I
5afe6fea3c
Better support for exotic main file locations.
...
Reviewed by me.
2010-03-05 21:54:22 -08:00
Francisco Ryan Tolmasky I
9441739839
Fixed incorrect method call.
...
Reviewed by me.
2010-03-05 21:23:25 -08:00
Francisco Ryan Tolmasky I
8727d96a06
Merge branch 'master' into URL
2010-03-05 21:14:07 -08:00
Francisco Ryan Tolmasky I
b2ffe7e509
Further cleaning and bringing CPURL up to speed with CFURL.
...
Reviewed by me.
2010-03-05 21:11:53 -08:00
Randall Luecke
119c950b53
Merge branch 'master' of git://github.com/280north/cappuccino
2010-03-05 23:39:31 -05:00
Ross Boucher
29a0de3636
Fix document title's not being synced properly.
2010-03-05 20:09:23 -08:00
Francisco Ryan Tolmasky I
aa3e3c7e71
Better support for MHTML URLs.
...
Reviewed by me.
2010-03-05 16:34:27 -08:00
Francisco Ryan Tolmasky I
eb00953c60
Merge branch 'master' into URL
2010-03-05 16:06:42 -08:00
Francisco Ryan Tolmasky I
c4b255ae46
Performance improvements to CFURL internals.
...
Reviewed by me.
2010-03-05 16:06:05 -08:00
Ross Boucher
d3547dd892
Merge branch 'master' into keywindows
2010-03-05 14:45:56 -08:00
Ross Boucher
7d1c7b2907
Add missing accessor to CPImageView, and fix nib2cib support for image scaling.
...
Closes #523 .
2010-03-05 13:46:41 -08:00
Randall Luecke
d0999fa5d5
Additional fixes for drag and drop in the TableView after OutlineView merge.
2010-03-05 16:20:24 -05:00
Ross Boucher
c478afee0f
Add a missing import to CPTheme.
...
Closes #527 .
2010-03-05 12:38:59 -08:00
Paul Baumgart and Ross Boucher
ab196e75c1
Fix missing throw in Preprocessor to report an error on unmatched brackets. Closes gh-524
2010-03-05 12:34:57 -08:00
saikat and Ross Boucher
50b5c21fcf
Fixes calling selectText in the text field's delegate's controlTextDidFocus: method.
2010-03-05 11:06:00 -08:00
saikat and Ross Boucher
47bc7e812d
Fix for issue #511 - disabling a menu item in the menu item's action
2010-03-05 11:05:56 -08:00
saikat and Ross Boucher
ad5f574fb7
Fix for issue #511 - disabling a menu item in the menu item's action
2010-03-05 10:49:42 -08:00
saikat and Ross Boucher
9537a62ab1
Fixes calling selectText in the text field's delegate's controlTextDidFocus: method.
2010-03-05 10:49:23 -08:00
Randall Luecke
dc7bd3355d
Fixed wrong import for outlineview test.
2010-03-05 03:59:37 -05:00
Randall Luecke
d76d9bcfad
Fixed bugs with drag and drop in tableview after outlineview drag and drop merge.
2010-03-05 03:37:19 -05:00
klaaspieter and Randall Luecke
440eed77cf
Merge commit 'klaaspieter/outlineview' into outlineview
...
Conflicts:
AppKit/CPDragServer.j
AppKit/CPTableView.j
Tests/Manual/TableTest/AppController.j
2010-03-05 02:40:47 -05:00
Francisco Ryan Tolmasky I
b906fbea29
Merge branch 'master' into URL
2010-03-04 15:04:08 -08:00
Ross Boucher
af148137d6
Merge branch 'master' into keywindows
2010-03-04 14:33:09 -08:00
Randall Luecke
64357fde0d
Fixed bug where you could drag non-existant rows. Closes #520 and #521
2010-03-04 14:04:15 -05:00
Ross Boucher
7512a45cda
Add #if PLATFORM(DOM) protection to several additional classes.
2010-03-03 21:20:00 -08:00
Ross Boucher
e034abef82
Add a test for the initWithItems:copy: fix.
2010-03-03 20:38:56 -08:00
Scott Kyle and Ross Boucher
0b5db9c4bd
Fix CPArray initWithArray: copyItems: to actually work
2010-03-03 20:36:49 -08:00
Ross Boucher
3cd763aabb
Add #if PLATFORM(DOM) in a missing place in CPView.
2010-03-03 19:42:16 -08:00
Ross Boucher
1a881fb501
Merge branch 'master' into keywindows
2010-03-03 14:43:43 -08:00
Ross Boucher
2f68804279
Revert "fix for scroller still being drawn below resize indicator on the first reflect of the clipview."
...
This reverts commit fa63551b42 .
2010-03-03 14:43:25 -08:00
Ross Boucher
60d15e2983
Revert "fix for scrollviews being drawn below window resize indicator."
...
This reverts commit 18a0deb678 .
2010-03-03 14:43:19 -08:00
Ross Boucher
628488f7aa
Revert "fix for scroller still being drawn below resize indicator on the first reflect of the clipview."
...
This reverts commit fa63551b42 .
2010-03-03 14:42:29 -08:00
Ross Boucher
149308bc89
Revert "fix for scrollviews being drawn below window resize indicator."
...
This reverts commit 18a0deb678 .
2010-03-03 14:42:15 -08:00
Francisco Ryan Tolmasky I
b4fa971007
Merge branch 'master' into URL
2010-03-03 11:40:08 -08:00
Tom Robinson
b30f10ca46
Enquote NARWHALOPT package paths to fix building in directories with spaces.
...
Bump jake version to 0.1.5
2010-03-03 10:50:53 -08:00
Ross Boucher
da725f6ffc
Merge branch 'master' of github.com:280north/cappuccino into keywindows
2010-03-03 09:40:25 -08:00
Tom Robinson
b0d62a8608
Add option to automatically upgrade packages for CI server, etc.
2010-03-03 09:08:02 -08:00
Tom Robinson
3da2d3718b
Bump required Narwhal version to 0.2.2
2010-03-03 09:03:20 -08:00
Francisco Ryan Tolmasky I
4bd6aca0c0
Cache URLs for performance improvement.
...
Reviewed by me.
2010-03-03 02:36:40 -08:00
Francisco Ryan Tolmasky I
e90c84ee81
Merge branch 'master' into URL
2010-03-03 01:43:40 -08:00
Francisco Ryan Tolmasky I
45b8f83cdd
Revert "Revert "Revert "Enquote NARWHALOPT package paths to fix building in directories with spaces."""
...
This reverts commit cb939baca0 .
2010-03-03 01:41:13 -08:00
Francisco Ryan Tolmasky I
c8e0aa9cb4
Merge branch 'master' into URL
2010-03-03 01:36:15 -08:00
Francisco Ryan Tolmasky I
7a486db45f
Update to reverted jake version.
...
Reviewed by me.
2010-03-03 01:35:02 -08:00
Francisco Ryan Tolmasky I
4634c6cf3b
Merge branch 'master' into URL
2010-03-03 01:05:56 -08:00
Francisco Ryan Tolmasky I
eb57d14673
Further migration from file paths to CFURLs.
...
Reviewed by me.
2010-03-03 01:04:25 -08:00
Tom Robinson
cb939baca0
Revert "Revert "Enquote NARWHALOPT package paths to fix building in directories with spaces.""
...
This reverts commit db8a277960 .
2010-03-02 17:33:39 -08:00
Tom Robinson
db8a277960
Revert "Enquote NARWHALOPT package paths to fix building in directories with spaces."
...
This reverts commit 783159ee44 .
2010-03-02 16:38:24 -08:00
Ross Boucher
398d61097c
Typo in miniaturize:
2010-03-02 15:27:40 -08:00
Ross Boucher
4a43e4fda6
Overhaul of the key/main window status, esp. with respect to assigning new values after a window
...
closes or after a window is minimized, and with app activation/deactivation.
2010-03-02 15:16:10 -08:00
Tom Robinson
783159ee44
Enquote NARWHALOPT package paths to fix building in directories with spaces.
2010-03-02 11:47:29 -08:00
luddep and Ross Boucher
fa63551b42
fix for scroller still being drawn below resize indicator on the first reflect of the clipview.
2010-03-02 11:44:31 -08:00
luddep and Ross Boucher
18a0deb678
fix for scrollviews being drawn below window resize indicator.
2010-03-02 11:44:25 -08:00
cacaodev and Ross Boucher
f7c46855b8
Added missing @imports in AppKit.j
2010-03-02 11:29:09 -08:00
Ross Boucher
e67539c3b1
Merge branch 'master' of github.com:280north/cappuccino
2010-03-02 11:20:38 -08:00
Ross Boucher
b8d06521b2
Fix a bogus Regex in json2.js. Closes #513 .
2010-03-02 11:20:02 -08:00
Tom Robinson
3225d980c5
Bump required Jake version to 0.1.3 to fix build problems with Rhino.
2010-03-02 02:09:49 -08:00
Tom Robinson
9c3a579ff8
Exit with error from capp gen
2010-03-02 01:40:00 -08:00
Tom Robinson
92b5b34d17
Add --index option to flatten to specify an alternate index.html file.
2010-03-02 00:52:19 -08:00
Ross Boucher
47e8696b9f
Missing string close.
2010-03-02 00:51:46 -08:00
Tom Robinson
7938384162
Fix "capp gen -l"
2010-03-01 18:31:00 -08:00
Ross Boucher
01aec1f78e
If the mainWindow tries to become main again, just return early.
2010-03-01 18:07:38 -08:00
Nicholas Small
67f35c7b74
Update deprecated sendSynchronousRequest:returningResponse:error: to sendSynchronousRequest:returningResponse:
2010-03-01 17:03:00 -05:00
Ross Boucher
d600df4585
Make doxygen recursive.
2010-03-01 12:14:27 -08:00
Francisco Ryan Tolmasky I
f3a0710059
Merge branch 'master' into URL
2010-02-27 13:36:56 -08:00
Ross Boucher
203e0d150b
Update table headers to return the cursor to normal if the window doesn't accept mousemoved events.
2010-02-27 12:22:52 -08:00
Ross Boucher
efd699a044
Add -isEqual: and -description to CPFont. Add a unit test for -isEqual:
...
Closes #506 .
Closes #505 .
2010-02-27 12:00:44 -08:00
Ross Boucher
dbe0ca0adc
Expand macros in the documentation generation.
2010-02-27 10:31:05 -08:00
Francisco Ryan Tolmasky I
5316cabf30
Fix for capp config <key> <value> not working.
...
Reviewed by me.
2010-02-26 23:35:27 -08:00
cacaodev and Randall Luecke
9a16921a32
CPTableHeaderView: Avoid vertical lines disapearring when autoresizing the table.
...
Fix cursor updates disabled when table autoresizing is NoAutoresizing.
nil check table headerView before sending a message to itself or to a table column header view.
Conflicts:
AppKit/CPTableHeaderView.j
2010-02-26 11:35:49 -05:00
Tom Robinson
f5edf2a4c2
Cleanup press and flatten arguments.
2010-02-25 19:50:06 -08:00
Ross Boucher
cfdcfdbc99
Update the default jakefiles with bug fixes and convenience tasks.
2010-02-25 16:34:47 -08:00
Tom Robinson
ad99dca6ac
Move tools to cappuccino package's "bin" directory
2010-02-25 15:32:24 -08:00
Francisco Ryan Tolmasky I
fbcc81056b
Merge branch 'master' into URL
...
Conflicts:
Objective-J/FileExecutable.js
2010-02-25 13:59:00 -08:00
Francisco Ryan Tolmasky I
756877b94c
Removed some unecessary uses of sprintf.
...
Reviewed by me.
2010-02-25 12:38:50 -08:00
Ross Boucher
68d30c8802
Replace the old support for window.update_progress with OBJJ_PROGRESS_CALLBACK.
...
Function gets passed float from 0 to 1, the total size, and the last loaded bundle path, in that order.
2010-02-25 11:39:08 -08:00
Tom Robinson
555b83a359
"flatten" now inlines functions
2010-02-25 00:57:21 -08:00
Tom Robinson
ff43be6d7b
Added LoadTimeTest app to test load times.
2010-02-25 00:57:21 -08:00
Tom Robinson
7defbce1dd
Fix more incorrect type annotations
2010-02-24 22:45:34 -08:00
Ross Boucher
ef5aead17d
Disabled resize cursor support in CPTableViewHeader
2010-02-24 21:22:07 -08:00
Ross Boucher
585b70a6a9
Fix whitespace errors.
2010-02-24 20:10:08 -08:00
Scott Kyle and Ross Boucher
b24a78bdd5
CPTableView delegate method tableView:setObjectValue:forTableColumn:row: is now being called for cells with CPButton data views, as it should. Fixes bug #466
2010-02-24 20:06:24 -08:00
Ross Boucher
f305621ade
Merge branch 'master' of github.com:280north/cappuccino
2010-02-24 17:47:09 -08:00
Ross Boucher
24198a7890
Add a missing import, exposed by press.
2010-02-24 17:46:47 -08:00
Tom Robinson
2d477b38bc
Fix bootstrap when run within another sea and check for writability of /usr/local, defaulting to $HOME/narwhal
2010-02-24 16:16:27 -08:00
Paul Baumgart and Tom Robinson
48afc5639e
re-factor shell_config_file to make bootstrap.sh self-contained
2010-02-24 15:47:22 -08:00
Francisco Ryan Tolmasky I
7b932fbf4a
Merge branch 'master' into URL
2010-02-24 11:26:46 -08:00
Francisco Ryan Tolmasky I
39f3e7b292
Fix for menus not redrawing correctly after closing in non-Safari browsers.
...
Closes #495 .
Reviewed by me.
2010-02-24 02:56:38 -08:00
Randall Luecke
49f3038737
Merge branch 'master' of git://github.com/280north/cappuccino
2010-02-24 02:27:32 -05:00
Randall Luecke
f7a40a071b
Added proper resize cursor support for CPSplitView and cleaned up some whitespace.
2010-02-24 02:24:36 -05:00
Tom Robinson
3a1ebcaf3f
Allow interleaved arguments in "capp gen" (requires latest Narwhal)
2010-02-23 20:07:17 -08:00
Tom Robinson
3da1c4381c
Setup automated builds.
2010-02-23 18:06:23 -08:00
Tom Robinson
9ff73e5e63
Make "capp" print usage if more than one file argument is given
2010-02-23 17:04:56 -08:00
Tom Robinson
f3633c050b
Add OBJJ_AUTO_BOOTSTRAP option to disable auto-bootstrapping. Fixes flatten race condition.
2010-02-23 15:41:52 -08:00
Francisco Ryan Tolmasky I
1ba828da18
Beginning transition from string paths to CFURLs.
...
Reviewed by me.
2010-02-23 15:11:10 -08:00
Ross Boucher
109725d613
Fix whitespace issues from the previous commit.
2010-02-23 11:34:58 -08:00
Klaas Pieter Annema and Ross Boucher
4bc8f01376
made sure the dragserver doesn't call prepareDrag if the last drag update returned CPDragOperationNone
2010-02-23 11:25:10 -08:00
Ross Boucher
df20a6d6df
Add a couple tests for bugs reported from Pivotal. They aren't ideal, though, because of the CPApp issue.
2010-02-23 11:07:53 -08:00
cacaodev and Ross Boucher
e32963384e
_CPKVCArray -indexOfObject: typo
2010-02-23 11:07:53 -08:00
Tom Robinson
03a9865ccb
Remove warning from bootstrap.sh about narwhal-jsc failing on 10.5
2010-02-22 22:06:44 -08:00
Francisco Ryan Tolmasky I
7674b3aec6
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-22 18:50:00 -08:00
Francisco Ryan Tolmasky I
9c9a5bcd51
Fix for stream undefined.
...
Reviewed by me.
2010-02-22 18:48:13 -08:00
Tom Robinson
8948f7f43c
Fix broken flatten bit due to loader changes. Refactor flatten into ObjectiveJFlattener which inherits from ObjectiveJRuntimeAnalyzer.
2010-02-22 18:41:19 -08:00
Tom Robinson
ef4e86a124
Remove StaticResource.prototype.type()
2010-02-22 18:39:50 -08:00
Francisco Ryan Tolmasky I
b9edc357f3
Fix for absolute paths working with <> includes.
...
Reviewed by me.
2010-02-22 14:50:25 -08:00
Francisco Ryan Tolmasky I
9353d0f95c
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-22 14:30:46 -08:00
Francisco Ryan Tolmasky I
7defdd2a00
Fix for some files showing up as anonymous.
...
Reviewed by tlrobinson.
2010-02-22 14:27:30 -08:00
Tom Robinson
621e79fe33
Fixes press, objj-analysis-tools, etc broken due to changes to loader
2010-02-22 12:54:17 -08:00
Ross Boucher
e759c5343b
Add a missing import in CPButton, and a test to ensure you can create one on the command line.
2010-02-22 11:07:11 -08:00
Francisco Ryan Tolmasky I
d879b25458
Re-enabled menu bar button support.
...
Closes #410 .
Reviewed by me.
2010-02-22 02:12:11 -08:00
Francisco Ryan Tolmasky I
ccffde6966
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-22 00:56:23 -08:00
Francisco Ryan Tolmasky I
1524f80418
Fix for toolbar item's sending their views as senders for actions (should be the item itself).
...
Closes #493 .
Reviewed by me.
2010-02-22 00:49:35 -08:00
Tom Robinson
bcbeb888f6
Various bootstrap.sh improvements (noprompt mode, etc)
2010-02-22 00:00:40 -08:00
Francisco Ryan Tolmasky I
7730aeb652
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-21 23:30:58 -08:00
Francisco Ryan Tolmasky I
272f938f2e
Fix for CPData naming issues, added test cases, and fixed isEqual: for CPDictionary.
...
Reviewed by me.
2010-02-21 23:29:41 -08:00
Randall Luecke
5570a346c4
Imported CPOutlineView.j in AppKit.
2010-02-22 00:26:50 -05:00
Ross Boucher
2b90652a16
Add chrome frame tag for the benefit of those people who may have installed it.
2010-02-21 17:01:33 -08:00
Ross Boucher
a58dd4678c
Move NibApp to manual tests.
2010-02-21 17:01:33 -08:00
Randall Luecke
25f4574093
TableView now renders white background by default (like cocoa) thereby fixing a bug where Opera rendered the tableview with a black background if you did no specify alternating row colors.
2010-02-21 19:53:40 -05:00
Tom Robinson
733b9b731d
Cleanup Jakefiles, enquote arguments, add built packages bin to PATH so ojtest runs / uses the correct Cappuccino, etc.
2010-02-21 15:42:56 -08:00
Francisco Ryan Tolmasky I
20637fc5e0
Added missing licenses and removed a bit of unused code.
...
Reviewed by me.
2010-02-21 13:52:51 -08:00
Francisco Ryan Tolmasky I
c33e2ee51f
Fixed a bug with objj_debug_typecheck incorrectly misidentifying empty string as not a CPString. Also fixed a number of type declarations after running with objj_msgSend_decorate(objj_typecheck_decorator); turned on.
...
Reviewed by me.
2010-02-21 13:37:20 -08:00
Francisco Ryan Tolmasky I
7ef59418dd
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-21 13:10:55 -08:00
Francisco Ryan Tolmasky I
0805e58a94
Fix for objj_msgSend_reset errors when running debug.
...
Reviewed by me.
2010-02-21 13:10:31 -08:00
Ross Boucher
6ddeff2b21
Fix the remaining tests that were failing.
2010-02-21 13:02:52 -08:00
Francisco Ryan Tolmasky I
7433c38d92
Pulled @each out into a separate feature branch, so as to not conflict with the 0.8 work: http://github.com/280north/cappuccino/tree/@each .
...
Reviewed by me.
2010-02-21 12:31:13 -08:00
Tom Robinson
5f930ec840
Fix for press interpreting "." as "/"
2010-02-20 23:01:06 -08:00
Randall Luecke
0dd36b2275
Merge branch 'master' of git://github.com/280north/cappuccino
2010-02-20 17:46:09 -05:00
Randall Luecke
629428739d
Fixed error when headerview was set to nil on the CPTableView.
2010-02-20 17:44:45 -05:00
Francisco Ryan Tolmasky I
7d7281480a
Typo in last commit and forgot one change.
...
Reviewed by me.
2010-02-20 02:42:57 -08:00
Francisco Ryan Tolmasky I
666e2c0190
Updated press for changed names.
...
Reviewed by me.
2010-02-20 02:36:14 -08:00
Francisco Ryan Tolmasky I
3968d35cac
Once again fix for Fix for accounting for non-Cappuccino libraries placing things on
...
Object.prototype and Don't recreate sprited resources every time, and fix a bug where two
bundle tasks in the same jakefile would conflict when creating sprited
resources.
Reviewed by me.
2010-02-20 02:24:54 -08:00
Francisco Ryan Tolmasky I
551677d6fd
Removed no longer used file, and renamed HTTPRequest.js to CFHTTPRequest.js to match the class name change in the previous commit.
...
Reviewed by me.
2010-02-20 01:08:15 -08:00
Francisco Ryan Tolmasky I
85b029fad0
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-20 01:05:04 -08:00
Francisco Ryan Tolmasky I
841ed9ea89
Major cleanup of globals and exports. Removed many accidental globals and no more need for eval in the initialization process. Also fixes Theme Showcase.
...
Reviewed by me.
2010-02-20 01:04:17 -08:00
Randall Luecke
74fd7eb793
Merge branch 'master' of git://github.com/280north/cappuccino
2010-02-20 03:59:40 -05:00
BlairDuncan and Randall Luecke
26df9e861f
Fix for cursor showing resize indicator when column isn't user resizable.
2010-02-20 03:58:38 -05:00
Tom Robinson
338860d05b
Allow additional frameworks to be copied by capp gen. Use args parser.
2010-02-19 18:27:43 -08:00
Ross Boucher
b7df6c1480
Fix support for MHTML. This uses feature detection to determine if DataURLs, and then if MHTML is supported, and falls back on the original unsprited images.
...
Closes #376 .
2010-02-19 16:48:57 -08:00
Tom Robinson
b2179f14ab
Cleanup Jakefiles:
...
* require common.jake first
* require Objective-J/Cappuccino stuff only when needed (automatically requiring these caused too many problems)
* remove useless shebangs, cleanup whitespace
2010-02-19 16:09:39 -08:00
Paul Baumgart and Ross Boucher
99b43fed7f
Add support for sudo-install on systems with sudo compiled w/ --with-secure-path
2010-02-19 13:01:11 -08:00
Paul Baumgart and Ross Boucher
25dfcd38a7
Fix case on require() parameter ("OS" -> "os")
2010-02-19 13:00:31 -08:00
Tom Robinson
a6d2c42402
Only log errors in setupEnvironment.
2010-02-19 02:43:39 -08:00
Francisco Ryan Tolmasky I
fd8271396d
Fix for accounting for non-Cappuccino libraries placing things on Object.prototype.
...
Reviewed by me.
2010-02-19 02:08:34 -08:00
Francisco Ryan Tolmasky I
19ca6a342e
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-19 00:43:18 -08:00
Francisco Ryan Tolmasky I
7819e174f1
Added setString: to CPData which sits on top of setSerializedPlistObject:.
...
Reviewed by me.
2010-02-19 00:42:23 -08:00
Randall Luecke
7cd6d026a2
Merge branch 'master' of git://github.com/280north/cappuccino
2010-02-19 03:24:59 -05:00
Randall Luecke
c48d306195
Initial refactor/rewrite of auto resizing columns.
2010-02-19 03:23:29 -05:00
Francisco Ryan Tolmasky I
3a9845f784
Don't recreate sprited resources every time, and fix a bug where two bundle tasks in the same jakefile would conflict when creating sprited resources.
...
Reviewed by me.
2010-02-18 23:32:11 -08:00
Francisco Ryan Tolmasky I
94d3053232
Added CommonJS extensions to CFPropertyList.
...
Reviewed by me.
2010-02-18 15:28:30 -08:00
Francisco Ryan Tolmasky I
b078169adf
Fix for slight name change.
...
Reviewed by me.
2010-02-18 14:05:33 -08:00
Francisco Ryan Tolmasky I
38c4dd408c
Fix for CPBundle loading all code. Fixes external frameworks with nib2cib.
...
Reviewed by me.
2010-02-18 13:55:30 -08:00
Francisco Ryan Tolmasky I
8beb9dfed0
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-18 11:18:17 -08:00
Francisco Ryan Tolmasky I
eef9549e96
Fix for HelloWorld/ not working when HelloWorld/index.html does.
...
Closes #483 .
Reviewed by me.
2010-02-18 11:17:21 -08:00
Randall Luecke
82ac98ddc7
Initial refactoring of init with a fix for gradients not being initialized correctly. Initial refactoring of uniform column auto resizing to prep for a rewrite.
2010-02-18 11:09:07 -05:00
cacaodev and Randall Luecke
3d52ffcbdc
CPTableView: fix shiftKey+selection to match cocoa behavior. closes issue #433
2010-02-18 02:30:57 -05:00
Randall Luecke
3fad4635b0
Updated tabletest to include new source list selection styles, also cleaned up the tableview a bit, and made the default selection style of the outlineview use the source list gradient.
2010-02-18 02:21:40 -05:00
cacaodev and Randall Luecke
b0b19328a8
CPTableView: CPTableViewSelectionHighlightStyleSourceList for canvas browsers. Removed references to selectionHighlightColor.
2010-02-18 01:27:06 -05:00
Francisco Ryan Tolmasky I
9fd79488f8
Merge branch 'master' of git@github.com:280north/cappuccino
2010-02-17 21:13:14 -08:00
Francisco Ryan Tolmasky I
cebe31857a
Fix for image loading problem.
...
Reviewed by me.
2010-02-17 21:12:14 -08:00
Ross Boucher
1961829414
Correct a use of global. to be GLOBAL_NAMESPACE. at least until we have a better solution.
2010-02-17 19:31:11 -08:00
Ross Boucher
3e5bdec033
Merge branch 'master' of github.com:280north/cappuccino
2010-02-17 19:22:02 -08:00
Ross Boucher
5789021a76
modify the copyright date
2010-02-17 19:20:44 -08:00
Tom Robinson
6bf0319c51
Add ojdepcheck tool to print out missing @imports
2010-02-17 18:09:55 -08:00
Tom Robinson
8f519caa77
Remove old shrinksafe jars
2010-02-17 18:02:32 -08:00
Ross Boucher
a38be80a86
Revert "A better fix for the IE bug. Rather than introduce the secondary global and the eval, just refer to the actual global object (works in any javascript env)."
...
This reverts commit d40619aca0 .
2010-02-17 17:37:46 -08:00
Ross Boucher
81b72fc571
Throw a syntax error if we don't recognize the @accessors syntax.
2010-02-17 17:27:37 -08:00
Ross Boucher
91681d7846
Move more constants to CPControl.j
2010-02-17 17:06:09 -08:00
Ross Boucher
d40619aca0
A better fix for the IE bug. Rather than introduce the secondary global and the eval, just refer to the actual global object (works in any javascript env).
2010-02-17 16:55:07 -08:00
Ross Boucher
1328bc732f
Move around some imports and constant declarations.
2010-02-17 16:29:57 -08:00
Ross Boucher
060f65b27e
Use CPLog instead of console
2010-02-17 16:24:04 -08:00
Tom Robinson
364669f527
Remove formatting from capp usage message for now.
2010-02-17 16:15:10 -08:00
Ross Boucher
f4042b9d4b
Fix an error in IE6 with XMLHttpRequest being undefined
2010-02-17 16:09:58 -08:00
Ross Boucher
c750b696d2
Merge branch 'master' of github.com:280north/cappuccino
2010-02-17 16:08:58 -08:00
Ross Boucher
02cdee6c75
Fix a missing import.
2010-02-17 16:08:11 -08:00
Tom Robinson
c4a824b5db
More bootstrap improvements: follow narwhal symlinks to actual installation
2010-02-17 15:18:07 -08:00
Tom Robinson
7f31c0632d
flatten: build nodes relative to cwd
2010-02-17 14:57:33 -08:00
Francisco Tolmasky
96ee92695c
Merge branch 'jake'
...
Conflicts:
Tools/press/objj-analysis-tools.j
2010-02-17 13:50:18 -08:00
Francisco Ryan Tolmasky I
80b252a744
Merge branch 'loader' into jake
2010-02-17 13:40:22 -08:00
Francisco Ryan Tolmasky I
4f50f8b83f
Fix for IE Bug that caused stack overflow at line 0 when loading Objective-J every time.
...
Reviewed by me.
2010-02-17 13:39:15 -08:00
Francisco Ryan Tolmasky I
df895b9529
Treat extensionless files as Objective-J.
...
Reviewed by ross.
2010-02-16 19:31:31 -08:00
Tom Robinson
f9e9e51352
A couple fixes in flatten
2010-02-16 18:21:36 -08:00
Ross Boucher
27e99344bd
Make nib2cib quieter by default. Prints only fatal error messages.
...
Pass the -v flag to print warnings, and -vv or --verbose to print all messages.
Closes #475 .
2010-02-16 16:59:44 -08:00
Ross Boucher
32572844fd
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-16 16:37:24 -08:00
Ross Boucher
a77e67e578
Add support for keyboard navigation in CPCollectionView
2010-02-16 16:36:40 -08:00
Francisco Ryan Tolmasky I
fb9cd1ef93
Don't Objective-J preprocess non-.j files.
...
Reviewed by me.
2010-02-16 16:23:03 -08:00
Ross Boucher
93722f6a7d
Fix a bug where any @ added accessors to ivar declarations.
...
Closes #474 .
2010-02-16 15:50:04 -08:00
Francisco Ryan Tolmasky I
76da7466ec
Fix for CPDictionary CPFastEnumeration.
...
Reviewed by me.
2010-02-16 13:51:02 -08:00
Stephen Ierodiaconou and Ross Boucher
6b3c95f09f
Fix for issue #473 . Call setEnabled from _CPToolbarItemView updateFromItem.
2010-02-16 10:43:48 -08:00
Francisco Ryan Tolmasky I
81110ddba7
Further performance improvements.
...
Reviewed by me.
2010-02-16 02:41:15 -08:00
Francisco Ryan Tolmasky I
64fd9f615c
Additional performance improvements to CPFastEnumeration.
...
Reviewed by me.
2010-02-16 02:04:31 -08:00
Randall Luecke
213df88766
Merge branch 'loader' of git://github.com/280north/cappuccino into loader
2010-02-16 03:58:22 -05:00
Tom Robinson
a26750d4f4
Fixed objj arguments parsing
2010-02-16 00:57:50 -08:00
Randall Luecke
72edd7376e
temp fix for auto resizing when user manually resizes. Uniform resizing is still broken.
2010-02-16 03:56:17 -05:00
Randall Luecke
948e9ae139
Merge branch 'loader' of git://github.com/280north/cappuccino into loader
2010-02-16 03:43:22 -05:00
Francisco Ryan Tolmasky I
ae357d1a2b
Support for post and pre order CPFastEnumration for CPTreeNode. In order and level order remain.
...
Reviewed by me.
2010-02-16 00:41:20 -08:00
Randall Luecke
59756ff1b3
Made the hit test area for the column resizing a bit smaller.
2010-02-16 03:40:05 -05:00
Klaas Pieter Annema
2908e453e8
Merge branch 'jake' into outlineview
2010-02-16 09:39:49 +01:00
Klaas Pieter Annema
7b1ffc885f
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-02-16 09:39:32 +01:00
Randall Luecke
95364b1d31
Tableview fixes including setMaxWidth reset on columns, added grid line to cornerview, cleaned up width validation in sizeLastColumnToFit, and cleaned up TableTest.
2010-02-16 03:00:49 -05:00
Ross Boucher
f3257c0847
Add trunaction defaults to the table view cells
2010-02-15 23:05:23 -08:00
Ross Boucher
eb0fc35c8f
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-15 23:05:10 -08:00
Ross Boucher
3dccd93093
Fix a typo. Closes #380 .
2010-02-15 23:04:47 -08:00
Francisco Ryan Tolmasky I
8929199082
Add CPFastEnumeration support for CPEnumerator.
...
Reviewed by me.
2010-02-15 22:48:28 -08:00
Klaas Pieter Annema
20f6a57b3a
- made the proposed drag row calculations more accurate when a tableview has non-default row height or inter-cell spacing
...
- fixed a bug in the dragged row at point calculation
2010-02-16 07:45:19 +01:00
Francisco Ryan Tolmasky I
db949728dd
Add CPFastEnumeration support to CPSet and CPNull.
...
Reviewed by me.
2010-02-15 22:44:52 -08:00
Francisco Ryan Tolmasky I
92d28e468e
Autogenerate the index parameter for Fast Enumeration, and add Fast Enumeration support to CPIndexSet.
...
Reviewed by me.
2010-02-15 22:34:50 -08:00
Francisco Ryan Tolmasky I
f95c3ca46a
Adds fast enumeration to Cappuccino. Currently support for Arrays, dictionaries, single objects, and nil.
...
Closes #472 .
Reviewed by me.
2010-02-15 21:46:50 -08:00
Ross Boucher
477b6bcdc5
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-15 21:28:58 -08:00
Ross Boucher
3e40deba5f
Fix a lot of style issues.
...
Change a 1px value.
Closes #444 .
2010-02-15 21:27:27 -08:00
Tom Robinson
7d9bd25270
Disable bootstrap installing prebuilt packages
2010-02-15 21:26:49 -08:00
Tom Robinson
c201990cb0
Switch compressor to use CommonJS packages for ShrinkSafe, etc.
2010-02-15 21:26:02 -08:00
Tom Robinson
289df53fb4
Disable bootstrap installing prebuilt packages
2010-02-15 21:26:02 -08:00
Ross Boucher
62788423a1
Add missing accessors. Closes #452 .
2010-02-15 18:32:45 -08:00
Ross Boucher
8617990206
Add much better support for CPTableView to nib2cib.
2010-02-15 17:28:35 -08:00
cacaodev and Randall Luecke
2d8f2b328f
Fixed a bug where column selection code was trying to highlight unexposed data views
2010-02-15 11:09:16 -05:00
Francisco Ryan Tolmasky I
833896e267
Renaming file to match class renaming.
...
Reviewed by me.
2010-02-14 19:17:56 -08:00
Francisco Ryan Tolmasky I
f12b4520f6
Some renaming.
...
Reviewed by me.
2010-02-14 19:17:50 -08:00
Randall Luecke
2564003c85
Added new aristo resources for CPTableView sorting.
2010-02-14 21:37:03 -05:00
cacaodev and Randall Luecke
c36b8f2257
CPTableView: -setHighlightedTableColumn: argument should be a CPTableColumn
2010-02-14 21:33:47 -05:00
cacaodev and Randall Luecke
d413fbe0ed
Fix for indentations not respected when resizing an outlineview column. Closes issue #470
2010-02-14 21:33:32 -05:00
Randall Luecke
4237000fc9
TableView:
...
Set a CPThemeStateHighlighted for both selecting and sorting.
Do not change sort descriptors when selecting with a modifier flag.
Conflicts:
AppKit/CPTableView.j
2010-02-14 21:33:20 -05:00
cacaodev and Randall Luecke
5131aff352
Column sorting : Sort descriptors, sort indicator image, highlighted column.
...
Column resizing : Fixed bug where last column could not be resized.
Left arrow cursor when reaching maxWidth.
Moved table selection code to CPTableView.
Disable automatic resizing when user is resizing column
Partially fixed uniform resizing not prop. to columns width.
2010-02-14 21:32:07 -05:00
Francisco Ryan Tolmasky I
f77f52802c
Fix for new loader not working when app lives in the root directory of a website.
...
Reviewed by me.
2010-02-14 16:26:54 -08:00
Francisco Ryan Tolmasky I
d52ab34421
Better Cib loading that doesn't make assumptions about the asynchronisity of the load.
...
Reviewed by me.
2010-02-14 12:23:47 -08:00
Francisco Ryan Tolmasky I
81e4c26b38
Fix for properly handling XMLHTTPRequests with files that don't exist when using file:// URL's in FireFox.
...
Reviewed by me.
2010-02-14 12:22:37 -08:00
Ross Boucher
1eed1901e9
Add some documentation to CPTableColum's setDataView: method.
...
Closes #315 .
2010-02-13 22:33:36 -08:00
Ross Boucher
a8b1c7bce1
Fix a number of segmented control bugs. Among other things, the disabled state is respected per segment.
...
Closes #386 .
Also fixes the error where right side of segments would often not be visible.
Also fixes the error which caused the right and left bezel images to not show as disabled ever.
2010-02-13 20:40:32 -08:00
Alexander Ljungberg and Ross Boucher
ac3d035ce7
Fixed: CPTableView deselectRow: changed the column selection rather than the row selection.
2010-02-13 20:08:12 -08:00
Ross Boucher
c8575cac05
Revert "Fix the collection view resizing behavior."
...
This reverts commit 9b01561127 .
2010-02-13 20:04:18 -08:00
Francisco Ryan Tolmasky I
8d63c059c5
Fixed scope issues when running Cappuccino under CommonJS.
...
Reviewed by me.
2010-02-13 16:57:09 -08:00
Francisco Ryan Tolmasky I
bc53288fca
Fix for failing CPAttributedString test.
...
Reviewed by me.
2010-02-13 16:14:18 -08:00
Francisco Ryan Tolmasky I
474d4281f1
Actual fix for pasteboard exception for strings.
...
Reviewed by me.
2010-02-13 14:39:44 -08:00
Ross Boucher
73babcd7d6
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-13 14:24:35 -08:00
Ross Boucher
5fe208d6a0
Update to the last scroller fix, slightly different approach.
2010-02-13 13:55:23 -08:00
Tom Robinson
94ca0ed71b
Read as binary then decode to string to workaround narwhal-rhino bug of adding newlines on read()
2010-02-13 13:54:38 -08:00
Ross Boucher
a323cfe08c
Allow developers to choose to enable the HTML5 drag and drop support, even though its off by default.
2010-02-13 13:38:56 -08:00
Ross Boucher
29c3654928
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-13 13:25:31 -08:00
Ross Boucher
27fefed0d8
Recaluclate the orientation of a scroller on frame change.
...
Closes #454 .
2010-02-13 13:24:31 -08:00
Tom Robinson
235d974ce1
Beginning of "flatten" tool.
2010-02-13 13:13:47 -08:00
Tom Robinson
cb1d3168e3
press cleanup, refactor setting environments and include paths into analyzer.
2010-02-13 13:13:47 -08:00
Tom Robinson
64dc25dfb6
Export rootNode.
2010-02-13 13:13:47 -08:00
Ross Boucher
9a7484e57d
Fix Typo. Closes #463 .
2010-02-13 12:06:52 -08:00
Ross Boucher
b89ee3e4c1
Use longform RegEx creation in json2.js to fix a bug in Opera 9.2.
...
Closes #323 .
2010-02-12 21:51:06 -08:00
Ross Boucher
ec5645d380
Only change button heights if the button isn't bordered.
...
Closes #157 .
2010-02-12 21:36:32 -08:00
Ross Boucher
a0abf1e221
Fix a slight bug with default values in nib2cib segmented controls.
...
Closes #215 .
2010-02-12 21:29:19 -08:00
Ross Boucher
0e558d54e5
Move CPControl constants to that file (from CPTextField).
...
Respect line break mode in NSControl nib2cib.
Closes #420 .
2010-02-12 21:16:44 -08:00
Ross Boucher
004cc5fe5a
Store a conversion table of views/objects we're replacing and restore connections to those replaced objects. (nib2cib)
2010-02-12 20:31:36 -08:00
Ross Boucher
0b22b1d022
Correctly convert NSButtons set as checkboxs and radiogroups to CPCheckBoxes and CPRadios.
...
Closes #365 .
2010-02-12 20:05:34 -08:00
Ross Boucher
24ecf31bd3
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-12 14:18:19 -08:00
Ross Boucher
c37c80771c
Fix broken tests with CPData.
2010-02-12 14:17:58 -08:00
Francisco Ryan Tolmasky I
a017c0c4a8
Fix for failing CPDictionary tests.
...
Reviewed by me.
2010-02-12 14:09:40 -08:00
Francisco Ryan Tolmasky I
3a35ab449b
Fixed failing KVO tests.
...
Reviewed by me.
2010-02-12 13:46:26 -08:00
Ross Boucher
da84964a33
Fix two problems with KVC:
...
- valueForKeyPath: looped over individual components, which meant classes couldn't override valueForKeyPath: to do multi-part keys (needed for operators)
- CPArray's valueForKeyPath: implementation was incorrectly parsing the operator if it was a simple key
2010-02-12 12:53:15 -08:00
Klaas Pieter Annema
65051855ee
fixed a bug where the tableview would draw a row to many
2010-02-12 13:02:55 +01:00
Ross Boucher
72c36789c6
Accidental global var.
...
Closes #462 .
2010-02-11 09:35:36 -08:00
Klaas Pieter Annema
bc07bd16bd
implemented outlineView:willDisplayView:forTableColumn:row delegate method
2010-02-11 16:47:49 +01:00
Klaas Pieter Annema
bf691fa552
removed incorrect implementation of imageDimsWhenDisabled
2010-02-11 12:47:27 +01:00
Ross Boucher
47ddfec1f9
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-10 19:56:33 -08:00
Ross Boucher
fb8ba655e1
Do not enforce min/max size in setFrame:display:animate: only do so in the other setFrame* variants.
...
Closes #284 .
2010-02-10 19:55:40 -08:00
Tom Robinson
d64f56817d
Remove unused imports etc from press
2010-02-10 19:35:53 -08:00
Tom Robinson
9363708e49
Move push-package dir to .push-package and add to .gitignore
2010-02-10 19:19:00 -08:00
Ross Boucher
65a2e4d6b0
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-10 18:33:03 -08:00
Randall Luecke and Ross Boucher
138d7bd9a2
Added _ in front of CG calls to last commit...
2010-02-10 18:19:13 -08:00
Randall Luecke and Ross Boucher
97fe09fbdd
Added proper support for hiding scroller elements when CPScroller is resized too small to display all of them.
2010-02-10 18:19:07 -08:00
Tom Robinson
487412fa22
objj repl respects -I args. Closes gh-235
2010-02-10 18:17:41 -08:00
Klaas Pieter Annema
ea47baa1fc
implemented imageDimsWhenDisabled on CPButton
2010-02-10 16:19:51 +01:00
Klaas Pieter Annema
90cd519916
added viewDidLoad to CPViewController
2010-02-10 12:13:17 +01:00
Klaas Pieter Annema
669d18b218
added missing exception when a viewcontroller has no view after loadView
2010-02-10 11:46:40 +01:00
Tom Robinson
fbcd2b3174
Merge branch 'loader' of git@github.com:280north/cappuccino into loader
2010-02-10 00:49:11 -08:00
Tom Robinson
99a839456d
Remove --flatten and --nostrip command line flags from press.
2010-02-10 00:34:51 -08:00
Tom Robinson
0d9d60466d
It's alive! press appears to be working completely (minus removed --flatten feature)
2010-02-10 00:31:00 -08:00
Francisco Ryan Tolmasky I
5a031efa7a
Fixed issues with imports that had ".." in the paths.
...
Reviewed by me.
2010-02-10 00:03:46 -08:00
Tom Robinson
1f64fce47c
First pass at fixing "press" output stage.
2010-02-09 17:25:11 -08:00
Tom Robinson
04529897dc
Add setCode to Executable; use toMarkedString() in compiler; more robust function wrapper stripping in compressor
2010-02-09 14:55:50 -08:00
Tom Robinson
7837e1ad81
Fixed Executable's toMarkedString()
2010-02-09 14:49:54 -08:00
Francisco Ryan Tolmasky I
c7c60b2b94
Added toMarkedString to Executable.
...
Reviewed by me.
2010-02-09 13:57:47 -08:00
Francisco Ryan Tolmasky I
f9c2805379
Removed reference to MARKER_TEXT.
...
Reviewed by me.
2010-02-09 13:40:04 -08:00
Tom Robinson
035d772a4a
Respect previously set OBJJ_MAIN_FILE
2010-02-09 11:46:25 -08:00
Alexander Ljungberg and Ross Boucher
f89c2e0ba9
Fixed: CPDates compared equal to nil and CPNull.
2010-02-09 10:59:59 -08:00
Philipe Fatio and Ross Boucher
94ce055bc2
CPWindow's makeFirstResponder: return type was void, changed to BOOL
2010-02-09 10:49:04 -08:00
Klaas Pieter Annema
9b3d4d4453
Merge branch 'jake' into outlineview
2010-02-09 15:01:10 +01:00
Klaas Pieter Annema
329e4dc3c3
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
...
Conflicts:
AppKit/CPTableColumn.j
AppKit/CPTableView.j
2010-02-09 14:57:37 +01:00
Klaas Pieter Annema
d96e939eed
made sure the dragserver doesn't call prepareDrag if the last drag update returned CPDragOperationNone
2010-02-09 14:43:02 +01:00
Klaas Pieter Annema
c8437895dc
fixed setDropItem:dropChildIndex behavior
2010-02-09 14:42:11 +01:00
Francisco Ryan Tolmasky I
95ba648dae
Fix for keys being wrong in cplutil conversion, and making sure to use the right radix with parseInt when reading plists.
...
Reviewed by me.
2010-02-09 02:18:52 -08:00
Francisco Ryan Tolmasky I
9f847e5a24
Merge branch 'jake' into loader
2010-02-09 01:03:37 -08:00
Francisco Ryan Tolmasky I
a4eec5fef8
Fix for UID returning different values every time for CPString.
...
Reviewed by me.
2010-02-09 01:02:49 -08:00
Tom Robinson
e51bf3f0c1
More upgrading of press to new load system. Analysis is complete, need to build resulting files.
2010-02-08 23:47:29 -08:00
Tom Robinson
b907ea59f4
Export a few more properties from Objective-J for use in "press"
2010-02-08 23:45:59 -08:00
Tom Robinson
cebff75992
Change jakefile to throw exception if there's a syntax error, etc in one of the optionally required modules.
2010-02-08 23:44:44 -08:00
Alexander Ljungberg and Randall Luecke
a3f9b65501
Implemented [CPDate copy] with unit test. Also whitespace cleanup in CPDate.
2010-02-09 01:57:24 -05:00
Nicholas Small
1f7afe7a49
Merge branch 'jake' of github.com:280north/cappuccino into loader
2010-02-08 10:51:30 -05:00
Nicholas Small
ceecaa0184
Fixed missing { in objj-analysis-tools.j
2010-02-08 10:50:44 -05:00
Klaas Pieter Annema
78b4bbb06e
implement setDropItem:dropChildIndex on CPOutlineView
2010-02-08 16:49:07 +01:00
Klaas Pieter Annema
0375e7a881
- further improved outline view drag & drop for multiple parent situations
2010-02-08 14:44:21 +01:00
Klaas Pieter Annema
ebc831663b
Merge branch 'jake' into outlineview
...
Conflicts:
AppKit/CPTableView.j
2010-02-08 11:34:16 +01:00
Klaas Pieter Annema
65ceb96e4f
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
...
Conflicts:
AppKit/CPTableColumn.j
AppKit/CPTableView.j
2010-02-08 11:33:33 +01:00
Klaas Pieter Annema
57ef2d2229
removed log statements
2010-02-08 11:14:50 +01:00
Klaas Pieter Annema
8759b175bd
various fixes to outline view drag & drop
2010-02-08 11:14:03 +01:00
Tom Robinson
13f86b0cd4
Refactor objj-analysis-tools a bit.
2010-02-08 01:44:55 -08:00
Tom Robinson
c0fad49375
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-08 01:12:22 -08:00
Derek Hammer and Tom Robinson
579cc98e4f
Adding the --symlink and --build flags. capp gen -l something is now just an alias for capp gen --symlink --build something. This allows for easy copying of built Frameworks for those hacking on Cappuccino
2010-02-08 01:04:22 -08:00
Randall Luecke
4a98417ee8
Added call to auto resizing after user manually resizes the columns.
2010-02-08 02:20:38 -05:00
Randall Luecke
4a5e90b5cb
Fixed column resizing mask types.
2010-02-08 02:16:06 -05:00
cacaodev and Randall Luecke
36a85e935b
TableView : Column resizing. Works with column resizingMasks.
...
TODO: Automatic table resizing should only resize columns marked with TableColumnAutoresizingMask.
TODO: When implemented, use CPTrackingArea instead of mouse moved events.
2010-02-08 01:19:10 -05:00
chandlerkent and Randall Luecke
9034203a4f
Fixed a bug where CPTableView doesn't scroll to the top index when using the arrow keys.
2010-02-08 00:49:08 -05:00
Randall Luecke
24e8f8aa43
Restyled tableview to match new Aristo art. Added a bit of a padding to the dataviews and headerviews.
2010-02-07 23:55:40 -05:00
Ross Boucher
632251b16c
Infinite recursion error.
2010-02-06 18:31:20 -08:00
Ross Boucher
2406cbe7ed
Merge branch 'jake' into loader
2010-02-06 17:47:03 -08:00
Ross Boucher
e6a0caa164
cplutil wasn't converting.
...
CFPropertyList couldn't output XML correctly.
2010-02-06 17:46:32 -08:00
Francisco Ryan Tolmasky I
cd3e2fbbb8
Fix for cplutil.
...
Reviewed by me.
2010-02-06 17:14:37 -08:00
Randall Luecke
47bd6e5ce3
Further cleanup of code and logs in the tableview.
2010-02-06 17:53:40 -05:00
Randall Luecke
f590c63e33
Cleaned up tableview logs.
2010-02-06 17:36:20 -05:00
Randall Luecke
e8b74ece72
Fixed tableview begin drag/drop behavior to be more cocoa like.
2010-02-06 17:29:19 -05:00
Tom Robinson
3d45699bc7
Merge branch 'loader' of github.com:280north/cappuccino into loader
...
Conflicts:
Objective-J/CPLog.js
2010-02-06 14:01:56 -08:00
Tom Robinson
ae987f19dc
Fixed CPLogRegisterRange and added dup checking and unregister function
2010-02-06 14:00:58 -08:00
Francisco Ryan Tolmasky I
09786cb8d2
Fix CPLog additions breaking build.
...
Reviewed by me.
2010-02-06 01:57:44 -08:00
Tom Robinson
17072f9ed4
Move CPLog to Objective-J
2010-02-05 22:27:13 -08:00
Tom Robinson
82d3d1abc5
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-05 21:12:08 -08:00
Tom Robinson
2cc40a7961
Add sprintf.js to Objective-J
2010-02-05 21:11:47 -08:00
Francisco Ryan Tolmasky I
c523e706e9
Better error reporting.
...
Reviewed by me.
2010-02-05 20:18:18 -08:00
Klaas Pieter Annema
cdca8047b9
Merge branch 'jake' into outlineview
...
Conflicts:
AppKit/CPTableView.j
2010-02-05 15:14:40 +01:00
Klaas Pieter Annema
09b8a3394e
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
...
Conflicts:
AppKit/CPTableColumn.j
2010-02-05 12:15:34 +01:00
Klaas Pieter Annema
ed1a7a4bc9
- removed variable row heights from CPTableView (can be found in variabletableview branch)
...
- fixed a bug where it was not possible to drag unselectable rows #445
2010-02-05 12:11:39 +01:00
Klaas Pieter Annema
0696fb405e
improved CPTableView's drop row logic for the lowest possible row
2010-02-05 11:51:06 +01:00
Randall Luecke
265a410342
Changed the default text color for table column data views to match Aristo.
2010-02-04 21:27:06 -05:00
Nicholas Small
cbd0d6e6a2
Better nib2cib and CPCoder support for CPTableView.
2010-02-04 15:25:16 -05:00
Nicholas Small
25e0a59d5b
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-04 14:14:36 -05:00
Nicholas Small
ab34ee882e
Add a few flags to NSTableView and CPCoder support for gridColor and gridStyleMask in CPTableView.
2010-02-04 14:14:31 -05:00
Ross Boucher
4f05657236
Merge branch 'jake' into loader
...
Conflicts:
Objective-J/Preprocessor.js
2010-02-04 11:10:39 -08:00
Klaas Pieter Annema
7720200679
- improved the CPOutlineView drag & drop support in cases where more than 1 parent is possible
...
- improved the outline view test project
2010-02-04 16:56:48 +01:00
Klaas Pieter Annema
117ec9970c
- reduced the number of rows on the tableview sample so it works with the variable row heights
...
- made CPTableView ask for the rect of the drop highlight so CPOutlineView can adjust this
- re factored some stuff in CPOutlineView's table delegate
2010-02-04 14:20:12 +01:00
Klaas Pieter Annema
766073f77a
reverted some of my drop highlight changes
2010-02-04 13:09:10 +01:00
Klaas Pieter Annema
5f0a60f61c
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-02-04 10:35:47 +01:00
Tom Robinson
d608d34166
Fixed "phase 1" of press for new loader
2010-02-04 01:00:55 -08:00
Tom Robinson
8bc1c7445d
export fileExecuterForPath (and use exports.fileExecuterForPath internally so it can be overridden for press, etc)
2010-02-03 23:50:16 -08:00
Tom Robinson
985b906c94
Merge branch 'loader' of git@github.com:280north/cappuccino into loader
2010-02-03 22:21:55 -08:00
Randall Luecke
e8ac94f8da
Improved logic for drawing highlighted grid lines.
2010-02-04 00:41:15 -05:00
Randall Luecke
9465dd6941
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-02-04 00:23:19 -05:00
Randall Luecke
28a00fff23
Fixed drawing bug where a the bottom grid line for the selected rows would be drawn white.
2010-02-04 00:19:59 -05:00
Francisco Ryan Tolmasky I
c418481981
Don't require trashing Objective-J when changes are made for them to be picked up.
...
Reviewed by me.
2010-02-03 20:37:24 -08:00
Randall Luecke
2b87b9f3fc
Styled the test for the tableview headers, also added more rows to tabletest for performance testing.
2010-02-03 22:34:13 -05:00
Ross Boucher
683eb993e8
Fix for a broken dirname method on File.
2010-02-03 16:17:12 -08:00
Ross Boucher
e19d6a58c9
Merge branch 'loader' of github.com:280north/cappuccino into loader
2010-02-03 14:58:16 -08:00
Alexander Ljungberg and Ross Boucher
2dccee05bc
Fixed: CPWindow setFrame:display: failed with an "unrecognized selector" exception.
2010-02-03 14:58:01 -08:00
Francisco Ryan Tolmasky I
ac2885afc6
Support base tag again.
...
Reviewed by me.
2010-02-03 14:31:02 -08:00
Nicholas Small
972909902e
Added ApplicationTask#setFrameworks path. The default is local frameworks, you could also use ENV.CAPP_BUILD or pass capp to use the installed frameworks.
2010-02-03 11:43:48 -05:00
Klaas Pieter Annema
b07f2ed186
improved the location of the drag feedback view
2010-02-03 15:25:28 +01:00
Klaas Pieter Annema
ee6160e796
- fixed some issues with variable sized
...
- made CPOutlineView return the last index when dragging the row outside of it's bounds
2010-02-03 15:06:42 +01:00
Klaas Pieter Annema
5940e6913d
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-02-03 10:16:45 +01:00
Klaas Pieter Annema
c85e33c034
Fixed a bug where the CPTextField value was not updated properly when the update happened in the same 'runloop' iteration as becomeFirstResponder
2010-02-03 10:11:32 +01:00
Francisco Ryan Tolmasky I
21ef259e1f
Fix for being too strict when accepting PLISTs and also fixes a regression with erroring when parsing code with shebangs(!).
...
Closes #69 .
Reviewed by me.
2010-02-03 00:31:37 -08:00
Ross Boucher
2b66683167
Update the documentation config based on feedback from:
...
http://cappnotes.worldofkrauss.com/sectins/objective-j-categories/8-miscellaneous/14-api-documentation-fixes.html
If you have graphviz installed, graphs will now be generated.
Ruby and doxygen are prereqs for building the docs.
2010-02-02 18:35:42 -08:00
Ross Boucher
851a0e3d24
Fix a preprocess.js typo.
...
Closes #440 .
2010-02-02 14:52:55 -08:00
Klaas Pieter Annema
8b32f561ec
added selectedRow to CPTableView
2010-02-02 15:57:15 +01:00
Klaas Pieter Annema
1571b6daa2
fixed CPTableView's header view reliance on row height
2010-02-02 15:44:23 +01:00
Klaas Pieter Annema
2d69509d5e
- implemented CPTableView heightOfRow: delegate method
...
- implemented CPOutlineView heightForItem: delegate method
- made CPTableView work correctly with variable sized rows
2010-02-02 14:15:22 +01:00
Klaas Pieter Annema
8edf05c000
made sure the outline view returns a dataview if it's delegate doesn't implement dataViewForTableColumn:item: or if that method returned nil
2010-02-02 11:37:57 +01:00
Klaas Pieter Annema
0e6cef0268
implement outlineview expandItem:expandChildren:
2010-02-02 11:23:24 +01:00
Klaas Pieter Annema
60e4d8e080
Merge remote branch 'cappuccino/jake' into jake
...
Conflicts:
AppKit/CPOutlineView.j
AppKit/CPTableView.j
2010-02-02 10:24:13 +01:00
Randall Luecke
6b58986ec3
Added better artwork for pressed header images for the tableview.
2010-02-02 01:56:53 -05:00
Randall Luecke
e88ec01fca
Fixed bug where the first click on the CPTableView wouldn't select a row if drag and drop was supported.
2010-02-01 23:26:24 -05:00
Francisco Ryan Tolmasky I
8284498722
Merge branch 'jake' into loader
...
Conflicts:
AppKit/Platform/DOM/CPPlatformString.j
2010-02-01 20:19:20 -08:00
Tom Robinson
e088280a5f
Implement description and toString for class objects.
2010-02-01 17:38:13 -08:00
Klaas Pieter Annema
7f78c323e9
implemented outlineView:shouldSelectItem delegate method
2010-02-01 19:08:22 +01:00
Klaas Pieter Annema
77303c1aeb
- implemented CPTableView's dataViewForTableColumn:row: delegate method
...
- implemented CPOutlineView's dataViewForTableColumn:item: delegate method
2010-02-01 19:00:48 +01:00
Randall Luecke
cc74f941c6
Better "fix" for Safari breaking the outlineview... This bug still needs a reduction though.
2010-02-01 11:44:24 -05:00
Randall Luecke
775c1c1c8b
Fixed the outline view again...
2010-02-01 11:11:51 -05:00
cacaodev and Randall Luecke
35a7456302
Fixes rows drawing when alternatingRowBackgroundColors > 2. TableTest showing 3 row colors
2010-02-01 10:59:23 -05:00
Klaas Pieter Annema
4006b35a5e
fixed a bug where the outline view would send drag & drop datasource messages to it's datasource when they are not implemented
2010-02-01 12:39:22 +01:00
Tom Robinson
b562280503
press cleanup
2010-02-01 02:33:41 -08:00
Klaas Pieter Annema
e3a075a6a6
- implemented CPOutlineView drag & drop
...
- improved CPTableView drag & drop feedback
2010-02-01 11:22:57 +01:00
Klaas Pieter Annema
8c534c6d33
Merge branch 'outlineview' into jake
2010-02-01 11:17:15 +01:00
Klaas Pieter Annema
82be6c243c
Merge branch 'jake' into enstore_jake
...
Conflicts:
AppKit/CPTableView.j
2010-02-01 11:07:42 +01:00
Klaas Pieter Annema
5b8ee5dd1b
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
...
Conflicts:
AppKit/CPTableView.j
2010-02-01 11:03:27 +01:00
Randall Luecke
050a132bd5
Initial documentation of CPTableView.
2010-02-01 03:40:09 -05:00
Randall Luecke
146bff6766
Initial documentation of CPTableView
2010-02-01 03:27:03 -05:00
Francisco Ryan Tolmasky I
cd98bce331
Turned off logging by default, removed unecessary logs, and fixed bug where turning of logs broke the build.
...
Reviewed by me.
2010-01-31 23:59:58 -08:00
Randall Luecke
a2d3723c7a
Merge branch 'jake-table' into jake
2010-02-01 02:38:32 -05:00
Randall Luecke
ecb88a87ad
Added proper grid drawing for highlighted rows. Closing issues #369 Also fixing bug where top row would not draw its background when clipped
2010-02-01 02:33:04 -05:00
Ross Boucher
3f2813932a
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-31 23:07:11 -08:00
Ross Boucher
c2223e3942
Closes #429 . This should actually resolve the issue by simply removing the potential race condition entirely.
2010-01-31 23:06:23 -08:00
Randall Luecke
2dc0839d36
Fixed bug where CPButtonBar would not display anything until resized. Closes issue #151 .
2010-02-01 00:58:30 -05:00
Tom Robinson
97ef1d1781
Added persistent history to objj repl.
2010-01-31 19:41:58 -08:00
Francisco Ryan Tolmasky I
e64a9a7ab9
Fix for objj command line tool not working.
...
Reviewed by me.
2010-01-31 18:36:36 -08:00
Francisco Ryan Tolmasky I
d4f3f83212
Fix for nib2cib not working with new loader.
...
Reviewed by me.
2010-01-31 17:28:51 -08:00
Randall Luecke
1488f3ed58
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-01-31 19:02:20 -05:00
Randall Luecke
26945bde42
Removed commented out code and fixed a bug where the pressed state was still set when you drag the mouse from outside the bounds of the header and let go.
2010-01-31 18:58:32 -05:00
Ross Boucher
c911dd8aa6
Slight order change. This really should not matter.
2010-01-31 15:37:06 -08:00
Ross Boucher
1c81e0eee0
Closes #429 . Doesn't necessarily address the root cause however.
...
The problem stems from a bug in Safari which is allowing callbacks
to interrupt running code (which should be impossible in JavaScript).
The change essentially makes it so that in the case where this happens,
which is rare, we'll end up accidentally creating an extra iframe.
This isn't ideal, but it also isn't harmful, versus the current
situation where code will simply break.
2010-01-31 15:13:07 -08:00
Ross Boucher
5366713790
Closes #429 . Doesn't necessarily address the root cause however.
...
The problem stems from a bug in Safari which is allowing callbacks
to interrupt running code (which should be impossible in JavaScript).
The change essentially makes it so that in the case where this happens,
which is rare, we'll end up accidentally creating an extra iframe.
This isn't ideal, but it also isn't harmful, versus the current
situation where code will simply break.
2010-01-31 15:07:23 -08:00
Ross Boucher
e9940d060a
Merge branch 'loader' of git@github.com:280north/cappuccino into loader
2010-01-31 14:01:32 -08:00
Ross Boucher
605e905f3e
Missing a local assignment of the task variable in one of our jake additions. Causes failures on non cappuccino builds.
2010-01-31 14:00:12 -08:00
cacaodev and Randall Luecke
11d30566bf
CPTableHeaderView: change background in -layoutSubviews instead of -setThemeState: ; Added a CPThemeStatePressed used privately, makes things easier for custom headers
2010-01-31 16:31:25 -05:00
Francisco Ryan Tolmasky I
0942f9fac3
Replaced instances of non-compressable words.
...
Reviewed by me.
2010-01-31 13:14:51 -08:00
Francisco Ryan Tolmasky I
7b303b6529
Removed unused functions.
...
Reviewed by me.
2010-01-31 12:48:26 -08:00
Ross Boucher
6a9040989d
Merge branch 'jake' into loader
2010-01-31 12:32:41 -08:00
Ross Boucher
840e9c7671
When removing an item from the collection view, we now unconditionally unhighlight it.
...
We also reapply highlights after reloading finishes.
Closes #248 .
2010-01-31 12:29:38 -08:00
Randall Luecke
1d9e2f8169
Changed drawn gradients to aristo art.
2010-01-31 01:55:45 -05:00
Francisco Ryan Tolmasky I
8c9f302b67
Added debug stuff.
...
Reviewed by me.
2010-01-30 21:08:18 -08:00
Ross Boucher
44f23cd8ac
Merge branch 'loader' of git@github.com:280north/cappuccino into loader
2010-01-30 19:24:47 -08:00
Ross Boucher
c88f781509
Fix for Cib connections not being available in IE.
2010-01-30 19:23:45 -08:00
Francisco Ryan Tolmasky I
3dc578d585
Fix for using setTimeout instead of setNativeTimeout and assuming bundled directories are themselves not bundles.
...
Reviewed by me.
2010-01-30 19:11:12 -08:00
Francisco Ryan Tolmasky I
238d8ff0be
Merge branch 'jake' into loader
2010-01-30 18:09:17 -08:00
Francisco Ryan Tolmasky I
ca5dd0071c
Various IE fixes.
...
Reviewed by me.
2010-01-30 18:08:19 -08:00
cacaodev and Randall Luecke
86fa759f9f
CPTableHeaderView.j: Gradient headers for canvas capable browsers | Bg images for others. Column selection with pressed state.
...
AppController.j: Modified left table in TestTable to test column selection.
CPTableView.j: Added missing ivar; Fixed -deselectRow|Column:
2010-01-30 13:05:48 -05:00
Francisco Ryan Tolmasky I
0bcf8a6626
Trailing comma fix.
...
Reviewed by me.
2010-01-30 01:14:32 -08:00
Francisco Ryan Tolmasky I
d735cd98e7
Fix for FireFox not working.
...
Reviewed by me.
2010-01-30 00:35:59 -08:00
Francisco Ryan Tolmasky I
e25a550d3f
Merge branch 'cheese' into loader
2010-01-29 22:33:32 -08:00
Francisco Ryan Tolmasky I
8a2206656d
Fix for responseXML not working correctly from remote.
...
Reviewed by me.
2010-01-29 22:31:34 -08:00
Ross Boucher
ac68d670a2
Slight error in the sizing for the previous progress bar commit
2010-01-29 22:11:43 -08:00
Ross Boucher
e6539bbed5
MHTML cache testing
2010-01-29 22:11:18 -08:00
Ross Boucher
9db0694677
Remove unused images.
2010-01-29 21:45:03 -08:00
Francisco Ryan Tolmasky I
a4d73330cc
Data URLs.
...
Reviewed by me.
2010-01-29 21:43:23 -08:00
Francisco Ryan Tolmasky I
ea6a983e9b
Merge branch 'jake' of git@github.com:280north/cappuccino into loader
2010-01-29 17:53:36 -08:00
Francisco Ryan Tolmasky I
79cd8603a2
Removed now unecessary CommonJS files.
...
Reviewed by me.
2010-01-29 16:37:53 -08:00
Francisco Ryan Tolmasky I
02cb054b71
Removed unused plist file.
...
Reviewed by me.
2010-01-29 16:21:27 -08:00
Ross Boucher
007cfd589f
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-29 15:18:10 -08:00
Ross Boucher
90d24fd6bf
Temporary update for progress indicators for 0.8
2010-01-29 15:17:21 -08:00
Francisco Ryan Tolmasky I
4b7310d0cb
More consistent naming scheme.
...
Reviewed by me.
2010-01-29 15:16:22 -08:00
Francisco Ryan Tolmasky I
59660032e1
nib2cib fixes.
...
Reviewed by me.
2010-01-29 13:22:44 -08:00
Francisco Ryan Tolmasky I
d9c47ec763
Updated environments and removed environment collections. Also creates separate files for different forms of spriting.
...
Reviewed by me.
2010-01-29 10:54:47 -08:00
Klaas Pieter Annema
a18ea750a6
Fixed a bug where CPOutlineView would not call super's implementation of selectRowIndexes:byExtendingSelection:
2010-01-29 18:01:46 +01:00
Klaas Pieter Annema and Randall Luecke
c423411639
made sure CPControl's trackMouse: doesn't eat mouse events when the tableview is in a drag session #431
2010-01-29 11:36:13 -05:00
Francisco Ryan Tolmasky I
b5ad030e40
Further blend work.
...
Reviewed by me.
2010-01-29 08:04:00 -08:00
Klaas Pieter Annema
bfdbe2a34a
updated the collection view sample to actually move the dragged items
2010-01-29 16:46:56 +01:00
Klaas Pieter Annema
ec5dcb47c9
- fixed a bug where the tableview would send the wrong concluded dropped row to it's datasource
...
- implemented CPCollectioView drop on behavior
2010-01-29 14:58:45 +01:00
Klaas Pieter Annema
436f1d1541
improved the way drop highlights are shown
2010-01-29 14:24:44 +01:00
Klaas Pieter Annema
05873a030f
Merge branch 'jake' into enstore_jake
2010-01-29 12:19:59 +01:00
Klaas Pieter Annema
78083eea48
made sure CPControl's trackMouse: doesn't eat mouse events when the tableview is in a drag session #431
2010-01-29 12:14:08 +01:00
Klaas Pieter Annema
7715da02e7
Merge remote branch 'cappuccino/jake' into jake
...
Conflicts:
AppKit/CPTableView.j
AppKit/CPViewAnimation.j
2010-01-29 12:12:50 +01:00
Klaas Pieter Annema
6798a5777a
added the cpoutlineview test app
2010-01-29 10:57:34 +01:00
Klaas Pieter Annema
2f3ad961e7
Merge remote branch 'cappuccino/jake' into enstore_jake
...
Conflicts:
AppKit/CPTableView.j
2010-01-29 10:56:30 +01:00
Klaas Pieter Annema
dba047187f
improved the way a CPTableView renders the drag & drop highlight between rows
2010-01-29 10:47:49 +01:00
Ross Boucher
03e63f29dc
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-29 00:13:33 -08:00
Ross Boucher
b4cd9c4c45
Remove HTML5 drag and drop support from browsers.
2010-01-29 00:12:51 -08:00
Randall Luecke
b9b2649db9
Cleaned up merge and removed unnessisary selectionIsChanging notification.
2010-01-29 01:37:57 -05:00
Derek Hammer and Randall Luecke
df98483b06
Removing extraneous selection did change notifications
2010-01-29 01:28:09 -05:00
cacaodev and Randall Luecke
37fbeaad02
CPTableView -dragViewForRowsWithIndexes:
...
- Change the way dragViewOffset is computed to conform to cocoa
- Drag exposed rows only
2010-01-29 01:22:38 -05:00
Francisco Ryan Tolmasky I
794d8a754c
Make blendtask work with new system.
...
Reviewed by me.
2010-01-28 16:24:18 -08:00
Ross Boucher
b081debf88
Missing #include for the platform header.
...
Closes #412 .
2010-01-28 15:49:03 -08:00
Nicholas Small
36c6c9bfa6
Merge branch 'jake' of github.com:280north/cappuccino into jake
2010-01-28 17:59:08 -05:00
Nicholas Small
bda5ea1c59
Rewrote CPFlashView implementation to be fully cross-browser and standards compliant.
2010-01-28 17:58:50 -05:00
Nicholas Small
5ccf6eefc0
Changed CPFlashMovie -fileName to -filename.
2010-01-28 17:58:08 -05:00
Francisco Ryan Tolmasky I
06261559fc
Improvements for CommonJS.
...
Reviewed by me.
2010-01-28 14:19:23 -08:00
Klaas Pieter Annema
477d2f9d82
fixed the disclosure triangle highlighting behavior
2010-01-28 20:10:14 +01:00
Klaas Pieter Annema
0cb66ddc6e
set the default CPTableColumn dataview's center vertical-alignment (because it looks better)
2010-01-28 18:52:01 +01:00
Klaas Pieter Annema
99df7f6acb
- further implemented CPOutlineView drag & drop support
...
- implemented a work around in CPPlatformWindow+DOM.j for the javascript drop event never being fired
2010-01-28 16:54:50 +01:00
Tom Robinson
0791fa0ad3
Eliminate a couple accidental globals.
2010-01-28 00:18:40 -08:00
Tom Robinson
9811327672
press whitespace cleanup
2010-01-27 22:37:26 -08:00
Tom Robinson
60f2eaadf5
Modify press to inspect cibs for dependent classes.
2010-01-27 22:36:28 -08:00
Tom Robinson
5478c640cc
Refactor of press's objj-analysis-tools in prep for inspecting cibs.
2010-01-27 22:35:19 -08:00
Tom Robinson
7fe3b115f1
Remove legacy image spriting code from press.
2010-01-27 20:46:35 -08:00
Tom Robinson
3ee63b754c
Remove theme bundle loading in press for now.
2010-01-27 17:54:28 -08:00
Tom Robinson
378b6c12f3
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-27 17:54:03 -08:00
Tom Robinson
ee5817e480
Cleanup objj arguments story. objj-executable and "objj path/to/main.j" are now consistent.
2010-01-27 17:53:05 -08:00
Ross Boucher
a354b4acd5
Temporary fix for 0.8 for copy/paste behavior in CPTextField.
...
Closes #407 .
2010-01-27 16:36:39 -08:00
Tom Robinson
8e87a4a941
Make bootstrap warning very explicit.
2010-01-27 10:17:36 -08:00
Francisco Ryan Tolmasky I
42712166e9
Added FileRequest abstraction on top of HTTPRequest to allow synchronous loading in CommonJS.
...
Reviewed by me.
2010-01-27 07:50:37 -08:00
Francisco Ryan Tolmasky I
2bc31de69d
Removed alerts.
...
Reviewd by me.
2010-01-27 04:01:11 -08:00
Francisco Ryan Tolmasky I
fcfeb29be5
Changed #define from RHINO to COMMONJS. Re-enabled recently added document-load-waiting.
...
Reviewed by me.
2010-01-27 03:58:49 -08:00
Francisco Ryan Tolmasky I
a64a270e25
Merge branch 'jake' of git@github.com:280north/cappuccino into loader
2010-01-27 03:17:16 -08:00
Francisco Ryan Tolmasky I
96eebc7d1d
Fix for accidentally removing Executable.fileDependencies.
...
Reviewed by me.
2010-01-27 03:16:46 -08:00
Francisco Ryan Tolmasky I
38fd675f51
Performance improvements and bug fixes.
...
Reviewed by me.
2010-01-27 02:55:56 -08:00
Tom Robinson
35adaee1bb
Initial press cib analysis
2010-01-27 02:27:32 -08:00
Klaas Pieter Annema
def314b5ad
removed log statements from cptableview
2010-01-27 11:05:31 +01:00
Klaas Pieter Annema
913a18eaaf
completed tableview merge
2010-01-27 10:40:51 +01:00
unknown
d82b39de19
Remove filename causing problems on Windows as well as line endings in press.
2010-01-27 01:21:32 -08:00
Klaas Pieter Annema
cde5d8709c
Merge remote branch 'cappuccino/jake' into enstore_jake
...
Conflicts:
AppKit/CPTableView.j
2010-01-27 10:08:48 +01:00
Francisco Ryan Tolmasky I
ec210c49c5
Beginnings of new loader.
...
Reviewed by me.
2010-01-27 00:43:54 -08:00
Tom Robinson
07f320def9
Fixed jake tasks for pushing packages to package repo.
2010-01-27 00:08:42 -08:00
Tom Robinson
f5fe15d6cb
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-26 23:50:41 -08:00
Nicholas Small
da146b0873
Move table view header resources into AppKit/Resources.
2010-01-26 10:53:07 -05:00
Paul Baumgart and Ross Boucher
3b7a77ae0c
Minor fix: change emdash to regular hyphen.
2010-01-25 22:21:26 -08:00
tlrobinson
9cb1e28ad1
bootstrap option to install Cappuccino/Objective-J packages.
2010-01-25 20:43:37 -08:00
Ross Boucher
9db7701691
Fixes a bug when changing splitPane status for a CPSplitView.
...
Closes #419 .
2010-01-25 17:03:24 -08:00
Tom Robinson
27aca4c84a
bootstrap.sh warning about shell config
2010-01-25 14:19:30 -08:00
Tom Robinson
4e50244dca
Handle more bootstrap.sh edge cases.
2010-01-25 14:14:34 -08:00
Tom Robinson
0c21724270
Give debug frameworks higher priority in objj.
2010-01-25 13:35:27 -08:00
Tom Robinson
09306aa2cd
Fixed cplutil and updated to use args parser, added lint option, etc.
2010-01-25 12:49:11 -08:00
Randall Luecke
1170673b92
selection did change is no longer posted if selectionShouldChangeInTableView returns NO. Closes 372. Keyboard navigation in tableview now honors selectionShouldChange.
2010-01-24 20:01:58 -05:00
Ross Boucher
712a991c86
Fix a bug introduced by the new document.body code when opening a second platform window.
2010-01-24 15:48:25 -08:00
Ross Boucher
e3cdcbc5ab
Add CPSpaceKeyCode. Closes #424 .
2010-01-24 15:24:59 -08:00
luddep and Ross Boucher
62379b21c1
Quick fix for @"Aristo" being hardcoded in CPAlert.j
2010-01-24 01:17:20 -08:00
Ross Boucher
cfde67742c
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-24 01:15:35 -08:00
Ross Boucher
9b01561127
Fix the collection view resizing behavior.
2010-01-24 01:15:10 -08:00
Randall Luecke
fb89450b90
Refactored keyboard navigation for CPTableView
2010-01-24 03:39:58 -05:00
Ross Boucher
5a8d491f10
Check the Info.plist for a CPDefaultTheme key for the name of the default theme.
...
Closes #418 .
2010-01-24 00:34:35 -08:00
Ross Boucher
7ffb44e394
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-24 00:10:28 -08:00
Ross Boucher
34a5d9e61b
Fix spacing issues in CPViewAnimation.
2010-01-24 00:10:04 -08:00
Randall Luecke
e1d43e3651
Merge branch 'jake-table' into jake
2010-01-24 02:39:31 -05:00
Klaas Pieter Annema and Randall Luecke
c291ad83f1
Implemented visual feedback when dragging in CPTableView
...
Conflicts:
AppKit/CPTableView.j
2010-01-24 02:37:25 -05:00
Klaas Pieter Annema and Ross Boucher
c6a4eb28a8
added cpviewanimation
2010-01-23 23:31:40 -08:00
Randall Luecke
dd4735026a
Reset position of the tableview in tabletest
2010-01-24 02:31:01 -05:00
Ross Boucher
dc0439227e
Add an accessor for the filename on CPFlashMovie
2010-01-23 23:28:39 -08:00
Ross Boucher
00f470763f
Make CPFlashMovie CPCoding compliant.
2010-01-23 18:08:45 -08:00
Klaas Pieter Annema
05b1cfca31
Merge branch 'jake_original' into jake
...
Conflicts:
AppKit/CPTableView.j
2010-01-23 11:38:08 +01:00
cacaodev and Randall Luecke
e40696a7af
CPTableView: drag & drop improvements
...
- Default dragView containing dragged rows, works with discrete rows
- scroll-as-you-drag feature
- draggingEntered returns a drag operation. Rearranged a bit the code.
- fixed dragPoint/target row
- Modified test app so you can drag in both ways and also move indexes internally
2010-01-23 02:56:59 -05:00
Ross Boucher
bc030c42d9
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-22 19:43:21 -08:00
Ross Boucher
7ce72a31c5
Rather than throwing out the entire cappuccino body, throw out a specific div if that div is available.
...
("cappuccino-body"). This let's external libraries, esp. flash ones, add things to the body without
Cappuccino getting rid of them as soon as the page loads.
Closes #421 .
2010-01-22 19:40:33 -08:00
Tom Robinson
cf8989938c
Improved sizeOfString IE workaround
2010-01-22 18:38:25 -08:00
Klaas Pieter Annema
e09b63183c
added cpviewanimation
2010-01-22 20:44:58 +01:00
Klaas Pieter Annema
76717c7177
converted spaces to tabs
2010-01-22 20:37:17 +01:00
Klaas Pieter Annema
6749fa57ad
started implementing CPOutlineView drag & drop support
2010-01-22 20:25:14 +01:00
Klaas Pieter Annema
050b75a2df
Implemented visual feedback when dragging in CPTableView
2010-01-22 20:17:34 +01:00
Randall Luecke
3f730c94ce
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-01-22 10:51:48 -05:00
Randall Luecke
22c931729b
Removed additional references to disabled HUD scrollbar knobs.
2010-01-22 10:50:29 -05:00
Klaas Pieter Annema
cb658826a3
Merge branch 'jake' into enstore_jake
2010-01-22 10:15:34 +01:00
Ross Boucher
3f8c311ea2
Bring windows forward when opening a sheet.
...
Closes #391 .
2010-01-21 23:24:03 -08:00
Randall Luecke
22aa4d359e
Hard coded header view resources into the CPTableView
2010-01-22 02:09:22 -05:00
Ross Boucher
c2880ec8e4
Remove support for HTML5 drag and drop from Chrome, because it doesn't work.
...
We should eventually try and figure out a more specific test for this.
2010-01-21 23:02:12 -08:00
Ross Boucher
108822d4e1
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-21 22:33:06 -08:00
Randall Luecke
f79a926b10
Removed references to disabled scroller knob in HUD CPScroller.
2010-01-22 01:22:03 -05:00
cacaodev and Ross Boucher
4eef234736
Fix a bug where drop was always failing in webkit nighties
2010-01-21 22:04:35 -08:00
Klaas Pieter Annema
5abbdfc094
Merge branch 'jake' into enstore_jake
2010-01-21 15:01:21 +01:00
Klaas Pieter Annema
c44715bef4
added CPSpaceKeyCode to CPResponder
2010-01-21 11:59:28 +01:00
Randall Luecke
b5f55100e9
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-01-20 23:19:18 -05:00
Tom Robinson
4e0404fce6
IE sizeOfString temporary fix.
2010-01-20 17:12:46 -08:00
Tom Robinson
f1874eca8a
Don't use sudo in jake install by default, add "sudo-install" task.
2010-01-20 15:18:51 -08:00
Tom Robinson
2e1d6f2412
Migrate to use INTERPRETER.Context
2010-01-19 16:58:41 -08:00
Tom Robinson
0395287906
Press bundle callbacks for theme/cib --flatten support.
2010-01-19 15:00:43 -08:00
Francisco Ryan Tolmasky I
bda8a5fd6c
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-19 14:46:05 -08:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
ded413481c
Fixed: under certain circumstances controls would not be drawn despite a call to setNeedsDisplay:YES. A typical symptom of this was custom CPViews' drawRect never being called. The error was caused by _CPDisplayServer throwing away its remaining work whenever the display code of a control called setNeedsLayout.
2010-01-19 14:45:47 -08:00
Tom Robinson
a5a6c07b08
Move manual tests to Manual sub dir
2010-01-19 13:16:16 -08:00
Nicholas Small
204df99375
Make CPPanel -becomesKeyOnlyIfNeeded and CPView -needsPanelToBecomeKey work.
2010-01-15 17:23:56 -05:00
Randall Luecke
55dd67a0ad
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-01-14 15:02:53 -05:00
tlrobinson
6040ee4ffc
Fixed args case "objj -Ifoo bar.j"
2010-01-14 12:01:51 -08:00
Randall Luecke
544ed99d98
Merge branch 'jake' of git://github.com/280north/cappuccino into jake
2010-01-14 14:26:02 -05:00
tlrobinson
7546640fba
Correct the args parsing in objj to provide the script name at args[0] instead of "objj"
2010-01-14 11:24:39 -08:00
Francisco Ryan Tolmasky I
daf5b88834
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-13 22:40:01 -08:00
Francisco Ryan Tolmasky I
c36f975bbf
More support for toolbar items and nib2cib. Added support for CPToolbarShowColorsItem.
...
Reviewed by me.
2010-01-13 22:39:15 -08:00
Scott Kyle and Ross Boucher
a5e34d9153
Added CGGeometry to CPTableColumn since it's called from sizeToFit
2010-01-13 20:08:00 -08:00
Ross Boucher
57a63440f9
Remove unnecessary comments.
2010-01-13 20:04:23 -08:00
Francisco Ryan Tolmasky I
e25a227e4d
Fix for updating target/action of toolbar items.
...
Reviewed by me.
2010-01-13 20:03:01 -08:00
Randall Luecke
db7b340b32
Fixed outline view again after scoping fix.
2010-01-13 22:34:39 -05:00
Randall Luecke
7683755137
Fixed scoping issues with last commit.
2010-01-13 22:22:44 -05:00
Randall Luecke
8de71663c2
Fixes for the CPTableView drag operation (selection and drag and drop) after the nasty fix for the outlineview fix for Safari.
2010-01-13 21:30:10 -05:00
cacaodev and Randall Luecke
211a7c7939
Make built-in data views highlightable
2010-01-13 19:36:21 -05:00
Randall Luecke
82ce66af16
Further hack to fix the CPOutlineView which is broken in Safari.
2010-01-13 19:30:11 -05:00
Tom Robinson
df4bc13122
A splash of color in the build tools...
2010-01-13 12:58:26 -08:00
Tom Robinson
8f3661d5a4
Partial support for theme/additional bundles in press.
2010-01-13 12:57:31 -08:00
Tom Robinson
bb31ac11ca
Delete OUTPUT_DIRECTORY if exists and --force on
2010-01-13 03:48:04 -08:00
Tom Robinson
4ef0065c66
Print identifiers in alphabetical order for clarity.
2010-01-13 03:46:27 -08:00
Tom Robinson
476d168a46
Merge branch 'jake' of github.com:280north/cappuccino into jake
2010-01-13 01:57:52 -08:00
Tom Robinson
093c6cdca3
More robust handing of string passed to CPURLRequest instead of CPURLs.
2010-01-13 01:57:04 -08:00
Tom Robinson
345f5e14de
Refactor hardcoded Aristo.blend into CPApplication +defaultThemeName
2010-01-13 01:53:23 -08:00
Paul Baumgart and Francisco Ryan Tolmasky I
5ddfef7eb7
Convert relative paths to absolute when specifying an install_directory for narwhal.
2010-01-13 00:57:44 -08:00
Francisco Ryan Tolmasky I
81d784b5dc
Added missing license.
...
Reviewed by me.
2010-01-12 22:55:58 -08:00
Francisco Ryan Tolmasky I
b0b9a7a294
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-12 22:55:50 -08:00
Francisco Ryan Tolmasky I
e76ee3c96e
A few more changes for CPToolbar nib2cib support and added beginnings of search field support.
...
Reviewed by me.
2010-01-12 22:54:35 -08:00
Francisco Ryan Tolmasky I
24b495ca43
Temporary fix for CPTableView being broken.
...
Reviewed by me.
2010-01-12 22:52:34 -08:00
Tom Robinson
ff4fd1411e
Add --force option, change shorthand --flatten to -l
2010-01-12 22:48:29 -08:00
Francisco Ryan Tolmasky I
03eed5f4f9
Got rid of unecessary code/files.
...
Reviewed by me.
2010-01-12 19:05:22 -08:00
Francisco Ryan Tolmasky I
1c89968b69
nib2cib support for the new CPToolbar/CPToolbarItem, also improved classes to pick up item property changes (i.e, setLabel:, setAction:, etc.) after the toolbar has been initialized
...
Conflicts:
Tools/nib2cib/NSAppKit.j
Tools/nib2cib/NSToolbarItem.j
2010-01-12 19:02:43 -08:00
Tom Robinson
01ce469a0f
Convert objj-analysis-tools.j line endings to Unix style
2010-01-12 18:46:44 -08:00
Tom Robinson
c6347a3cf1
Remove relativeToRootPath
2010-01-12 18:42:03 -08:00
Tom Robinson
bf7e581445
Add URLMap to pressed --flattened bundles.
2010-01-12 17:24:20 -08:00
Tom Robinson
0fe9253d3b
Add some git hooks
2010-01-12 13:05:05 -08:00
Tom Robinson
6a9042fd9c
make narwhal-jsc version check optional
2010-01-12 13:01:11 -08:00
Tom Robinson
9e62fdc0b8
added missing CPNull imports
2010-01-12 12:28:32 -08:00
Tom Robinson
a33b70f8bd
Cleanup of common.jake to properly load built packages, etc.
2010-01-12 03:54:26 -08:00
Tom Robinson
bfc06ed81f
Merge branch 'jake' of github.com:280north/cappuccino into jake
2010-01-12 02:14:41 -08:00
Francisco Ryan Tolmasky I
c3c8ac7ff0
Fix for missing parenthesis causing syntax error.
...
Reviewed by me.
2010-01-12 01:49:06 -08:00
Ross Boucher
bfd0c00708
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-11 22:37:29 -08:00
Ross Boucher
ef0c84072b
Fix the platform identifying code.
...
Fix the longstanding IE refresh bug by ensuring document is ready.
Closes #98 .
2010-01-11 22:33:08 -08:00
Nicholas Small
066972ff75
Some fixes for last commit. Thanks to Jesse Ross.
2010-01-11 16:43:49 -05:00
Nicholas Small
608853d4fa
Added -setFlashVars: and -setParameters: to CPFlashView. Closes #59 .
2010-01-11 14:13:05 -05:00
Francisco Ryan Tolmasky I
1774305c2d
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-10 12:19:08 -08:00
Francisco Ryan Tolmasky I
3295966022
Updated Jake package version number.
...
Reviewed by me.
2010-01-10 12:18:13 -08:00
Randall Luecke
8f43f5a4a1
Added resource for drag and drop image.
2010-01-10 00:37:42 -06:00
Tom Robinson
379f40c1be
Cleanup build dir checking, print deprecation warning for STEAM_BUILD
2010-01-09 15:35:31 -08:00
Randall Luecke
c2282af879
Removed called to super on keyDown which was invoking a scroll in addition to calling scrollRowToVisible.
2010-01-09 14:21:07 -06:00
Tom Robinson
d057b1909f
Point to TextMate bundle
2010-01-08 15:36:36 -08: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
Ross Boucher
2ba4e99114
Merge commit 'luddep/font-improvements' into fonts
2010-01-08 09:43:39 -08:00
Ross Boucher
f61a6ba5ff
Fix an issue where _CPImageAndTextView, if it had an image, wouldn't show the image if it hadn't already been loaded. In other words, it now listens for image load events and redisplays.
2010-01-08 09:34:43 -08:00
luddep
34a6389a92
CPFont now supports multiple font families. Closes #255 .
2010-01-08 18:05:33 +01:00
Francisco Ryan Tolmasky I
b675adbbb0
Fix for text being gone in buttons.
...
Reviewed by me.
2010-01-08 04:03:48 -08:00
Ross Boucher
e46da0e2f2
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-07 22:33:57 -08:00
Francisco Ryan Tolmasky I
44b257a749
Removed spaces at the end of lines.
...
Reviewed by me.
2010-01-07 22:23:32 -08:00
luddep and Ross Boucher
fe2599eb35
buttons now momentarily go the the pressed state when clicked programmatically. Closes #187
2010-01-07 22:17:05 -08:00
Randall Luecke
d791a189bc
added support for HUD scroll bars
2010-01-08 00:15:32 -06:00
Randall Luecke
bbc521a2f3
removed call to scrollRowToVisible: the bug is in clipviews and should not be fixed in the tableview itself.
2010-01-08 00:05:24 -06:00
Francisco Ryan Tolmasky I
56f6da606c
Missing licenses on a few files.
...
Reviewed by me.
2010-01-07 19:33:28 -08:00
Francisco Ryan Tolmasky I
3e098b7479
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-07 19:30:53 -08:00
Francisco Ryan Tolmasky I
7e2fe6d5be
Fix for white flash when loading Cappuccino apps.
...
Reviewed by boucher.
2010-01-07 19:30:17 -08:00
Randall Luecke
c4b2cf9394
Patch for inline editing in CPTableView and clean up of doubleAction:
2010-01-07 20:35:27 -06:00
Randall Luecke
9ac823833a
Fix for TableView drag being started while sometimes selecting
2010-01-07 19:42:31 -06:00
Francisco Ryan Tolmasky I
60132c085c
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2010-01-07 17:12:41 -08:00
Francisco Ryan Tolmasky I
5e14e65eb0
Fix for CPArray test not passing.
...
Reviewed by me.
2010-01-07 16:36:25 -08:00
Randall Luecke
64063fb77d
Support for drag and drop in TableTest
2010-01-07 18:31:59 -06:00
Randall Luecke
aa309ef27c
Implementation of drag and drop, auto resizing columns, keyboard support, scrollToVisible for columns and rows, double click action, deselectAll, and various other bug fixes and features.
2010-01-07 17:34:02 -06: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