home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7339 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.4 KB

  1. Path: sparky!uunet!rosie!swede
  2. From: swede (Jim Mynatt)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: The IB Object Icon
  5. Message-ID: <5916@rosie.NeXT.COM>
  6. Date: 20 Nov 92 22:35:24 GMT
  7. References: <1992Nov3.082658.16279@rdg.dec.com>
  8. Sender: news@NeXT.COM
  9. Reply-To: jim_mynatt@next.com
  10. Lines: 34
  11.  
  12. In article <1992Nov3.082658.16279@rdg.dec.com>  
  13. jacksonc@uproar.enet.dec.com (Chris Jackson @ IME) writes:
  14.   > 
  15.   > Is there a simple way to create the sphere icon used to represent
  16.   > objects in IB's File Window ?  Specifically, I would like to have
  17.   > a blue version (like the icon of RenderManager) and have a capital
  18.   > 'F' embossed around the front of it.
  19.   > 
  20.   > Also, once I have my own icon for an object that when instantiated
  21.   > from a palette will appear in the File Window,  how do I ensure that
  22.   > my icon will be displayed ?   I have tried implementing a 'getIBImage'
  23.   > method for my object (using 'NXImage::findImageNamed') but that does
  24.   > not work. 
  25.   > 
  26.   > Thanks in advance for any pointers,
  27.   > 
  28.   > Chris.
  29.  
  30. --
  31. Sorry here is a code snippet that should work.
  32.  
  33. - (NXImage *)getIBImage
  34. {
  35.     const char *imageName;
  36.     imageName = "BlueSphereWithF";
  37.     return [NXImage findImageNamed:imageName];
  38. }
  39.  
  40. -------------------------------------------------------
  41. James L. Mynatt
  42. Area Systems Engineering Manager
  43. NeXT Computer, Inc.
  44. USPS:    Echelon IV, Suite 400
  45.         9430 Research Blvd.
  46.