> I'm quite new at cocoa and programming in general, am I got stuck with
> trying to get open dialogs to work. Here's the problem:
[quoted text clipped - 7 lines]
> [openPanel beginSheetForDirectory:@"~/Documents" file:@""
> modalForWindow:dictionaryWindow modalDelegate:self didEndSelector:sel
^^^^^ ^^^^^
Those are your clues that this is a modal operation - that is, it blocks
until it completes.
> contextInfo:nil];
> NSLog(@"Open Dialog Loaded");
[quoted text clipped - 8 lines]
>
> Darwin
If you want your code to continue before the open panel session is
completed, use the modeless counterpart, -[NSOpenPanel
beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo:]
-Peter

Signature
Pull out a splinter to reply.
Darwin Darakananda - 22 Oct 2005 04:58 GMT
Thanks, but do you mind explaining what is the difference between the
two and how I can use the modeless counterpart? I'm a bit confused on
what argument is required. Sorry, I'm completely new at this, this can
be fustrating.
Thanks again,
Darwin