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

Alex Soto dxdream at gmail.com
Sun Aug 21 03:31:06 EDT 2011


Would not be easier to use

Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
???

Alex

El 21/08/2011, a las 01:23 a.m., roger_xiong <anson.tongbu at gmail.com>
escribió:

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.
_______________________________________________
Mono-osx mailing list
Mono-osx at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110821/0a3be24d/attachment.html 


More information about the Mono-osx mailing list