Changeset 413


Ignore:
Timestamp:
Jun 20, 2006, 2:23:14 PM (16 years ago)
Author:
livings124
Message:

cantFindAName didn't make sense for opening files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r412 r413  
    236236}
    237237
    238 - (BOOL) applicationShouldHandleReopen: (NSApplication *) app
    239     hasVisibleWindows: (BOOL) visibleWindows
     238- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
    240239{
    241240    if (!visibleWindows)
     
    278277{
    279278    [NSApp stopModal];
    280     [NSApp replyToApplicationShouldTerminate:
    281         (returnCode == NSAlertDefaultReturn)];
     279    [NSApp replyToApplicationShouldTerminate: returnCode == NSAlertDefaultReturn];
    282280}
    283281
     
    441439    [panel beginSheetForDirectory: nil file: nil types: fileTypes
    442440        modalForWindow: fWindow modalDelegate: self didEndSelector:
    443         @selector( openSheetClosed:returnCode:contextInfo: )
    444         contextInfo: nil];
    445 }
    446 
    447 - (void) cantFindAName: (NSArray *) filenames
     441        @selector(openSheetClosed:returnCode:contextInfo:) contextInfo: nil];
     442}
     443
     444- (void) openFromSheet: (NSArray *) filenames
    448445{
    449446    [self application: NSApp openFiles: filenames];
     
    453450    contextInfo: (void *) info
    454451{
    455     if( code == NSOKButton )
    456         [self performSelectorOnMainThread: @selector(cantFindAName:)
     452    if (code == NSOKButton)
     453        [self performSelectorOnMainThread: @selector(openFromSheet:)
    457454                    withObject: [panel filenames] waitUntilDone: NO];
    458455}
Note: See TracChangeset for help on using the changeset viewer.