🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1857

Re: The IB Object Icon

#1857
From: swede Jim Mynatt
Date: Fri, 20 Nov 1992 22:33
36 lines
1644 bytes
In article <1992Nov3.082658.16279@rdg.dec.com>  
jacksonc@uproar.enet.dec.com (Chris Jackson @ IME) writes:
  > 
  > Is there a simple way to create the sphere icon used to represent
  > objects in IB's File Window ?  Specifically, I would like to have
  > a blue version (like the icon of RenderManager) and have a capital
  > 'F' embossed around the front of it.
  > 
  > Also, once I have my own icon for an object that when instantiated
  > from a palette will appear in the File Window,  how do I ensure that
  > my icon will be displayed ?   I have tried implementing a 'getIBImage'
  > method for my object (using 'NXImage::findImageNamed') but that does
  > not work. 
  > 
  > Thanks in advance for any pointers,
  > 
  > Chris.

--
Implement the following method in your class:

getIBImage
- (NXImage *)getIBImage

Returns the image that's displayed in the File window when an instance of  
this class is created.  By default, Interface Builder provides an image of  
a sphere.  If you want to provide a different image, implement this method  
in your custom class.

From GeneralRef/08_InterfaceBuilder/Protocols
-------------------------------------------------------
James L. Mynatt
Area Systems Engineering Manager
NeXT Computer, Inc.
USPS:	Echelon IV, Suite 400
	9430 Research Blvd.
Technical Details
Message-ID: <5915@rosie.NeXT.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!swede
References: <1992Nov3.082658.16279@rdg.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!swede
From: swede (Jim Mynatt)
Newsgroups: comp.sys.next.programmer
Subject: Re: The IB Object Icon
Message-ID: <5915@rosie.NeXT.COM>
Date: 20 Nov 92 22:33:13 GMT
References: <1992Nov3.082658.16279@rdg.dec.com>
Sender: news@NeXT.COM
Reply-To: jim_mynatt@next.com
Lines: 36