• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EXC_BAD_ACCESS when calling NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >EXC_BAD_ACCESS when calling NSOpenPanel (From: Darren Wheatley <email@hidden>)

  • Prev by Date: Re: EXC_BAD_ACCESS when calling NSOpenPanel
  • Next by Date: Re: NSTreeController content array bindings
  • Previous by thread: Re: EXC_BAD_ACCESS when calling NSOpenPanel
  • Next by thread: Re: EXC_BAD_ACCESS when calling NSOpenPanel
  • Index(es):
    • Date
    • Thread