• 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: user-stoppable program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: user-stoppable program


  • Subject: Re: user-stoppable program
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 25 May 2006 08:26:36 -0400


You have not provided enough information for anyone to offer more than a guess. For instance, you say the "Stop It" button is disabled. Have you disabled it in your code or in Interface Builder?


I see that you have an -updateUI method ... could you be disabling (as opposed to *enabling*) the button when this method is called? Do you have the button connected to an outlet so you can say something like [stopItButton setEnabled:YES]?

Again, all we can give you is my best guess with the information you've provided.

--
I.S.


On May 25, 2006, at 4:20 AM, email@hidden wrote:

  Hello all,

in a document-based Cocoa project the window has several table views and
two buttons
``Launch" and ``Stop It", corresponding to the following methods in
MyDocument.m :



-(IBAction) goOnAndOn : (id) sender { while (watchDog) { [self goForward]; [self updateUI]; } }

-(IBAction) stopItAll : (id) sender
{
     watchDog=NO;
}

This does not work at all, because the Button ``Stop It" is disabled when
the program is
busy. What is the proper way to do this ? Should I use delegates ? In
which class ?


Ewan



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: user-stoppable program
      • From: email@hidden
References: 
 >user-stoppable program (From: email@hidden)

  • Prev by Date: NSXLMDocument and malformed XML
  • Next by Date: How to create iApp style windows
  • Previous by thread: user-stoppable program
  • Next by thread: Re: user-stoppable program
  • Index(es):
    • Date
    • Thread