diff --git a/src/SCController.m b/src/SCController.m index 132c322..257d740 100644 --- a/src/SCController.m +++ b/src/SCController.m @@ -140,12 +140,12 @@ - (IBAction)openLocation:(id)sender; - (IBAction)browse:(id)sender; { NSOpenPanel *openPanel = [NSOpenPanel openPanel]; - int result = [openPanel runModalForDirectory:nil file:nil types:nil]; + int result = [openPanel runModal]; if (NSOKButton == result) { [self clear:self]; [self setCanExecute:NO]; - [self setWSDLURLString:[openPanel filename]]; + [self setWSDLURLString:[[openPanel URL] path]]; [self parseWSDL:self]; } }