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

Re: Environment of NSTask


  • Subject: Re: Environment of NSTask
  • From: Thilo Ettelt <email@hidden>
  • Date: Sat, 27 Apr 2002 13:04:08 +0200

What is strcmp?

The code looks like this:

- (void)doubleClickSong:(id)sender
{
NSNumber* i = [NSNumber numberWithInt:[playlistView selectedRow]];
NSNumber* j = [NSNumber numberWithInt:[songView selectedRow]];

MyPlaylist* thePlaylist = [allPlaylists objectAtIndex:[i intValue]];
MySong* theSong = [[thePlaylist allSongs] objectAtIndex:[j intValue]];

taskArgs = [NSArray arrayWithObject:[NSString stringWithString:[theSong path]]];
taskPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingString:@"/Contents/Resources/mpg123"];

currentIndex = [NSNumber numberWithInt:[songView selectedRow]];

[mp3Task setLaunchPath:taskPath];
[mp3Task setArguments:taskArgs];
[mp3Task launch];
}

I "NSLogged" taskArgs and taskPath. Both seemed to be correct.

The task says this when launched:

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title : Perfect Gentleman Artist: Wyclef Jean
Album : Year :
Comment: by www.charthitz.org (Charts Genre : Unknown

Directory: /Users/thilo/Music/
Playing MPEG stream from (wyclef Jean) Perfect#2AC42.mp3 ...


And then my NSLog appears which is called when the task did end...


- Thilo

Am Samstag den, 27. April 2002, um 12:26, schrieb email@hidden:

You're sending a NULL string to strcmp.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Environment of NSTask (From: email@hidden)

  • Prev by Date: Re: Environment of NSTask
  • Next by Date: Re: C'mon Apple! DECIDE!
  • Previous by thread: Re: Environment of NSTask
  • Next by thread: Re: Environment of NSTask
  • Index(es):
    • Date
    • Thread