Re: NSPreferencePane and sheets
Re: NSPreferencePane and sheets
- Subject: Re: NSPreferencePane and sheets
- From: Michael Ash <email@hidden>
- Date: Fri, 9 Jul 2010 21:40:00 -0400
On Fri, Jul 9, 2010 at 7:21 PM, Dave DeLong <email@hidden> wrote:
> Hi everyone,
>
> I'm working on a preference pane and am having issues getting some sheets to work.
>
> I have a button that executes:
>
> NSOpenPanel * open = [NSOpenPanel openPanel];
> //basic configuration
> [NSApp beginSheet:open modalForWindow:[[self mainView] window] delegate:self didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo:NULL];
You need to use the NSOpenPanel method
beginSheetForDirectory:file:types:modalDelegate:contextInfo:. By
bypassing that method, you are probably bypassing a bunch of important
setup code which causes the sheet to not work correctly.
Mike
_______________________________________________
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