• 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
Problems with reading NSPipe data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with reading NSPipe data


  • Subject: Problems with reading NSPipe data
  • From: Onar Vikingstad <email@hidden>
  • Date: Tue, 20 Aug 2002 00:31:36 +0200

After I installed 10.2, I have problems with running (compiling goes fine) a piece of code:

string=[[NSString alloc] initWithData:[handle readDataToEndOfFile] encoding:NSASCIIStringEncoding];

Would anyone know what could fail here? handle is of type NSFileHandle and is set with [pipe fileHandleForReading]. That data comes from setStandardOutput:pipe in an NSTask.

Has any of this been changed in 3.1, or maybe something in the frameworks? I've been looking, but think (as usual) that it's my own screwup somewhere...

--
Onar Vikingstad - email@hidden
http://www.vikingstad.com
_______________________________________________
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.

  • Prev by Date: Re: How to write an Menu Extra
  • Next by Date: Re(2): SystemIcons.bundle
  • Previous by thread: Re: NSOpenGL and CW
  • Next by thread: Re(2): SystemIcons.bundle
  • Index(es):
    • Date
    • Thread