• 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 14:31:51 -0700

Hi Thomas,
Yes, that is a difficulty with sheets. Because sheets are document-modal as opposed to application-modal, presenting a sheet is not a synchronous operation. That is, you get control back from beginSheet: before the sheet has been dismissed. We do not currently have a way to ask a sheet to run application-modally, which is essentially what you are requesting. I can see how that would be desirable for a single-window application. I'll look into this.

Kristin

On Monday, June 25, 2001, at 10:56 AM, Thomas Deniau wrote:

Le lundi 25 juin 2001, ` 07:30, kristin a icrit :

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?

As I've said in another post, using only beginSheet, endSheet, and orderOut, everything works properly.
But now, the problem is that the function which calls beginSheet: should return the sum of the int values of 2 text fields, and so should wait until the sheet is closed, i.e. the user has validated the values that he has entered into the fields.
Is there a way to do "wait until the sheet is closed" without runModalForWindow ?
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


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

  • Prev by Date: Re: Sheets/modal problem
  • Next by Date: Messing with NSAttributedText
  • Previous by thread: Re: [NEWBIE] Sheets problem
  • Next by thread: Re: [NEWBIE] Sheets problem
  • Index(es):
    • Date
    • Thread