Passer Rating iOS
1.0
iOS demo project for Xcode 4 Unleashed
|
00001 // 00002 // Game.h 00003 // Passer Rating 00004 // 00005 // Created by Xcode User on 6/20/11. 00006 // Copyright (c) 2011 Fritz Anderson. All rights reserved. 00007 // 00008 00009 #import <Foundation/Foundation.h> 00010 #import <CoreData/CoreData.h> 00011 #import "SimpleCSVFile.h" 00012 00013 @class Passer; 00014 00024 @interface Game : NSManagedObject 00025 { 00026 @private 00027 } 00028 00030 @property (nonatomic, retain) NSDate * whenPlayed; 00032 @property (nonatomic, retain) NSNumber * touchdowns; 00034 @property (nonatomic, retain) NSNumber * theirScore; 00036 @property (nonatomic, retain) NSString * ourTeam; 00038 @property (nonatomic, retain) NSNumber * completions; 00040 @property (nonatomic, retain) NSNumber * attempts; 00042 @property (nonatomic, retain) NSNumber * interceptions; 00044 @property (nonatomic, retain) NSNumber * ourScore; 00046 @property (nonatomic, retain) NSNumber * yards; 00048 @property (nonatomic, retain) NSString * theirTeam; 00051 @property (nonatomic, retain) Passer *passer; 00052 00053 @property (nonatomic, readonly, retain) NSNumber * passerRating; 00054 @property (nonatomic, readonly) NSMutableDictionary * mutableDictionaryRepresentation; 00055 00056 + (BOOL) loadFromCSVFile: (NSString *) path 00057 intoContext: (NSManagedObjectContext *) moc 00058 error: (NSError **) error; 00059 + (NSUInteger) countInContext: (NSManagedObjectContext *) context; 00060 00061 + (NSDictionary *) defaultDictionary; 00062 + (NSArray *) allAttributes; 00063 + (NSArray *) numericAttributes; 00064 - (void) setValuesFromDictionary: (NSDictionary *) aDict; 00065 00066 @end