Skip to content

Commit

Permalink
Cocoa: Wired up the browse button on the Destination page.
Browse files Browse the repository at this point in the history
This page is ugly, but now functional.
  • Loading branch information
icculus committed May 10, 2009
1 parent cac2477 commit f6f601e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions gui_cocoa.m
Expand Up @@ -322,9 +322,15 @@ - (IBAction)nextClicked:(NSButton *)sender

- (IBAction)browseClicked:(NSButton *)sender
{
// !!! FIXME: write me!
STUBBED("browseClicked");
} // nextClicked
NSOpenPanel *panel = [NSOpenPanel openPanel];
[panel setTitle:[NSString stringWithUTF8String:_("Destination")]];
[panel setAllowsMultipleSelection:NO];
[panel setCanCreateDirectories:YES];
[panel setCanChooseDirectories:YES];
[panel setCanChooseFiles:NO];
if ([panel runModal] == NSOKButton)
[DestinationCombo setStringValue:[panel filename]];
} // browseClicked

- (IBAction)menuQuit:(NSMenuItem *)sender
{
Expand Down Expand Up @@ -369,7 +375,6 @@ - (int)doOptions:(MojoGuiSetupOptions *)opts canBack:(boolean)canBack canFwd:(bo

- (char *)doDestination:(const char **)recommends recnum:(int)recnum command:(int *)command canBack:(boolean)canBack canFwd:(boolean)canFwd
{
// !!! FIXME: write me!
const boolean fwdAtStart = ( (recnum > 0) && (*(recommends[0])) );
int i;

Expand Down

0 comments on commit f6f601e

Please sign in to comment.