Hi Dave,

If the user isn't able to configure the toolbar, then all you need to do is get a reference to the BWSelectableToolbar and call this method on it:

- (void)switchToItemAtIndex:(int)anIndex animate:(BOOL)shouldAnimate

The index is the raw toolbar index - it's zero based and includes spaces and separators. And in your case you'd pass in NO for animation. In a future version of BWToolkit, I'll likely make this more obvious and base it on the item identifier or the item label rather than the index.

Cheers,
Brandon


On 15-Nov-08, at 8:51 PM, Dave DeLong wrote:

Hey everyone,

I've been playing around with Brandon's new BWToolKit, and I was wondering if there's any way to hook the ToolbarItems up through code. I've got a window with four different sections, and I want to have some NSMenuItems that, when selected, will open the window to the appropriate section.

The closest I've come is to grab all the item identifiers and select them that way, but I was wondering if anyone's found a more robust way to do that.

Thanks,

Dave
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/bwalkin%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to