Skip to content

Commit

Permalink
Use toggleButton instead of setting the buttons manually
Browse files Browse the repository at this point in the history
  • Loading branch information
halbtuerke committed Jun 25, 2009
1 parent 81b3946 commit 17ac461
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions AppController.m
Expand Up @@ -82,8 +82,7 @@ - (void)inputChooserPanelDidEnd:(NSOpenPanel *)openPanel
if (returnCode == NSOKButton) {
self.inputFilePath = [openPanel filename];
[inputFileField setStringValue:inputFilePath];
[inputChooseButton setTitle:@"Clear"];
// NSLog(@"inputFile: %@", path);
[self toggleButton:inputChooseButton];
}
}

Expand Down Expand Up @@ -113,8 +112,7 @@ - (void)savePanelDidEnd:(NSSavePanel *)savePanel
if (returnCode == NSOKButton) {
self.outputFilePath = [savePanel filename];
[outputFileField setStringValue:outputFilePath];
[outputChooseButton setTitle:@"Clear"];
// NSLog(@"outputFile: %@", path);
[self toggleButton:outputChooseButton];
}
}

Expand Down

0 comments on commit 17ac461

Please sign in to comment.