NSToolbar Problem
NSToolbar Problem
- Subject: NSToolbar Problem
- From: "Ramakrishna Kondapalli" <email@hidden>
- Date: Wed, 7 Jan 2004 12:13:22 +0530
- Thread-topic: NSToolbar Problem
Hi,
I have a cocoa application which creates a toolbar in window. I have
added images in the toolbar. I am able to display the toolbar in the
window with items added, but the images are still disabled. I want to
write some action on click of image. What can be the problem?
In the method :
-(NSToolbarItem *) toolbar: (NSToolbar *)toolbar itemForItemIdentifier:
(NSString *) itemIdent willBeInsertedIntoToolbar:(BOOL) willBeInserted
{
--------
------- some code (setLabel, setPaletteLabel etc)
[toolbarItem setTarget: self];
[toolbarItem setEnabled:YES];
// changePanes method will be called on click of images
in the toolbar
[toolbarItem setAction: @selector(changePanes:)];
}
why [toolbarItem setEnabled:YES]; is not working?
-------------------------------------------------------
Thanks & Regards,
Ramakrishna,
Artesia CCFM,
Kanbay Software (I) Pvt. Ltd.,
A-1, Technology Park, MIDC,
Talwade, Pune 412 114.
India.
Phone : (91)20 - 760 1000 Ext: 1625
Email : email@hidden
Website : www.kanbay.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.