• 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: NSTask Progress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask Progress


  • Subject: Re: NSTask Progress
  • From: Todd Heberlein <email@hidden>
  • Date: Fri, 17 Aug 2001 16:49:40 -0700

On 8/16/01 12:30 PM, "David Kopec" <email@hidden> wrote:
> and then be notified when it is finished. What would be
> the easiest way to do this?

Use the NSNotificationCenter. Your could would look something like this:

- (void) awakeFromNib
{
[[NSNotificationCenter defaultCenter] addObserver: self
selector:@selector(notifyThatTaskStopped:)
name: NSTaskDidTerminateNotification
object: nil];
}

- (void)notifyThatTaskStopped: (NSNotification*)notification
{
NSLog(@"The task has ended: %@", [notification name]);
}

Todd


References: 
 >NSTask Progress (From: David Kopec <email@hidden>)

  • Prev by Date: Re: Making help indexing work
  • Next by Date: Re: tcpdump wiggin out?
  • Previous by thread: Re: NSTask Progress
  • Next by thread: Re: NSTask Progress
  • Index(es):
    • Date
    • Thread