May 2014
Intermediate to advanced
624 pages
19h 43m
English
I’ve begged the question of what MPRPassCompletionView is. Create a new Objective-C subclass of NSView with that name. You get header and implementation files. MPRPassCompletionView will use the delegate pattern to pull its data from the model. That requires a @protocol to define the method through which the delegate will provide the data. Put this in MPRPassCompletionView.h:
#import <Cocoa/Cocoa.h>@class MPRPassCompletionView;@protocol MPRPassCompletionDelegate <NSObject>- (NSManagedObject *) MPRPassCompletion: (MPRPassCompletionView *) view gameAtIndex: (NSUInteger) index;@end@interface MPRPassCompletionView : NSView@property(nonatomic, assign) IBOutlet id<MPRPassCompletionDelegate> ...