• 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: Toolbar Item Label Refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Toolbar Item Label Refresh (From: Mike Rossetti <email@hidden>)

  • Prev by Date: NSOpenPanel with a preview
  • Next by Date: Re: affine transformation of bitmap images
  • Previous by thread: Toolbar Item Label Refresh
  • Next by thread: Loading Cocoa Bundles
  • Index(es):
    • Date
    • Thread