Re: Toolbars under Leopard and IB 3
Re: Toolbars under Leopard and IB 3
- Subject: Re: Toolbars under Leopard and IB 3
- From: Joachim Deelen <email@hidden>
- Date: Fri, 16 Nov 2007 01:11:25 +0100
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:
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