• 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 Action Not Passed to NSButton...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolbarItem Action Not Passed to NSButton...


  • Subject: NSToolbarItem Action Not Passed to NSButton...
  • From: "Peters, Brandon" <email@hidden>
  • Date: Fri, 25 Apr 2014 02:23:39 +0000
  • Thread-topic: NSToolbarItem Action Not Passed to NSButton...

Yesterday, I got the view for the NSToolbarItem to show the desired image by putting the set image code for the button in the toolbar item’s validate() method, then setting the toolbar item’s view to the button in that method. However, now when I click the toolbar item in the app, the action does not get called even though I used IB to set the action. If I put the code back in the init() method, the default button shows and not what I want, but the action gets called.

What can be done to remedy this?
_______________________________________________

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 Action Not Passed to NSButton...
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: showing load progress for autosaved documents
  • Next by Date: Re: NSToolbarItem Action Not Passed to NSButton...
  • Previous by thread: Re: Framework for ambient light level?
  • Next by thread: Re: NSToolbarItem Action Not Passed to NSButton...
  • Index(es):
    • Date
    • Thread