Clean up a bunch of properties; remove unused ones, use automatic ones where possible...
[enjoyable.git] / ConfigsController.h
index 7a83830..e616e1e 100644 (file)
@@ -6,33 +6,24 @@
 //  Copyright 2009 University of Otago. All rights reserved.
 //
 
-#import <Cocoa/Cocoa.h>
 @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;
+@property (readonly) Config *currentConfig;
+@property (readonly) NSArray *configs;
 
--(NSDictionary*) dumpAll;
--(void) loadAllFrom: (NSDictionary*) dict;
+- (IBAction)addPressed:(id)sender;
+- (IBAction)removePressed:(id)sender;
+- (void)activateConfig:(Config *)config;
+- (void)activateConfigForProcess:(NSString *)processName;
 
-@property(strong, readonly) Config* currentConfig;
-@property(strong, readonly) Config* currentNeutralConfig;
-@property(readonly) NSArray* configs;
-
--(void) save;
--(void) load;
-
--(void) applicationSwitchedTo: (NSString*) name withPsn: (ProcessSerialNumber) psn;    
+- (void)save;
+- (void)load;
 
 @end