Re: NSPreferencePane and sheets

2010-07-12 Thread Michael Ash
On Mon, Jul 12, 2010 at 11:30 AM, Dave DeLong wrote: > That did the trick!  Thanks! > > Out of curiosity, under what circumstances for sheet displaying should I be > using the NSApplication method? That method is for when you're building a completely custom sheet. You'd build the sheet as an NSP

Re: NSPreferencePane and sheets

2010-07-12 Thread Dave DeLong
That did the trick! Thanks! Out of curiosity, under what circumstances for sheet displaying should I be using the NSApplication method? Thanks, Dave On Jul 9, 2010, at 7:40 PM, Michael Ash wrote: > > You need to use the NSOpenPanel method > beginSheetForDirectory:file:types:modalDelegate:con

Re: NSPreferencePane and sheets

2010-07-09 Thread Michael Ash
On Fri, Jul 9, 2010 at 7:21 PM, Dave DeLong 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 modalFor

Re: NSPreferencePane and sheets

2010-07-09 Thread Dave DeLong
Here's some clarification (since I realize my original question may not have made very much sense): I have a button on an NSPreferencePane that executes the following code: NSOpenPanel * open = [NSOpenPanel openPanel]; //basic configuration [NSApp beginSheet:open modalForWindow:[[self mainView]

NSPreferencePane and sheets

2010-07-09 Thread Dave DeLong
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:@select