• 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
Re: Change a NSToolbarItem appearence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change a NSToolbarItem appearence


  • Subject: Re: Change a NSToolbarItem appearence
  • From: Cristian Savu <email@hidden>
  • Date: Mon, 24 Feb 2003 16:35:09 +0200

In the action for your button, you should check a boolean for the
state (running/not running) and then you should call something like :
[sender setImage:[NSImage imageNamed: @"FF"]];
You also have setLabel, setTooltip, so good luck !

Sender is a NSToolbarItem.



Regards, Cristian



On Monday, Feb 24, 2003, at 12:39 Europe/Bucharest, Antonio Faldetta
wrote:

> Hi all, I have a toolbar item that starts a task and another that
> stops it (they actually call the same action). They work fine and I
> validate the one or the other depending on the status of the task
> (isRunning).
> Now I would like to have a single item in order to start/stop the task
> (like the PB run/stop program), but I don't know how to change image,
> label and tooltip of the item once it's been created.
> I tried to remove/insert the item and it works, but it looks ugly.
> I think I should implement some delegate, but I don't know wich one
> and how.
> Any hint will be appreciated.
>
> Thanks
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Change a NSToolbarItem appearence (From: "Antonio Faldetta" <email@hidden>)

  • Prev by Date: Re: Cocoa approachable by non-programmers ?
  • Next by Date: Re: Cocoa approachable by non-programmers ?
  • Previous by thread: Change a NSToolbarItem appearence
  • Next by thread: Re: Change a NSToolbarItem appearence
  • Index(es):
    • Date
    • Thread