• 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: Charles Bennett <email@hidden>
  • Date: Mon, 25 Jun 2001 22:12:26 -0400

Bill Cheeseman wrote:
>
> on 6/25/01 1:56 PM, Thomas Deniau at email@hidden wrote:
>
> > Is there a way to do "wait until the sheet is closed" without
> > runModalForWindow ?
>
> I may misunderstand your question, but isn't this the role of the callback
> routine you need to use with BeginSheet? The callback is called
> automatically when the sheet is closed, and you ought to be able to do just
> about anything in it.


Perhaps not the way he is thinking about the problem.
The method he calls is the one he expects to return the values
with the sum of the sheet buttons. So he desires that the flow goes

Call a -(int) method
in the method begin a sheet and wait for an answer.
return the answer.

Very modal..

If his program MUST hang and wait for the result of the sheet then
perhaps using a sheet is the wrong approach, they are nice, but not for everyting..

Perhaps he should open a model panel with whatever UI he need's in it, and simply
wait...


chuck


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

  • Prev by Date: field editor oddness
  • Next by Date: Re: How doess Cocoa handle SIGINT?
  • Previous by thread: Re: [NEWBIE] Sheets problem
  • Next by thread: Re: [NEWBIE] Sheets problem
  • Index(es):
    • Date
    • Thread