home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5636 < prev    next >
Encoding:
Text File  |  1992-08-15  |  1.0 KB  |  40 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!arrocha!roberto
  3. From: roberto@arrocha.charlotte.nc.us (Roberto Arrocha)
  4. Subject: How to add Controls to an app's icon
  5. Message-ID: <1992Aug15.161151.2686@arrocha.charlotte.nc.us>
  6. Keywords: NeXT Appkit
  7. Sender: roberto@arrocha.charlotte.nc.us
  8. Reply-To: roberto@arrocha.charlotte.nc.us
  9. Organization: Roberto E. Arrocha
  10. Date: Sat, 15 Aug 1992 16:11:51 GMT
  11. Lines: 27
  12.  
  13. The subject field pretty much sums it up. I would like to add Control  
  14. objects to the app icons (ala Engage!).
  15.  
  16. I've been able to display the Control objects, but cannot get them to  
  17. respond to mouse events on them (i.e. clicks). Can anyone help?
  18.  
  19. - setInterface
  20. {
  21.     id contentView;
  22.     
  23.     iconWindow = [NXApp appIcon];
  24.     contentView = [iconWindow contentView];
  25.     /* controlsMatrix is Matrix of Buttons */
  26.     [contentView addSubview:controlsMatrix];
  27.     [contentView addSubview:counterField];
  28.     [iconWindow setDelegate:self];
  29.     [iconWindow display];
  30.     [accesoryWindow free];
  31.     return self;
  32. }
  33.  
  34.  
  35. Thanks.
  36.  
  37. -- 
  38. Roberto
  39. NeXTmail: roberto@arrocha.charlotte.nc.us
  40.