[Mono-osx] System.IO.Directory.Exists Question!

roger_xiong anson.tongbu at gmail.com
Sun Aug 21 02:23:50 EDT 2011


But it seems "~" works in cocoa:

- (IBAction)open:(id)sender
{
    NSOpenPanel * openPanel = [NSOpenPanel openPanel]; // e
    SEL sel = @selector(openPanelDidEnd:returnCode:contextInfo:);
    [openPanel beginSheetForDirectory:@"~/Documents"
                                               file:nil
                                               types:nil
                                               modalForWindow:[table window]
                                               modalDelegate:self
                                               didEndSelector:sel
                                               contextInfo:nil];
}

--
View this message in context: http://mono.1490590.n4.nabble.com/System-IO-Directory-Exists-Question-tp3756936p3758014.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list