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
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
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
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
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
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