• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSToolbar Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: my application's Help fails to appear
  • Next by Date: RE: Current active window is modal or not
  • Previous by thread: Access individual cell in NSTableView row
  • Next by thread: Re: NSToolbar Problem
  • Index(es):
    • Date
    • Thread