• 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
Bullsheet cured
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bullsheet cured


  • Subject: Bullsheet cured
  • From: Steve Klingsporn <email@hidden>
  • Date: Sun, 27 Oct 2002 01:48:54 -0500

It seems that using the NSApplication.runModalForWindow() is a recipe for pain.

Kristin from Apple says (http://cocoa.mamasam.com/COCOADEV/2001/06/2/5789.php):

"Hi Thomas,
I think you may be getting into a strange state by calling both
beginSheet: and runModalForWindow:. beginSheet: should do what you
want, and there should be no reason to call runModalForWindow: (which is
meant to display a normal looking window which is application modal).
What happens if you just call beginSheet:, then endSheet: and orderOut:
to dismiss your sheet?"

--

I think the reason we're using runModalForWindow with sheets is because Apple's
sample code does...

Removing all of this has greatly improved my sheet code, and now everything
works fine.

I have struggled for several hours with this tonight.

Thanks,
Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Rule List Control?
  • Next by Date: Re: This is bullsheet
  • Previous by thread: Re: Rule List Control?
  • Next by thread: Unicode
  • Index(es):
    • Date
    • Thread