NSPreferencePane and sheets
NSPreferencePane and sheets
- Subject: NSPreferencePane and sheets
- From: Dave DeLong <email@hidden>
- Date: Fri, 09 Jul 2010 17:21:54 -0600
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];
My sheetDidEnd: selector basically retrieves the filenames out of the open panel.
When I do this, I get an open panel sliding out of System preferences, but the browser area is blank. Everything is collapsed, and selecting folders in my Places or Devices groups doesn't show anything in the browser.
When I click "OK" or "Cancel", the sheet goes away, but the ending selector never fires.
In addition, the next time I click the button, the action fires, but the sheet never appears.
Is there something special I need to be doing to get sheets working? (I'll also add that using runModal instead works properly, but I'd like to use the sheet as I feel it would fit better in the UI than a modal window)
Thanks,
Dave
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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