home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / aa_m68k_Only / NDCamera.0.21 / Examples / NDCSingleRemoteGrab / NDCSingleRemoteGrab_main.m < prev    next >
Encoding:
Text File  |  1995-07-19  |  430 b   |  24 lines

  1. /*     Example Stuff.
  2.     Trys to connect to the NDCamera and grabs on single frame.
  3.     this enables you to write scripts to sync the VCR (e.g. by using ZAP)
  4.     and the NDCamara.
  5. */
  6.  
  7. #import <appkit/appkit.h>
  8.  
  9. void main(int argc, char *argv[]) 
  10. {
  11.     id    camera;
  12.     
  13.     camera = [NXConnection connectToName:"localhost/NDCamera" onHost:"*"];
  14.  
  15.     if( camera )
  16.     {
  17.         [camera grab:nil];
  18.         exit(0);
  19.     }
  20.     
  21.     // Oops looks like had no Camera...
  22.     exit( -1 );
  23. }
  24.