|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
email@hidden wrote on Monday, July 17, 2006: >i need to read data from a serial device and wonder >whats the best solution. I'd start with NSFileHandle or just open(). <file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/Reference/Reference.html> <file:///var/tmp/folders.501/TemporaryItems/pb-man/Documentation/open-2.html> Also, I'd read the section on file handling. <file:///Developer/ADC Reference Library/documentation/Cocoa/Conceptual/LowLevelFileMgmt/index.html#//apple_ref/doc/uid/10000055i> >this works (nstask with cat), but maybe its a rather ugly solution: Secondly, stop trying to use NSTask to do everything. NSTask should be the _last_ tool you turn to after all other programmatic solutions prove impossible. You seem to be new to Cocoa (and possibly UNIX) programming, I'd strongly suggest that you begin each new venture by first browsing one of the many "Introduction to" documents in the Cocoa section of the Apple Developer Reference Library. It will save you a lot of wandering around grasping for a solution. -- James Bucanek _______________________________________________ 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
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.