• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DockIcon with text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: NSLogging a memory address
  • Next by Date: Re: MVC Design Variations?
  • Previous by thread: Re: DockIcon with text
  • Next by thread: Scrollbar doesn't initially update
  • Index(es):
    • Date
    • Thread