Re: Toolbar Item Label Refresh
Re: Toolbar Item Label Refresh
- Subject: Re: Toolbar Item Label Refresh
- From: Mike Shields <email@hidden>
- Date: Fri, 25 Feb 2005 17:57:42 -0500
On Feb 25, 2005, at 10:32 AM, Mike Rossetti wrote:
Folks,
I've got a toolbar item for which I'm attempting to toggle the label.
Initially the toolbar item's label is 'Show Summary'. It's supposed
to toggle to 'Hide Summary'.
What happens is that the call to setLabel: newLabel doesn't cause the
label to change. If I bring up customize toolbar, remove the item
and re-add the item the changed label is then properly shown.
The documentation for setLabel claims that this call should refresh
the display.
Any hints?
That should work. I do the same thing for a drawer toggle button in my
validateToolbarItem: method depending on a drawer state. Could it be
some instance where you're doing the label change in the middle of
drawing and the needsDisplay flag gets cleared on you?
-Mike
PS: Hi dude :)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden