• 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
NSToolbarItem view set to NSButton view, but not showing...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolbarItem view set to NSButton view, but not showing...


  • Subject: NSToolbarItem view set to NSButton view, but not showing...
  • From: "Peters, Brandon" <email@hidden>
  • Date: Wed, 23 Apr 2014 22:13:56 +0000
  • Thread-topic: NSToolbarItem view set to NSButton view, but not showing...

Devs,

I have a custom NSToolbarItem with a NSButton underneath. I set the main and alternate images for the button using [NSImage imageNamed:imageName], then call [toolbaritem setView:view] and pass in the NSButton. But when I run the application, the NSToolbarItem is does not show the image and the look of the toolbar item is the default from IB. The image is of type .icns, with various representations based on Apple’s guidelines.

Any suggestions on how to find the problem would be much appreciated.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSToolbarItem view set to NSButton view, but not showing...
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Memory Leaks and ARC
  • Next by Date: NSToolbarItem view set to NSButton, but not images showing...
  • Previous by thread: Re: Mouse cursors and overlapping sibling NSViews
  • Next by thread: Re: NSToolbarItem view set to NSButton view, but not showing...
  • Index(es):
    • Date
    • Thread