• 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: [NEWBIE] Sheets problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] Sheets problem


  • Subject: Re: [NEWBIE] Sheets problem
  • From: kristin <email@hidden>
  • Date: Mon, 25 Jun 2001 10:30:15 -0700

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?

Kristin

On Saturday, June 23, 2001, at 12:58 AM, Thomas Deniau wrote:

Hi !
I've a small problem : I've three NSWindows, one blank sheet (call it sheet A), an another sheet (sheet B) and a my app's main window, and two NSViews.

I add my first NSView as a subview of A's content view, I display A (using NSApp's beginSheet), and use runModalForWindow:. Then, when the user clicks on a button, I replace this subview with the second view, and when the user clicks on another button, I dismiss the sheet (using stopModal, then endSheet, and then orderOut).

Next I try to display B, using beginSheet & runModalForWindow ... the sheet appears as a normal window (I don't know why). When I dismiss it (stopModal, endSheet, orderOut), sheet A reappears ! can someone help ???

Thanks in advance,

--
Thomas Deniau
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: [NEWBIE] Sheets problem
      • From: Thomas Deniau <email@hidden>
References: 
 >[NEWBIE] Sheets problem (From: Thomas Deniau <email@hidden>)

  • Prev by Date: Plugin Interface
  • Next by Date: Re: Plugin Interface
  • Previous by thread: [NEWBIE] Sheets problem
  • Next by thread: Re: [NEWBIE] Sheets problem
  • Index(es):
    • Date
    • Thread