Re: EXC_BAD_ACCESS when calling NSOpenPanel
Re: EXC_BAD_ACCESS when calling NSOpenPanel
- Subject: Re: EXC_BAD_ACCESS when calling NSOpenPanel
- From: Graham Cox <email@hidden>
- Date: Tue, 24 Nov 2009 12:01:49 +1100
On 24/11/2009, at 11:51 AM, Darren Wheatley wrote:
> - (IBAction)chooseFile:(id)sender;
> {
> NSOpenPanel *openPanel = [NSOpenPanel openPanel];
> [openPanel setCanChooseDirectories:NO];
> [openPanel setCanCreateDirectories:NO];
> [openPanel beginSheetForDirectory:nil
> file:nil
> types:[NSArray arrayWithObject:@"txt"]
> modalForWindow:window
What is 'window' and where does it come from? Is it valid?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden