Skip to content

Commit

Permalink
Updated code flagged by static analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalpardoe committed Aug 30, 2009
1 parent 135df34 commit 32d5ce8
Show file tree
Hide file tree
Showing 7 changed files with 1,293 additions and 1,006 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
build build
*.mode1v3
*.pbxuser *.pbxuser
*.perspectivev3 *.perspectivev3
.DS_Store .DS_Store
2 changes: 1 addition & 1 deletion DPGrowl.m
Expand Up @@ -28,7 +28,7 @@ + (id)alloc


- (void)initializeGrowl - (void)initializeGrowl
{ {
[GrowlApplicationBridge setGrowlDelegate:@""]; [GrowlApplicationBridge setGrowlDelegate:self];
} }


- (void)showGrowlNotification:(NSString *)growlName:(NSString *)growlTitle:(NSString *)growlDescription - (void)showGrowlNotification:(NSString *)growlName:(NSString *)growlTitle:(NSString *)growlDescription
Expand Down
1 change: 1 addition & 0 deletions DPLoginItem.m
Expand Up @@ -53,6 +53,7 @@ + (void)addToLoginItems
NSString *script = [NSString stringWithFormat:@"set appPath to \"%@\" \ntell application \"System Events\" \nmake login item at end with properties {path:appPath, hidden:false} \nend tell", fullPath]; NSString *script = [NSString stringWithFormat:@"set appPath to \"%@\" \ntell application \"System Events\" \nmake login item at end with properties {path:appPath, hidden:false} \nend tell", fullPath];
NSAppleScript *appleScript = [[NSAppleScript alloc] initWithSource:script]; NSAppleScript *appleScript = [[NSAppleScript alloc] initWithSource:script];
[appleScript executeAndReturnError:nil]; [appleScript executeAndReturnError:nil];
[appleScript release];
} }


@end @end
289 changes: 259 additions & 30 deletions ISI_LoginItemView.xib

Large diffs are not rendered by default.

2,000 changes: 1,026 additions & 974 deletions ISI_Menus.xib

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions ISI_MenusController.m
Expand Up @@ -62,13 +62,15 @@ - (IBAction)doSendFile:(id)sender
NSString *sendFilesString = @"tell application \"Bluetooth File Exchange\"\r activate\r end tell"; NSString *sendFilesString = @"tell application \"Bluetooth File Exchange\"\r activate\r end tell";
NSAppleScript *sendFilesScript = [[NSAppleScript alloc] initWithSource:sendFilesString]; NSAppleScript *sendFilesScript = [[NSAppleScript alloc] initWithSource:sendFilesString];
[sendFilesScript executeAndReturnError:nil]; [sendFilesScript executeAndReturnError:nil];
[sendFilesScript release];
} }


- (IBAction)doSetUpDevice:(id)sender - (IBAction)doSetUpDevice:(id)sender
{ {
NSString *setDeviceString = @"tell application \"Bluetooth Setup Assistant\"\r activate\r end tell"; NSString *setDeviceString = @"tell application \"Bluetooth Setup Assistant\"\r activate\r end tell";
NSAppleScript *setDeviceScript = [[NSAppleScript alloc] initWithSource:setDeviceString]; NSAppleScript *setDeviceScript = [[NSAppleScript alloc] initWithSource:setDeviceString];
[setDeviceScript executeAndReturnError:nil]; [setDeviceScript executeAndReturnError:nil];
[setDeviceScript release];
} }


- (IBAction)turnBluetoothOn:(id)sender - (IBAction)turnBluetoothOn:(id)sender
Expand All @@ -82,6 +84,7 @@ - (IBAction)showChangeLog:(id)sender
[NSApp activateIgnoringOtherApps:YES]; [NSApp activateIgnoringOtherApps:YES];
ISI_WindowController *changeLogWindow = [[ISI_WindowController alloc] initWithWindowNibName:@"ISI_ChangeLog"]; ISI_WindowController *changeLogWindow = [[ISI_WindowController alloc] initWithWindowNibName:@"ISI_ChangeLog"];
[changeLogWindow showWindow:self]; [changeLogWindow showWindow:self];
[changeLogWindow release];
} }


- (IBAction)showPreferences:(id)sender - (IBAction)showPreferences:(id)sender
Expand Down
3 changes: 2 additions & 1 deletion ISI_Sync.m
Expand Up @@ -18,7 +18,7 @@ + (void)startSync:(BOOL)defaultsValue
[defaults setObject:[NSDate date] forKey:@"ISI_LastSync"]; [defaults setObject:[NSDate date] forKey:@"ISI_LastSync"];
[[NSUserDefaults standardUserDefaults] synchronize]; [[NSUserDefaults standardUserDefaults] synchronize];


int currentStatus; int currentStatus = 0;


if ([ISI_Bluetooth available]) { if ([ISI_Bluetooth available]) {
if (defaultsValue == TRUE) { if (defaultsValue == TRUE) {
Expand All @@ -32,6 +32,7 @@ + (void)startSync:(BOOL)defaultsValue
NSString *syncNowString = @"tell application \"iSync\"\r if not (synchronize) then\r else\r repeat while (syncing is true)\r delay 5\r end repeat\r quit\r end if\r end tell"; NSString *syncNowString = @"tell application \"iSync\"\r if not (synchronize) then\r else\r repeat while (syncing is true)\r delay 5\r end repeat\r quit\r end if\r end tell";
NSAppleScript *syncNowScript = [[NSAppleScript alloc] initWithSource:syncNowString]; NSAppleScript *syncNowScript = [[NSAppleScript alloc] initWithSource:syncNowString];
[syncNowScript executeAndReturnError:nil]; [syncNowScript executeAndReturnError:nil];
[syncNowScript release];


if ([ISI_Bluetooth available]) { if ([ISI_Bluetooth available]) {
if (defaultsValue == TRUE) { if (defaultsValue == TRUE) {
Expand Down

0 comments on commit 32d5ce8

Please sign in to comment.