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.
AB-19
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