Re: [NEWBIE] Sheets problem
Re: [NEWBIE] Sheets problem
- Subject: Re: [NEWBIE] Sheets problem
- From: Thomas Deniau <email@hidden>
- Date: Mon, 25 Jun 2001 19:56:21 +0200
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 ?