• 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
Re: Playing around with BWToolKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Playing around with BWToolKit


  • Subject: Re: Playing around with BWToolKit
  • From: Brandon Walkin <email@hidden>
  • Date: Sun, 16 Nov 2008 03:50:15 -0500

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 (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

_______________________________________________

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: Playing around with BWToolKit
      • From: Nathan Kinsinger <email@hidden>
References: 
 >Playing around with BWToolKit (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Finder's sidebar background color
  • Next by Date: Re: Playing around with BWToolKit
  • Previous by thread: Playing around with BWToolKit
  • Next by thread: Re: Playing around with BWToolKit
  • Index(es):
    • Date
    • Thread