• 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: NSPreferencePane and sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSPreferencePane and sheets
      • From: Dave DeLong <email@hidden>
References: 
 >NSPreferencePane and sheets (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Custom control and cells
  • Next by Date: Re: Custom control and cells
  • Previous by thread: Re: NSPreferencePane and sheets
  • Next by thread: Re: NSPreferencePane and sheets
  • Index(es):
    • Date
    • Thread