Changeset 2987
- Timestamp:
- 06/19/05 23:30:31 (4 years ago)
- Files:
-
- WiredServer/trunk/Panel/English.lproj/Wired.nib/Lock.tiff (deleted)
- WiredServer/trunk/Panel/English.lproj/Wired.nib/Mark.tiff (deleted)
- WiredServer/trunk/Panel/English.lproj/Wired.nib/info.nib (modified) (2 diffs)
- WiredServer/trunk/Panel/English.lproj/Wired.nib/keyedobjects.nib (modified) (previous)
- WiredServer/trunk/WCConfigController.h (modified) (2 diffs)
- WiredServer/trunk/WCConfigController.m (modified) (3 diffs)
- WiredServer/trunk/WiredServer.xcodeproj/project.pbxproj (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredServer/trunk/Panel/English.lproj/Wired.nib/info.nib
r942 r2987 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 1327 125 446 363 1280 0 1280 1024</string>6 <string>475 146 446 363 0 0 1280 1002 </string> 7 7 <key>IBFramework Version</key> 8 <string> 364.0</string>8 <string>439.0</string> 9 9 <key>IBOpenObjects</key> 10 10 <array> … … 12 12 </array> 13 13 <key>IBSystem Version</key> 14 <string> 7S215</string>14 <string>8B15</string> 15 15 </dict> 16 16 </plist> WiredServer/trunk/WCConfigController.h
r2975 r2987 80 80 81 81 IBOutlet NSButton *_launchAtBootButton; 82 IBOutlet NSButton *_showStatusInMenuBar;83 82 84 83 IBOutlet NSMatrix *_logMethodMatrix; … … 118 117 - (BOOL) requiresAuthorization; 119 118 120 - (IBAction) showStatusInMenuBar:(id)sender;121 119 - (IBAction) touch:(id)sender; 122 120 - (IBAction) setBanner:(id)sender; WiredServer/trunk/WCConfigController.m
r2983 r2987 84 84 [[self bundle] pathForResource:@"Error" ofType:@"tiff"]]; 85 85 86 // --- check if status item is running87 pid = [[NSWorkspace sharedWorkspace] processIdentifierOfCommand:@"Wired Status"];88 [_showStatusInMenuBar setState:(pid != NULL)];89 90 86 // --- load users 91 87 array = [NSMutableArray array]; … … 319 315 [_userPopUpButton setEnabled:enabled]; 320 316 [_groupPopUpButton setEnabled:enabled]; 321 [_showStatusInMenuBar setEnabled:enabled];322 317 [_launchAtBootButton setEnabled:enabled]; 323 318 [_logMethodMatrix setEnabled:enabled]; … … 988 983 989 984 990 - (IBAction)showStatusInMenuBar:(id)sender {991 NSString *path;992 NSNumber *pid;993 994 path = [[self bundle] pathForResource:@"Wired Status" ofType:@"app"];995 pid = [[NSWorkspace sharedWorkspace] processIdentifierOfCommand:@"Wired Status"];996 997 if([sender state]) {998 if(!pid) {999 [[NSWorkspace sharedWorkspace] launchApplication:path];1000 [[NSWorkspace sharedWorkspace] addAutoLaunchedApplication:path hide:NO];1001 }1002 } else {1003 if(pid && [pid intValue] > 0) {1004 kill([pid intValue], SIGTERM);1005 [[NSWorkspace sharedWorkspace] removeAutoLaunchedApplication:path];1006 }1007 }1008 }1009 1010 1011 1012 985 - (IBAction)selectLogFile:(id)sender { 1013 986 NSOpenPanel *openPanel; WiredServer/trunk/WiredServer.xcodeproj/project.pbxproj
r2986 r2987 677 677 runOnlyForDeploymentPostprocessing = 0; 678 678 shellPath = /bin/sh; 679 shellScript = " cp -Rp \"$BUILT_PRODUCTS_DIR/$WRAPPER_NAME\" ~/Library/PreferencePanes/";679 shellScript = "rm -rf \"$HOME/Library/PreferencePanes/$WRAPPER_NAME\"\ncp -Rp \"$BUILT_PRODUCTS_DIR/$WRAPPER_NAME\" \"$HOME/Library/PreferencePanes/\""; 680 680 }; 681 681 A50335AC0864C98900CE6911 /* Run Script (Wired Server) */ = {
