Alexander Ljungberg
5724dfe21d
CPDictionary enumerateKeysAndObjectsUsingBlock:.
2012-07-17 20:48:52 +01:00
Aparajita Fishman
c4dc9c8bdb
CPDictionary key methods
...
keysOfEntriesPassingTest:
keysOfEntriesWithOptions:passingTest:
keysSortedByValueUsingComparator:
2012-07-15 09:27:04 -07:00
Alexander Ljungberg
bc370a2a5a
Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-14 21:12:17 +01:00
Aparajita Fishman
e2ead56256
Collection KVC fixes, nextObject correctness
...
- Moved common CPArray/CPSet collection KVC operators to _CPCollectionKVCOperators.
- Implemented KVC operator dispatch using Objective-J.
- Fixed infinite loop with empty collection in @min, @max and @sum operators.
- Correctly return valueForUndefinedKey when necessary.
- valueForUndefinedKey reason uses raw description for consistency, class' overridden description may not helpful at all.
- Don't create a forwarder for @ operators with property paths.
- Fixed CPSet -valueForKeyPath to correctly deal with nil/undefined/empty values.
- Added tests for collection KVC operators.
- enumerator -nextObject should always compare against nil for clarity, correctness, and consistency.
2012-04-03 22:16:55 -07:00
Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Vladimir Pouzanov
5d26066e02
Fixed dictionaryWithJSObject on arrays with null values
2011-06-08 14:10:10 +03:00
Klaas Pieter Annema
ead6e4a592
implement CPDictionary's keysSortedByValueUsingSelector
2011-04-28 14:01:04 +02:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Stephen Ierodiaconou
b70018bd80
Import fixes and lint
2010-12-26 01:34:37 +02:00
Francisco Ryan Tolmasky I
d69f46f7ee
More capp_linting.
...
Reviewed by me.
2010-12-09 13:45:29 -08:00
Ross Boucher
a767d2199d
Merge branch 'tollfreefix' of https://github.com/hammerdr/cappuccino into hammerdr-tollfreefix
2010-12-08 13:35:22 -08:00
Alexander Ljungberg
a80732f13a
Whitespace and style cleanup.
2010-10-27 20:44:55 -03:00
Paul Baumgart
ca2ae22f15
Fix non-ASCII characters in CPDictionary.j and CPFormatter.j
2010-09-29 18:21:10 -07:00
Derek Hammer
f85ab24993
Finishing the rest to make them inherit properties of superclasses.
2010-09-06 14:02:52 -05:00
Derek Hammer
4e1766485f
Updating CPDictionary and CPString to both actually subclass.. not just create a new object without inherited properties.
2010-09-06 13:46:27 -05:00
Derek Hammer
a09878dcb4
Adding self checks in toll free bridged objects so that they are subclassable.
2010-09-06 12:07:50 -05:00
Randall Luecke
22c481ff27
Implemented allKeysForObject: in CPDictionary with tests.
2010-08-12 14:18:45 -05:00
Randall Luecke
14fb769582
Removed ambiguity in CPDictionary keys type. Closes #700
2010-08-12 13:29:17 -05:00
Stephen Ierodiaconou and Ross Boucher
b98f0b1427
Apply style rules to Foundation
2010-05-26 08:53:05 -07:00
Ross Boucher
be26ab9201
CPDictionary is now KVO compliant.
2010-05-24 10:09:39 -07:00
Emmanuel Maillard and Ross Boucher
daf7870bab
- add containsKey: method
2010-03-27 13:41:32 -07:00
Ross Boucher
319b9ed00f
Use === not ==.
2010-03-22 14:53:49 -07:00
Alan Rogers and Ross Boucher
35b62ca53f
Updated test and fix for gh issue #539
2010-03-22 14:53:07 -07:00
Alan Rogers and Ross Boucher
4e1e6f3c0b
Little fix for CPDictionary, we should not try and recursively convert null JSON objects.
2010-03-22 14:52:55 -07:00
Francisco Ryan Tolmasky I
272f938f2e
Fix for CPData naming issues, added test cases, and fixed isEqual: for CPDictionary.
...
Reviewed by me.
2010-02-21 23:29:41 -08:00
Francisco Ryan Tolmasky I
7433c38d92
Pulled @each out into a separate feature branch, so as to not conflict with the 0.8 work: http://github.com/280north/cappuccino/tree/@each .
...
Reviewed by me.
2010-02-21 12:31:13 -08:00
Francisco Ryan Tolmasky I
76da7466ec
Fix for CPDictionary CPFastEnumeration.
...
Reviewed by me.
2010-02-16 13:51:02 -08:00
Francisco Ryan Tolmasky I
db949728dd
Add CPFastEnumeration support to CPSet and CPNull.
...
Reviewed by me.
2010-02-15 22:44:52 -08:00
Francisco Ryan Tolmasky I
f95c3ca46a
Adds fast enumeration to Cappuccino. Currently support for Arrays, dictionaries, single objects, and nil.
...
Closes #472 .
Reviewed by me.
2010-02-15 21:46:50 -08:00
Francisco Ryan Tolmasky I
bc53288fca
Fix for failing CPAttributedString test.
...
Reviewed by me.
2010-02-13 16:14:18 -08:00
Francisco Ryan Tolmasky I
a017c0c4a8
Fix for failing CPDictionary tests.
...
Reviewed by me.
2010-02-12 14:09:40 -08:00
Francisco Ryan Tolmasky I
ec210c49c5
Beginnings of new loader.
...
Reviewed by me.
2010-01-27 00:43:54 -08:00
Ross Boucher
cb1cfa4d94
Better support for recursing in CPDictionaryWithJSObject:
2009-12-20 20:32:17 -05:00
Ross Boucher
a98de54db4
A few additions for pretty printing things and getting better error messages
2009-12-11 10:58:07 -08:00
lowell vizon and Francisco Ryan Tolmasky I
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Ross Boucher
f46aa870a7
adding briefs and unifying class header structure
...
Conflicts:
Foundation/CPArray.j
Foundation/CPAttributedString.j
Foundation/CPBundle.j
Foundation/CPCountedSet.j
Foundation/CPIndexSet.j
Foundation/CPJSONPConnection.j
2009-05-30 13:49:10 -07:00
Ross Boucher
f6bd4ddd96
Added a new group Cocoa Compatability for the empty compatability
...
classes like CPMutableArray
Conflicts:
Foundation/CPAttributedString.j
Foundation/CPSet.j
2009-05-30 13:42:57 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Francisco Tolmasky
99c29c5e61
Fix for subclasses not inherting themes, as well as finalizing theme API.
...
Closes #36 .
Closes #109 .
Reviewed by me.
2009-05-10 18:44:23 -07:00
Francisco Tolmasky
862af9cbae
First stab at fixing Themeing API.
...
Reviewed by me.
2009-05-10 13:04:02 -07:00
Vladimir Pouzanov and Francisco Tolmasky
2176785370
Fix for adding initWithObjectsAndKeys: and dictionaryWithObjectsAndKeys: to CPDictionary.
...
Made a few minor changes for speed to Vladimir's commit.
Closes #38 .
Reviewed by me.
2009-05-03 16:52:56 -07:00
Martin Häcker and Francisco Tolmasky
ad866e44f5
Fix for CPMutableDictionary not existing.
...
Closes #13 .
Reviewed by me.
2009-05-03 16:18:19 -07:00
Francisco Tolmasky
880e4dfb3a
Merge branch 'master' into tolmasky
...
Conflicts:
AppKit/CPControl.j
AppKit/CPTextField.j
2009-03-18 17:41:17 -07:00
Francisco Tolmasky
a07211253c
Making CPThemedAttribute more robust.
...
Reviewed by me.
2009-03-09 15:07:29 -07:00
Ross Boucher
3268081d1f
CPDictionary should check for isa's before calling isEqual: in isEqualToDictionary:
2009-03-07 21:54:39 -08:00
Tom Robinson
9890fbd57a
CPDictionary dictionaryWithJSObject methods
2009-02-18 18:41:43 -08:00
Tom Robinson
5b7d6e2e1f
Fixed "objectForKey:" returning undefined instead of nil.
...
Reviewed by tolmasky.
[#194 state:resolved responsible:tlrobinson]
2009-01-03 21:08:46 -08:00
Ross Boucher
9cbefdda28
another typo. silly me.
2008-12-17 18:44:00 -08:00
Ross Boucher
389a44dfc1
typo
2008-12-17 18:39:55 -08:00
Ross Boucher
bc30541b9c
Add 2 missing methods on CPDictionary.
...
[#157 state:resolved milestone:0.6.1]
2008-12-17 18:21:29 -08:00