Passer Rating iOS  1.0
iOS demo project for Xcode 4 Unleashed
Passer Rating/Model/Passer.h
Go to the documentation of this file.
00001 //
00002 //  Passer.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 Game;
00014 
00015 @interface Passer : NSManagedObject
00016 {
00017 @private
00018 }
00019 @property (nonatomic, retain) NSString * firstName;
00020 @property (nonatomic, retain) NSString * lastName;
00021 @property (nonatomic, retain) NSString * currentTeam;
00022 @property (nonatomic, retain) NSSet *games;
00023 
00024 @property(nonatomic, readonly, retain) NSString *   fullName;
00025 @property (nonatomic, readonly, retain) NSNumber *      passerRating;
00026 @property (nonatomic, readonly, retain) NSNumber *      attempts;
00027 @property (nonatomic, readonly, retain) NSNumber *      completions;
00028 @property (nonatomic, readonly, retain) NSNumber *      touchdowns;
00029 @property (nonatomic, readonly, retain) NSNumber *      interceptions;
00030 @property (nonatomic, readonly, retain) NSNumber *      yardsPerGame;
00031 @property (nonatomic, readonly, retain) NSNumber *      yards;
00032 @property (nonatomic, readonly, retain) NSDate *        firstPlayed;
00033 @property (nonatomic, readonly, retain) NSDate *        lastPlayed;
00034 @property (nonatomic, readonly, retain) NSArray *       teams;
00035 
00036 @property (nonatomic, readonly) NSMutableDictionary * mutableDictionaryRepresentation;
00037 
00038 + (Passer *) passerWithLastName: (NSString *) last 
00039                       firstName: (NSString *) first 
00040                       inContext: (NSManagedObjectContext *) moc;
00041 
00042 + (NSArray *) passersSortedBy: (NSArray *) descriptors
00043                     inContext: (NSManagedObjectContext *) moc;
00044 
00045 + (NSArray *) allAttributes;
00046 + (NSDictionary *) defaultDictionary;
00047 - (void) setValuesFromDictionary: (NSDictionary *) aDict;
00048 
00049 + (BOOL) removePassersInCSVFile: (NSString *) path 
00050                      forContext: (NSManagedObjectContext *) moc
00051                           error: (NSError **) error;
00052 
00053 @end
00054 
00055 @interface Passer (CoreDataGeneratedAccessors)
00056 - (void)addGamesObject:(Game *)value;
00057 - (void)removeGamesObject:(Game *)value;
00058 - (void)addGames:(NSSet *)value;
00059 - (void)removeGames:(NSSet *)value;
00060 
00061 @end
 All Classes Files Functions Variables Properties Defines