cacaodev
9b03abaeef
ViewBasedCib example now uses a separate table delegate, which is the owner of table cell views.
...
It shows that the loaded view (intenal or external) has an outlet owned by the table delegate and is available for initial setup in -awakeFromCib
2012-11-13 18:52:45 +01:00
cacaodev
8a3d832b4c
NSNib.j : use a UUID to create the temp nib file (for safety). Remove ref to NSTableCellView in info message
2012-11-13 18:37:58 +01:00
cacaodev
d2848fc519
Do not search for custom cibs if we are in a cell-based table view
2012-11-13 12:08:37 +01:00
cacaodev
48092bd7ba
makeViewWithIdentifier:owner: search for a custom cib in owner's bundle or main bundle if nil. (was main bundle)
2012-11-13 12:05:03 +01:00
cacaodev
5c15ceedc4
Make the cached list of inexistent custom cibs an ivar
2012-11-13 11:57:18 +01:00
cacaodev
f568a2407b
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-11-13 11:22:03 +01:00
Alexander Ljungberg
f1c6a8bc12
Fixed: Error: Permission denied to access property '_childAppIsStarting' in Firefox.
...
This error would occur when running an app in an iframe which could not access its parent frame.
2012-11-08 17:30:17 +00:00
Antoine Mercadal
0fa499bd61
Makes CPAlert above popovers
2012-10-30 11:09:38 -07:00
Antoine Mercadal
c747a79db9
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-10-29 16:10:15 -07:00
Antoine Mercadal
a1751cc981
Improve Popover's content view resizing
2012-10-29 16:09:09 -07:00
Alexander Ljungberg
797bfeec98
Implement CPPointInRect.
...
This improves source code compatibility with Cocoa when replacing NS with CP.
2012-10-24 15:35:42 +01:00
Alexander Ljungberg
c3c61e1889
- CPBox titleView.
...
This method is the Cappuccino analog to `- NSBox titleCell`.
2012-10-24 15:32:45 +01:00
Alexander Ljungberg
0d9973abb9
Fixed: out of place table headers and other text positioning errors.
...
A line breaking, vertically centred or bottom aligned `_CPImageAndTextView` would not properly recalculate text position when the height of the text changed due to the width of the field changing.
This could cause, for example, table header text to be misaligned if the table was initialised with a zero height.
2012-10-23 16:19:11 +01:00
Alexander Ljungberg
7de4fe7afa
Fixed: automatic table view sort descriptors didn't work for deeper bindings.
...
If a table view column showed for example `arrangedObjects.user.name`, it would try to sort arranged objects by `name` instead of `user.name`.
2012-10-23 15:24:10 +01:00
Alexander Ljungberg
fb155dec58
Allow non-string tooltips.
...
Technically the tooltip should be a `CPString` but if a date or a number is passed this will now work without a crash.
2012-10-23 11:44:21 +01:00
Alexander Ljungberg
90d27133b0
Fixed: relative URLs were deemed to fail the SOP test by web views.
2012-10-23 11:22:24 +01:00
Alexander Ljungberg
0f5d459ed8
Fixed: collection view crash on unepexted drag events.
2012-10-23 11:21:42 +01:00
Alexander Ljungberg
f4dc08f1f8
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-10-22 23:14:08 +01:00
Alexander Ljungberg
4bedd52e16
CPGraphicsContext saveGraphicsState and restoreGraphicsState.
2012-10-22 15:03:32 +01:00
Alexander Ljungberg
391701fdc7
- CPBezierPath addClip and setClip.
...
This enables e.g. a `CPGradient` to be drawn clipped by an arbitrary bezier path.
2012-10-22 15:02:28 +01:00
Antoine Mercadal
a973be2566
fix bad import
2012-10-18 15:26:15 -07:00
Antoine Mercadal
298fd49c55
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2012-10-18 14:23:22 -07:00
Antoine Mercadal
23adbd4407
Improve tooltips API and avoid some sticky tooltips
2012-10-18 14:22:47 -07:00
cacaodev
5b1cf49170
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-10-15 14:23:24 +02:00
Alexander Ljungberg
eba3e95b81
CPBezierPath controlPointBounds and CGPathGetBoundingBox.
2012-10-15 11:10:23 +01:00
Alexander Ljungberg
8819fd5fd7
Improve nib2cib support for NSMatrix based radio groups.
...
Without this fix, a matrix with a target-action pair would crash when the cib was loaded due to the matrix having been replaced with a `CPView` (which cannot take a target-action pair).
Now if the matrix is for radio buttons, the action connection for the matrix is made to the `CPRadioGroup` instead and works as expected when radio selections are made.
2012-10-15 02:55:04 +01:00
Alexander Ljungberg
9c2cb393c2
CGContextIsPathEmpty for non-canvas based platforms.
...
Unfortunately there doesn't seem to be a way to get the current path from a canvas context so this function only works in VML mode for now.
2012-10-15 02:49:11 +01:00
Alexander Ljungberg
ca4e034a3b
CPBezierPath appendBezierPathWithArcFromPoint:toPoint:radius: and CGPathAddArcToPoint.
2012-10-15 02:47:37 +01:00
Alexander Ljungberg
fd138cfae7
- CPBox setTitleFont support.
2012-10-15 01:10:08 +01:00
Alexander Ljungberg
e530831b81
+ CPFont systemFontSizeForControlSize:.
2012-10-15 01:09:21 +01:00
Alexander Ljungberg
7c56ea47dd
Skeleton CPColor colorUsingColorSpaceName:.
...
The method does nothing but is provided for API compatibility with `NSColor`.
2012-10-15 01:00:29 +01:00
Alexander Ljungberg
adb6404a0f
Support Cib/Interface Builder window positioning masks.
...
Without this feature windows could easily end up being placed outside of the screen/browser when loaded in Cappuccino due to e.g. the window position being 100 px from the bottom of a 1418 px tall screen but the browser only being 800 px.
This commit adds support for all "initial position" window masks in Interface Builder except "centre". Position can be specified in current screen space coordinates and then adjusted proportionally to the browser size, or adjusted while preserving a left or right margin and a top or bottom margin.
2012-10-15 00:20:22 +01:00
Alexander Ljungberg
084e0a315f
Clean up.
...
Put `_CPCibWindowTemplate` coding support in its own category to match most Cappuccino classes.
2012-10-14 20:18:48 +01:00
Alexander Ljungberg
c2f9b91fe2
Implicit sort descriptor binding support.
...
Sort descriptor bindings are now automatically established when a table view has a column value binding (normally to an array controller).
2012-10-14 19:39:39 +01:00
Alexander Ljungberg
b629b882b4
Clean up and fix ArrayController1 test.
...
Use `CPValueBinding` instead of `@"value"` in case someone reads this as an example.
2012-10-14 19:32:47 +01:00
Alexander Ljungberg
da91ab9879
Fixed: implicitly set selectionIndexes.
...
`CPTableView`'s `selectionIndexes` binding shouldn't be set automatically unless the content binding was also set automatically (through a table column binding).
Assume that manual content binding implies a desire to manually bind selection indexes (and sort descriptors) as well.
2012-10-14 19:31:53 +01:00
Alexander Ljungberg
a70bc7d953
"Creates Sort Descriptors" CPTableColumn value binding option.
...
With this option an array controller driven table view can be sorted by clicking the table column headers without manually setting up sort descriptor prototypes.
If `CPCreatesSortDescriptorBindingOption` is enabled on a table column value binding, sort descriptors will be created automatically. The default value for this option is YES.
2012-10-14 18:27:25 +01:00
Aparajita Fishman
7614c18fea
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-10-11 12:35:01 -04:00
Aparajita Fishman
c37783c895
Fixed table column header styling
...
- Attributes set in IB are now obeyed.
- Added accessor methods to programmatically style _CPTableColumnHeaderView.
Since we don't have an NSCell and _CPImageAndTextView is supposed to be private, it's better to have the styling methods in _CPTableColumnHeaderView.
2012-10-11 12:34:55 -04:00
Antoine Mercadal
905d23d159
small graphical fix in CPPredicateEditor
2012-10-10 15:33:53 -07:00
Antoine Mercadal
7bf46cb40b
Add support for disabling sudo action
...
you can set CAPP_NOSUDO=1 in your environment to disable any sudo action.
This means that if a command failed as current user, jake
will not try to run it with sudo,and will simply return the error code
2012-10-10 12:24:36 -07:00
Aparajita Fishman
385de88e2f
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-10-08 17:30:40 -04:00
Aparajita Fishman
c2da96e311
CPWebView should be converted to WebView* in the shadow header
2012-10-08 17:30:28 -04:00
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
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
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