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: Standard NSToolbarItems



On Thursday, November 29, 2001, at 10:50 AM, Mark T wrote:

I'm having a small problem constructing a toolbar for an application I'm working on. The toolbar items that I create work perfectly, but I'd also like to use a couple of Apple's predefined standard toolbar items. If I just do something like the following, the item itself works and displays correctly in the toolbar, but it shows up as a completely blank object in the customization sheet(no name, no image, but can still be dragged to the toolbar):

[tDict setObject:[[NSToolbarItem alloc] initWithItemIdentifier:NSToolbarFlexibleSpaceItemIdentifier] forKey:@"Flexible Space Item"];

where the delegate methods allow the toolbar to get items from tDict. Any ideas?

Have you studied the Toolbar example code? It'll set you up just fine.

Andre.


References: 
 >Standard NSToolbarItems (From: Mark T <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.