• 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: NSOpenPanel Oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel Oddity


  • Subject: Re: NSOpenPanel Oddity
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 4 May 2004 10:11:26 -0500

There isn't enough information to do more than guess...

Are you using the debugger? Do you have a breakpoint set at "-[NSException raise]"?

Is there any log output?

Have you checked the spelling of the name of your callback method, and verified that it is implemented in your class?

-- F

On 3 May 2004, at 4:19 PM, Jean-Olivier Lancttt-D. wrote:

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];
}
_______________________________________________
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.


References: 
 >NSOpenPanel Oddity (From: "Jean-Olivier Lanctôt-D." <email@hidden>)

  • Prev by Date: Using Alert Sheets for multiple methods
  • Next by Date: Re: setHidden: on MacOS 10.2
  • Previous by thread: NSOpenPanel Oddity
  • Next by thread: Re: NSOpenPanel Oddity
  • Index(es):
    • Date
    • Thread