X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.h;h=5d2b4d108a0cfebe6c5d5433c0fe60b7cb3f08dc;hp=7a83830fddcb3f165f9715936f7cfdd667ed0080;hb=3dfe18e6224331f1161ddcc057f755d41ff55266;hpb=25dd74a4a34f4ba7ec797360bd8f92cbd7bc758e diff --git a/ConfigsController.h b/ConfigsController.h index 7a83830..5d2b4d1 100644 --- a/ConfigsController.h +++ b/ConfigsController.h @@ -7,32 +7,30 @@ // #import + @class Config; @class TargetController; @interface ConfigsController : NSObject { - NSMutableArray* configs; - IBOutlet NSButton* removeButton; - IBOutlet NSTableView* tableView; - IBOutlet TargetController* targetController; - Config* currentConfig; - Config* neutralConfig; /* last config to be manually selected */ + IBOutlet NSButton *removeButton; + IBOutlet NSTableView *tableView; + IBOutlet TargetController *targetController; } --(IBAction) addPressed: (id)sender; --(IBAction) removePressed: (id)sender; --(void) activateConfig: (Config*)config forApplication: (ProcessSerialNumber*) psn; +- (IBAction)addPressed:(id)sender; +- (IBAction)removePressed:(id)sender; +- (void)activateConfig:(Config *)config forApplication:(ProcessSerialNumber *)psn; --(NSDictionary*) dumpAll; --(void) loadAllFrom: (NSDictionary*) dict; +- (NSDictionary *)dumpAll; +- (void)loadAllFrom:(NSDictionary*) dict; -@property(strong, readonly) Config* currentConfig; -@property(strong, readonly) Config* currentNeutralConfig; -@property(readonly) NSArray* configs; +@property (readonly) Config *currentConfig; +@property (readonly) Config *currentNeutralConfig; +@property (readonly) NSArray *configs; --(void) save; --(void) load; +- (void)save; +- (void)load; --(void) applicationSwitchedTo: (NSString*) name withPsn: (ProcessSerialNumber) psn; +- (void)applicationSwitchedTo:(NSString *)name withPsn:(ProcessSerialNumber)psn; @end