Icon for docklings Icon for docklings
Icon for docklings Icon for docklings
- Subject: Icon for docklings Icon for docklings
- From: <email@hidden>
- Date: Mon, 14 May 2001 12:45:21 GMT
- Send-by: 195.207.101.123 with Mozilla/4.61 (Macintosh; I; PPC)
I'm having difficulties defining the icon for a
dockling. I followed all the instructions coming from
Brian Webster on Stepwise but any icon doesn't
appear.
I have a couple of questions to make the things more
clear:
1) Do I have to use an icon whose the extension is
.icns or is it allowed to use an image (*.tiff) ???
What is the use of different kinds of size (Small
(16x16), Large (32x32), Huge (48x48), Thumbnail
(128x128)) proposed by the software IconComposer ???
What is the standard size for an icon in the dock ???
2) My sample code doesnt make appear any icons. What
is wrong ??? I followed all the instructions coming
from Brian Webster on Stepwise. An image is defined
and the content of the window is replaced.
@implementation RecentItemsDockling
-(id)initWithBundle:(NSBundle*)bundle
window:(NSWindow*)window
{
NSImageView *image_view;
image_view = [[NSImageView alloc]
initWithFrame:NSMakeRect(0,0,48.0,
48.0)];
[image_view setImage:[NSImage
imageNamed:@"AppIcon.icns"]];
[window setContentView:image_view];
[window display];
[super initWithBundle:bundle window:window];
return self;
}
Thanks