Re: Change a NSToolbarItem appearence
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.