home *** CD-ROM | disk | FTP | other *** search
- /* Example Stuff.
- Trys to connect to the NDCamera and grabs on single frame.
- this enables you to write scripts to sync the VCR (e.g. by using ZAP)
- and the NDCamara.
- */
-
- #import <appkit/appkit.h>
-
- void main(int argc, char *argv[])
- {
- id camera;
-
- camera = [NXConnection connectToName:"localhost/NDCamera" onHost:"*"];
-
- if( camera )
- {
- [camera grab:nil];
- exit(0);
- }
-
- // Oops looks like had no Camera...
- exit( -1 );
- }
-