On Fri, Jul 9, 2010 at 7:21 PM, Dave DeLong <davedel...@me.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com