• 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
Validating custom NSToolbarItems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Validating custom NSToolbarItems


  • Subject: Validating custom NSToolbarItems
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 6 Oct 2004 18:16:13 -0500

OK, I've gone to the (annoying) trouble of subclassing NSToolbarItem just so I can actually validate my -setView: based item. Now I have another issue: following the directions in The Fine Manual and calling -setEnabled: from my override of -validate doesn't completely work - the contents of my view get enabled / disabled properly, but the label doesn't get re-enabled until something causes another toolbar validation. Is there some further step I need to take? For now I'm working around it by calling -validateVisibleItems on the toolbar in the cases where I'm going from disabled to enabled, but this seems like a hack. Thoughts?

Thanks,
Glen Simmons

_______________________________________________
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
  • Prev by Date: Re: Using outlets from NSView subclass
  • Next by Date: NSPanel/NSWindow staying key and front
  • Previous by thread: Sample code programmatically create radio button matrix [general techniques]
  • Next by thread: NSPanel/NSWindow staying key and front
  • Index(es):
    • Date
    • Thread