Created
September 8, 2009 14:01
-
-
Save jfahrenkrug/182930 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <Foundation/CPObject.j> | |
@import "Location.j" | |
@import "DemoData.j" | |
@implementation LocationsController : CPObject | |
{ | |
CPArray locations; | |
} | |
- (void)setLocations:(CPArray)someLocations { | |
locations = someLocations; | |
} | |
- (TripDay)locations { | |
return locations; | |
} | |
- (void)loadExampleLocations { | |
var json = [[DemoData exampleJSONString] objectFromJSON]; | |
[self setLocations:[Location locationsFromJSONObjects:json]]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment