• 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 Validation in a Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbar Item Validation in a Panel


  • Subject: Re: Toolbar Item Validation in a Panel
  • From: "R. Scott Thompson" <email@hidden>
  • Date: Thu, 21 Oct 2004 16:00:44 -0500


On Oct 21, 2004, at 3:56 PM, Amar Sagoo wrote:

Hm, two things I would check if this happened to me:
1) Does something else get set as the toolbar's delegate, overriding your setting (i.e. two setDelegate calls)?
2) A typo in your method header?

Can't really think of anything more scientific, I'm afraid.

What strikes me is that you may be correct. It could be the fact that the system is going to the item's target first and asking if the item should be enabled. Because I don't control the target, the target could be returning "No, it should not be enabled (potentially because a modal dialog is up)". Because the target, whatever that may be, is responding "no" then my code (the delegate) never gets a chance to respond to the message.

Scott

_______________________________________________
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
  • Follow-Ups:
    • Re: Toolbar Item Validation in a Panel
      • From: Amar Sagoo <email@hidden>
References: 
 >Toolbar Item Validation in a Panel (From: "R. Scott Thompson" <email@hidden>)
 >Re: Toolbar Item Validation in a Panel (From: Amar Sagoo <email@hidden>)
 >Re: Toolbar Item Validation in a Panel (From: "R. Scott Thompson" <email@hidden>)
 >Re: Toolbar Item Validation in a Panel (From: Amar Sagoo <email@hidden>)

  • Prev by Date: Tall NSTableView Column Headers
  • Next by Date: Re: Increasing size of NSImage by adding padding
  • Previous by thread: Re: Toolbar Item Validation in a Panel
  • Next by thread: Re: Toolbar Item Validation in a Panel
  • Index(es):
    • Date
    • Thread