On Aug 29, 2008, at 08:20, David Reitter wrote:

To create a preference window with a NSToolbar at the top and a tabless NSTabView containing a few panels.
How would I go about connecting the two in Interface Builder?

I can set the NSToolbar selector to invoke takeSelectedTabViewItemFromSender on the NSTabView, which seems promising. But it seems that NSToolbar does not respond to indexOfSelectedItem, as it should for this to work.

The easiest way is probably to use IB to set each toolbar item identifier and its corresponding tab view item to the same string, and bind the tab view's "selectedIdentifier" binding to toolbar.selectedItemIdentifier.


_______________________________________________

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