Best practice for receiving data
Best practice for receiving data
- Subject: Best practice for receiving data
- From: email@hidden
- Date: Tue, 14 Dec 2010 14:19:05 +1300
Hi everyone,
This is probably an elementary question and I may be using the wrong terminology, so I apologise.
My app takes measurements from a HP Data Acquisition unit (DAU). I push commands out to the DAU and wait for the values returned on a serial port (AMSerialPort).
I have it sort of working now. I have the UI bound to properties in the AppController. I created a custom DAUCommand class which has all the command information and also the keys to the AppController properties, so I write the command to the serial port and wait for the data to return. As the data comes in, I set the values of the AppController properties, which in turn updates the UI. But I feel this is not the best way to go about it.
Eventually I will need to keep the individual measurements for storage in a file.
Has Cocoa got an easy way of doing this type of thing and what is the best practice?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden