• 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
Forcing toolbar validation...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Forcing toolbar validation...


  • Subject: Forcing toolbar validation...
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Thu, 20 Nov 2008 12:26:13 -0500

I have to disable all toolbar items during a long process... I did it basically by overriding

- (BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem
{
	return !longProcessIsRunning;
}

So that everything is disabled when my process is running, however, once the process is done, the toolbar items are still disabled until I somehow click on one of them... only then they become enabled again...

So I found out that using
validateVisibleItems

Was forcing the re-validation of the items, and making them available when I need them to be... however, the docs clearly state that this method should not be invoked directly... therefore, I am wondering if there is a better alternative to force the re-validation of my items?? Should I just ignore the doc since it's working and this is a particular case?

Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Forcing toolbar validation...
      • From: Peter Ammon <email@hidden>
    • Re: Forcing toolbar validation...
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Re: Fastest way to resize an image?
  • Next by Date: Re: Fastest way to resize an image?
  • Previous by thread: Re: Plist -> array -> tableview
  • Next by thread: Re: Forcing toolbar validation...
  • Index(es):
    • Date
    • Thread