NSOpenPanel Oddity
NSOpenPanel Oddity
- Subject: NSOpenPanel Oddity
- From: "Jean-Olivier Lanctôt-D." <email@hidden>
- Date: Mon, 3 May 2004 17:19:26 -0400
I must be missing something very stupid.
When my class gets an -import message, an open panel opens and then
immediately closes. I can see it for half a second.
The didEndSelector does not get called. Heres' -import
- (void)import {
NSOpenPanel *importOpenPanel = [NSOpenPanel openPanel];
[importOpenPanel setTitle:@"Import..."];
[importOpenPanel setPrompt:@"Import..."];
[importOpenPanel beginForDirectory:nil
file:nil
types:[NSArray
arrayWithObjects:@"bm2", nil]
modelessDelegate:self
didEndSelector:@selector(_importPanelDidEnd:returnCode:contextInfo:)
contextInfo:NULL];
}
Thanks,
-J.O.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.