Re: DockIcon with text
Re: DockIcon with text
- Subject: Re: DockIcon with text
- From: Rhon Fitzwater <email@hidden>
- Date: Wed, 16 Jul 2003 23:04:12 -0400
Here is how I am setting my image now.
imageView = [[NSImageView alloc] init];
[dmyWindow setBackgroundColor:[NSColor clearColor]];
[myWindow setContentView:imageView];
normal=[[NSImage alloc] initByReferencingFile:[bundle
pathForResource:@"normal" ofType:@"tiff"]];
[self drawImage:normal];
-(void)drawImage:(NSImage*)image
{
[imageView setImage:image];
[myWindow setViewsNeedDisplay:true];
[myWindow display];
}
what I want to do is add a string on top of normal.tiff, so that the
string is centered on the icon. I guess what I basically need is the
code on how to add the string to the image. Can someone show me some
code on how I can do this. I am looking for the simplest way...
Thanks in advance everyone.
-Rhon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.