Alexander Ljungberg
a66942b1b1
Fix and tweak toolbar margins.
2012-06-13 01:40:20 +01:00
Alexander Ljungberg
acd3425c43
Dynamic CPToolbar height,
...
* Support for tall custom widgets. You can now finally have that CPTableView you always wanted in your toolbar.
* "Labels only" mode now makes sense, resulting in a narrow text only toolbar instead of a very tall toolbar with centred labels.
* Use any size toolbar icons such as 48x48 and the toolbar adapts automatically (unlike Cocoa).
2012-06-13 01:26:33 +01:00
Alexander Ljungberg
70bc45ba12
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:26:43 +01:00
Alexander Ljungberg
026c210e64
Toolbar CPToolbarDisplayModeIconOnly support.
2012-06-12 23:05:16 +01:00
Alexander Ljungberg
3bc1849041
Improve toolbar item layout.
...
The height of all items is determined by the tallest item, like in Cocoa. But unlike Cocoa our toolbar is presently fixed height so in order to make this look well for small or large items, the whole row of items is now vertically centred, making the allocation of margin above and below automatic.
Furthermore if a toolbar item has a small view or a small icon, it is now centred within the available space above the label. For example, for a tiny icon in one item next to a normal size icon the tiny icon would be centre aligned with the larger icon.
2012-06-12 23:04:33 +01:00
Antoine Mercadal
17668aca17
Merge remote-tracking branch 'upstream/master'
2012-06-12 11:59:26 -07:00
Antoine Mercadal
2a48b0ca54
make actualResizeEvent a private method
2012-06-12 11:57:19 -07:00
Antoine Mercadal
5acc15ea9e
Merge https://github.com/jivadevoe/cappuccino into pr-1545
2012-06-12 11:45:34 -07:00
Malte Tancred
52fff2056b
Fixed code standard issues.
2012-06-12 17:44:17 +02:00
Alexander Ljungberg
2a955884b8
Fix header.
2012-06-11 13:14:00 +01:00
Alexander Ljungberg
ad5403b538
Setting the shadow style just once will do.
2012-06-11 13:13:36 +01:00
cacaodev
4daef7fc07
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-06-10 08:57:30 +02:00
Alexander Ljungberg
f538cbc51d
Re #1560 . Remove obsolete function.
2012-06-10 01:18:56 +01:00
Alexander Ljungberg
e232b18b94
Merge pull request #1560 from mrcarlberg/cappuccino
...
---
I needed to sort a lot of objects and was not impressed by the speed.
Sharing my improvements...
2012-06-10 01:00:40 +01:00
Alexander Ljungberg
fcf62080d6
Re #1562 . Make native comparison more realistic.
...
This might have a small speed implication.
2012-06-10 00:59:08 +01:00
Alexander Ljungberg
58103ce0f3
Re #1562 . Also performance test selector sort.
...
It looks like issue #1560 will cause a different sorting function to be used for selectors vs descriptors so performance of both should be monitored for regressions.
2012-06-10 00:58:27 +01:00
Alexander Ljungberg
0827f584be
Re #1562 . Simplify.
2012-06-10 00:39:37 +01:00
Alexander Ljungberg
f042996e7f
Re #1562 . Only load sort text for tests which use it.
2012-06-09 23:16:52 +01:00
Alexander Ljungberg
7b307a6fb4
Re #1562 . Format code.
2012-06-09 23:08:27 +01:00
Alexander Ljungberg
bb8a7bacdc
Merge pull request #1562 from cacaodev/cappuccino
...
---
for random numeric array and text array.
2012-06-09 16:49:23 +01:00
Martin Carlberg
0696b22971
Fixed formatting
2012-06-08 20:18:22 +02:00
Martin Carlberg
d7ff93f7f2
SortUsingDescriptors: Using the selector in the descriptor instead of always using compare:
2012-06-08 19:48:39 +02:00
cacaodev
0483f9d714
CPArrayPerformanceTest: fixed native sort testing, added tests for random numeric array and text array
2012-06-08 18:19:37 +02:00
Malte Tancred
56c0f7f6f1
Create support sources folder if necessary.
...
Make sure the the xCodeSupport/Sources folder is always
present. The objj tool will fail if it's missing.
The Sources folder could be missing if it's not checked
into a repos for example.
2012-06-08 13:21:47 +02:00
Martin Carlberg
dc30092b60
A very fast sortUsingDescriptors:
...
I needed to sort a lot of objects and was not impressed by the speed.
Sharing my improvements...
2012-06-07 23:25:58 +02:00
cacaodev
25a4a00b16
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-06-07 15:08:51 +02:00
aparajita
7ccd6f842b
Merge pull request #1557 from cacaodev/CPTableView-selectedColumn-typo
...
CPTableView -selectedColumn : missing return statement
2012-06-06 08:08:23 -07:00
cacaodev
299a664b9c
CPTableView -selectedColumn : missing return statement
2012-06-06 14:24:28 +02:00
Alexander Ljungberg
0ed398310f
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-06-02 13:19:13 -07:00
Alexander Ljungberg
55709cb83a
Test CPDate testInitWithString with a date prior to 1970.
...
This verifies that there are no problems with negative time intervals.
2012-06-02 13:18:58 -07:00
Alexander Ljungberg
d0c7796e7c
Match CPDate distantPast and distantFuture with Cocoa.
2012-06-02 13:17:34 -07:00
aparajita
544dff205d
Merge pull request #1556 from cacaodev/CPDate-referenceDate
...
CPDateReferenceDate should be 'Jan 1 2001' instead of 'Feb 1 2001'
2012-06-02 12:41:46 -07:00
Alexander Ljungberg
25763962b2
Code formatting.
2012-06-02 11:53:04 -07:00
Alexander Ljungberg
fc858933be
Re #1556 . Make CPDate testSince1970 agree with new reference date.
2012-06-02 11:32:19 -07:00
Alexander Ljungberg
6877aaaf61
Re #1556 . Unit test CPDate dateWithTimeIntervalSinceReferenceDate:.
2012-06-02 11:27:19 -07:00
Alexander Ljungberg
e4ab1256da
Merge pull request #1556 from cacaodev/cappuccino
...
---
See <https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html#//apple_ref/occ/clm/NSDate/dateWithTimeIntervalSinceReferenceDate :>
2012-06-02 11:23:22 -07:00
cacaodev
f2dd6b5dce
CPDateReferenceDate should be 'Jan 1 2001' instead of 'Feb 1 2001'
2012-06-02 19:38:34 +02:00
Blair Duncan
eeceaa0c9b
unlite if mouse is moved off and cursor up hilites last item if none
2012-06-01 20:17:09 -04:00
Alexander Ljungberg
bc79d57712
Clean up.
2012-05-27 22:21:11 +01:00
cacaodev
36bbab1d84
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-05-27 22:29:39 +02:00
Blair Duncan
59b6ddc29e
Merge branch 'autosaveTableColumnsFix' of github.com:BlairDuncan/cappuccino into autosaveTableColumnsFix
2012-05-26 22:23:49 -04:00
Blair Duncan
f04032aa97
added updated test file to show bug that this fixes
2012-05-26 22:19:34 -04:00
Blair Duncan
96cba7281a
removed unnecessary comment and updated test file
2012-05-26 22:13:22 -04:00
aparajita
954ec26e80
Merge pull request #1551 from ggsato/subclassingDocController
...
fixed shared CPDocumentController instantiation and added its test
2012-05-26 12:44:18 -07:00
cacaodev
63e8c732cc
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-05-26 08:04:10 +02:00
cacaodev
086c0e6ef0
Merge remote-tracking branch 'upstream/master' into CPTableView-content-binding
2012-05-26 08:03:56 +02:00
ggsato
fabe1d8991
formatting and now subclassing is tested by Open a document
2012-05-26 11:08:57 +09:00
Antoine Mercadal
02b65e6dfb
Fix a bug in Nib2Cib.j when configInfo is null
2012-05-25 18:06:05 -07:00
Alexander Ljungberg
aa546374f3
Fixed: typo in aa4eff9.
2012-05-26 00:22:23 +01:00
Alexander Ljungberg
288ec78c3e
Fixed: split view autosave.
...
The fix to prevent incorrect autosaving prevented correct autosaving as well.
2012-05-26 00:04:12 +01:00