objective c - Display image in a cocoa status app -


Hello I have developed a Cocoa Status app when I had a long title for example, it can not be shown And if I put an image in the form of an icon it can not be shown, but if I keep a small title then it works correctly, how can I fix this problem and display the image Am I

  condition item {[[[nsstatusbar systemstatsbar] positioning item: NSSquareStatusItemLength] maintaining]; [Status item set menu: menu]; // [Status Time Setty: @ "Notif"]; [Status item set image: [NSImage imageNamed: @ "image"]]; [Status item set Highlight mode: Yes]; Basically the  
  NSStatusItem * statusItem = [[code]      is the status of the SystemStatusBaseArrayment: NSWRabelStatusEtemLentth] ; NSImage * icon = [NSImage alloc] initWith ...] [position set image: Icon];   

But your image should be the right size (less than 20 * 20)

Comments