Skip to content

Commit

Permalink
Added -objectEnumerator to CPSet.
Browse files Browse the repository at this point in the history
[cappuccino#185 state:resolved].

Reviewed by me.
  • Loading branch information
Francisco Ryan Tolmasky I committed Dec 30, 2008
1 parent b29dc60 commit bec47ec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Foundation/CPSet.j
Expand Up @@ -6,13 +6,13 @@
* Extended by Ross Boucher
* Extended by Nabil Elisa
*
* TODO: Needs to implement CPCoding, CPCopying, CPEnumerator.
* TODO: Needs to implement CPCoding, CPCopying.
*/

@import "CPObject.j"
@import "CPArray.j"
@import "CPNumber.j"
//import "CPEnumerator.j"
@import "CPEnumerator.j"


@implementation CPSet : CPObject
Expand Down Expand Up @@ -163,6 +163,7 @@
- (CPArray)allObjects
{
var array = [];

for (var property in _contents)
{
if (_contents.hasOwnProperty(property))
Expand Down Expand Up @@ -289,7 +290,10 @@
return nil;
}

//- (CPEnumerator)objectEnumerator;
- (CPEnumerator)objectEnumerator
{
return [[self allObjects] objectEnumerator];
}


// Mutable Set Methods
Expand Down

0 comments on commit bec47ec

Please sign in to comment.