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
ff8e5ae42e
save _replacedKeys on the class in stead of the object instance
...
reviewed: Ross
2010-07-26 22:48:39 -07: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
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
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
7696b30067
Added tests for CPFormatter and Foundation import.
2010-07-11 16:57:17 -05:00
Randall Luecke
2a4d3507b8
Implementation fix for CPFormatter to conform to documentation.
2010-07-07 19:49:16 -05:00
Randall Luecke
a34dfee752
CPFormatter implementation.
2010-07-06 22:43:30 -05:00
Nicholas Small
f34775b038
CPAttributedString should not call its own -beginEditing or -endEditing.
2010-06-29 14:02:37 -04:00
Andreas and Ross Boucher
a6b7d456f4
Add isLoaded to CFBundle and CPBundle
2010-06-23 20:11:05 -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
5c5412db67
Make didChangeValueForKey work even if willChangeValueForKey was not called.
2010-06-11 14:08:07 -07:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05: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
7c3f94dd87
Merge remote branch 'klaaspieter/bindings-fixes' into bindings
...
Conflicts:
AppKit/CPControl.j
Foundation/CPValueTransformer.j
2010-05-28 10:23:47 -07: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
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
5ff8ddf5f3
Fewer bindings debug log messages.
2010-05-26 19:44:14 -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
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
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 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
2a630a7210
made CPDictionary call [super valueForKey:] on keys prefixed with @
2010-05-25 11:40:45 -07: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
Ross Boucher
be26ab9201
CPDictionary is now KVO compliant.
2010-05-24 10:09:39 -07: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
a9f970459b
Fix for undoManager thowing exception in -canUndo.
2010-05-19 01:33:13 -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
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
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
Ross Boucher
13a5c7f215
indexOf is not a safe operation on arrays.
2010-05-12 16:51:28 -07: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
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