Search code examples
objective-cmacosnsimageviewnsprogressindicator

Customize NSMenuItem with image and progress indicator


I would like to add an image (Canadian flag) on the right side of the IP address (near the right edge of the menu) and the NSProgressIndicator to the left of the word 'Updating...'.

Can this be done in the view designer or does it need to be done in code? A detailed explanation of either approach would be appreciated.

enter image description here


Solution

  • I needed to do the same thing for a project and used the setView: property.

    enter image description here