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 ag...@mac.commailto:ag...@mac.com
wrote:
On Apr 25, 2014, at 5:52 PM, Peters, Brandon
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
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
On Apr 25, 2014, at 5:52 PM, Peters, Brandon bap...@my.fsu.edu 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
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
On Apr 24, 2014, at 10:23 PM, Peters, Brandon bap...@my.fsu.edu 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
Andy,
I get the name of the custom NSToolbarItem, which I should get.
On Apr 24, 2014, at 10:41 PM, Andy Lee ag...@mac.com wrote:
On Apr 24, 2014, at 10:23 PM, Peters, Brandon bap...@my.fsu.edu wrote:
Yesterday, I got the view for the NSToolbarItem to show the desired image by
putting the
Try setting the target/action on the button rather than the toolbar item.
--Andy
On Apr 24, 2014, at 10:47 PM, Peters, Brandon bap...@my.fsu.edu wrote:
Andy,
I get the name of the custom NSToolbarItem, which I should get.
On Apr 24, 2014, at 10:41 PM, Andy Lee ag...@mac.com wrote:
On
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 ag...@mac.com wrote:
Try setting the target/action on the button rather than the toolbar item.
--Andy
On Apr 24, 2014, at 10:47 PM,
On Apr 24, 2014, at 11:15 PM, Peters, Brandon bap...@my.fsu.edu 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
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;
11 matches
Mail list logo