setTitle to image - how to do?

Discussion in 'Mac Programming' started by codenamecueball, Aug 22, 2010.

  1. codenamecueball macrumors regular

    Joined:
    Jul 28, 2009
    #1
    I have code that goes
    Code:
    -(void)awakeFromNib{
    	statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];
    	[statusItem setMenu:statusMenu];
    	[statusItem setTitle:@"D2K5"];
    	[statusItem setHighlightMode:YES];
    }
    Now, where it says setTitle, I want it to be an image. How would I do that?


    Shoot, screwed up the title. Can a mod change it to "setTitle to image - how to do?"

    Thanks mod <3
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
  3. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle

Share This Page