• 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
Series of sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Series of sheets


  • Subject: Series of sheets
  • From: Randall Meadows <email@hidden>
  • Date: Tue, 21 Aug 2007 19:41:39 -0600

I know it can be done, but I can't figure out why, when I follow the sample code, it doesn't work for me.

I display an NSOpenPanel using beginSheetForDirectory. I set the didEndSelector to one of my methods, and it's called appropriately. In that method, I call [panel close], then open my own sheet using [NSApp beginSheet...] just as is shown in the sample code at <http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCascadingSheets.html>. After my task is finished, I then end my sheet with [NSApp endSheet:mySheet]; [mySheet orderOut:self].

The next time I try to open that same NSOpenPanel, all I get is a system beep when I try to execute the beginSheetForDirectory call.

In trying to figure this out, I changed the NSOpenPanel to be modeless (using [openPanel beginForDirectory...]), and then I ended up with the system beep when I tried to run my custom sheet again (got the beep when trying to execute [NSApp beginSheet...].

I would appreciate any pointers to what I seem to be missing.


Thanks! randy _______________________________________________

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: Series of sheets
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Drawing text with alpha
  • Next by Date: Re: Drawing text with alpha
  • Previous by thread: Re: Drawing Text with alpha
  • Next by thread: Re: Series of sheets
  • Index(es):
    • Date
    • Thread