<html><body bgcolor="#FFFFFF"><div>Would not be easier to use</div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: 20px; font-family: Consolas, &#39;Courier New&#39;, Courier, mono, serif; line-height: 23px; "><br>
</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: 20px; font-family: Consolas, &#39;Courier New&#39;, Courier, mono, serif; line-height: 23px; "><span class="Apple-style-span" style="font-family: monospace, sans-serif; line-height: 18px; font-size: 15px; color: rgb(34, 34, 34); white-space: pre-wrap; -webkit-text-size-adjust: 100%; "><span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">Environment</span><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">.</span><span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">GetFolderPath</span><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">(</span><span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">Environment</span><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">.</span><span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">SpecialFolder</span><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">.</span><span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">Desktop</span><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; ">);</span></span></span></div>
<div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: 20px; font-family: Consolas, &#39;Courier New&#39;, Courier, mono, serif; line-height: 23px; ">???</span></div>
<div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: 20px; font-family: Consolas, &#39;Courier New&#39;, Courier, mono, serif; line-height: 23px; "><br>
</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); font-size: 20px; font-family: Consolas, &#39;Courier New&#39;, Courier, mono, serif; line-height: 23px; "><span class="Apple-style-span" style="font-family: monospace, sans-serif; line-height: 18px; font-size: 15px; color: rgb(34, 34, 34); white-space: pre-wrap; -webkit-text-size-adjust: 100%; "><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 13px; font: inherit; vertical-align: baseline; "></span></span>Alex </span></div>
<div><br>El 21/08/2011, a las 01:23 a.m., roger_xiong &lt;<a href="mailto:anson.tongbu@gmail.com">anson.tongbu@gmail.com</a>&gt; escribió:<br><br></div><div></div><blockquote type="cite"><div><span>But it seems &quot;~&quot; works in cocoa:</span><br>
<span></span><br><span>- (IBAction)open:(id)sender</span><br><span>{</span><br><span>    NSOpenPanel * openPanel = [NSOpenPanel openPanel]; // e</span><br><span>    SEL sel = @selector(openPanelDidEnd:returnCode:contextInfo:);</span><br>
<span>    [openPanel beginSheetForDirectory:@&quot;~/Documents&quot;</span><br><span>                                               file:nil</span><br><span>                                               types:nil</span><br>
<span>                                               modalForWindow:[table window]</span><br><span>                                               modalDelegate:self</span><br><span>                                               didEndSelector:sel</span><br>
<span>                                               contextInfo:nil];</span><br><span>}</span><br><span></span><br><span>--</span><br><span>View this message in context: <a href="http://mono.1490590.n4.nabble.com/System-IO-Directory-Exists-Question-tp3756936p3758014.html"><a href="http://mono.1490590.n4.nabble.com/System-IO-Directory-Exists-Question-tp3756936p3758014.html">http://mono.1490590.n4.nabble.com/System-IO-Directory-Exists-Question-tp3756936p3758014.html</a></a></span><br>
<span>Sent from the Mono - OSX mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.</span><br><span>_______________________________________________</span><br><span>Mono-osx mailing list</span><br><span><a href="mailto:Mono-osx@lists.ximian.com">Mono-osx@lists.ximian.com</a></span><br>
<span><a href="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</a></span><br></div></blockquote></body></html>