home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7338 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.6 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: <5915@rosie.NeXT.COM>
  6. Date: 20 Nov 92 22:33:13 GMT
  7. References: <1992Nov3.082658.16279@rdg.dec.com>
  8. Sender: news@NeXT.COM
  9. Reply-To: jim_mynatt@next.com
  10. Lines: 36
  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. Implement the following method in your class:
  32.  
  33. getIBImage
  34. - (NXImage *)getIBImage
  35.  
  36. Returns the image that's displayed in the File window when an instance of  
  37. this class is created.  By default, Interface Builder provides an image of  
  38. a sphere.  If you want to provide a different image, implement this method  
  39. in your custom class.
  40.  
  41. From GeneralRef/08_InterfaceBuilder/Protocols
  42. -------------------------------------------------------
  43. James L. Mynatt
  44. Area Systems Engineering Manager
  45. NeXT Computer, Inc.
  46. USPS:    Echelon IV, Suite 400
  47.     9430 Research Blvd.
  48.