Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-26 Thread Peters, Brandon
Andy, 2 hours after after I sent replied yesterday I got everything to work, images, clicking, and responses from actions. Thanks. Sent from my iPad On Apr 25, 2014, at 11:06 PM, "Andy Lee" mailto:ag...@mac.com>> wrote: On Apr 25, 2014, at 5:52 PM, "Peters, Brandon" mailto:bap...@my.fsu.edu>

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-25 Thread Andy Lee
On Apr 25, 2014, at 5:52 PM, "Peters, Brandon" wrote: > Thank you for the guidance! Clicking twice on the toolbar item in IB revealed > the NSButton Attribute Inspector. However, now the images will not show > despite being set in IB. I tried programmatically to set the images for the > outlet

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-25 Thread Peters, Brandon
Andy, Thank you for the guidance! Clicking twice on the toolbar item in IB revealed the NSButton Attribute Inspector. However, now the images will not show despite being set in IB. I tried programmatically to set the images for the outlet NSButton and got error messages pertaining to “not ready

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Andy Lee
Okay, I just brushed up a bit on toolbars (wow, it's been a *very* long time). How did you create the instance of RBSStopButtonToolbarItem in the nib? From the docs, I learned that you can drag a view (in your case a button) from the IB palette into the Allowed Toolbar Items area. This should

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Peters, Brandon
I tried and nothing. The IBOutlet is on the NSToolbarItem custom class. Here is my custom class: @interface RBSStopButtonToolbarItem : NSToolbarItem { NSButton *_button; } @property (readwrite) NSButton *button; @end @implementation RBSStopButtonToolbarItem @synthesize button = _button;

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Andy Lee
On Apr 24, 2014, at 11:15 PM, "Peters, Brandon" wrote: > My button is inside the customer toolbar item, if I make the button an > outlet, how will I connect to it in IB? You can do it in code when you set it up. See setAction: and setTarget:. I don't know for sure if that'll work -- it's the o

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Peters, Brandon
Andy, My button is inside the customer toolbar item, if I make the button an outlet, how will I connect to it in IB? On Apr 24, 2014, at 10:55 PM, Andy Lee wrote: > Try setting the target/action on the button rather than the toolbar item. > > --Andy > > On Apr 24, 2014, at 10:47 PM, "Peters,

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Andy Lee
Try setting the target/action on the button rather than the toolbar item. --Andy On Apr 24, 2014, at 10:47 PM, "Peters, Brandon" wrote: > Andy, > > I get the name of the custom NSToolbarItem, which I should get. > > On Apr 24, 2014, at 10:41 PM, Andy Lee wrote: > >> On Apr 24, 2014, at 10:2

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Peters, Brandon
Andy, I get the name of the custom NSToolbarItem, which I should get. On Apr 24, 2014, at 10:41 PM, Andy Lee wrote: > On Apr 24, 2014, at 10:23 PM, "Peters, Brandon" wrote: >> Yesterday, I got the view for the NSToolbarItem to show the desired image by >> putting the set image code for the bu

Re: NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Andy Lee
On Apr 24, 2014, at 10:23 PM, "Peters, Brandon" wrote: > 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. > Howev

NSToolbarItem Action Not Passed to NSButton...

2014-04-24 Thread Peters, Brandon
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 doe