Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbars under Leopard and IB 3



I don't know if I understand you problem correctly!?

In my application, I setup the Toolbar completely in IB3. But to get the Items selected, I had to return their IDs in the delegate method like this.

- (NSArray *)toolbarSelectableItemIdentifiers: (NSToolbar *)toolbar
{
return [NSArray arrayWithObjects:[toolItem1 itemIdentifier], [toolItem2 itemIdentifier], nil];
}


To accomplish this, I created IBOutlets for every ToobarItem within my "ToolbarController" and returned the IDs of the Items the way described above.

Hope this helps

regards
Joachim


Am 15.11.2007 um 00:13 schrieb Peter Ammon:


On Nov 14, 2007, at 1:33 PM, Andrew Merenbach wrote:

Hi, all,

I fear that I must be missing something obvious, but how do we set a toolbar item -- instantiated in an Interface Builder 3 .xib file -- to be *selectable*, rather than a normal toolbar item? I read the following document:

<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.DeveloperTools.docset/Contents/Resources/Documents/documentation/DeveloperTools/Conceptual/IB_UserGuide/BuildingaNibFile/chapter_4_section_4.html >

This doesn't appear to be available in IB. If you implement the ordinary toolbar delegate methods, you can return items in addition to those you create in IB, and make those additional items selectable through the delegate method.


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Toolbars under Leopard and IB 3 (From: Andrew Merenbach <email@hidden>)
 >Re: Toolbars under Leopard and IB 3 (From: Peter Ammon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.