• 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: Who is the sender?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who is the sender?


  • Subject: Re: Who is the sender?
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 10 Jun 2002 17:57:11 -0700

On Monday, June 10, 2002, at 04:09 PM, Mike Engler wrote:

My app has two popupbuttons each of which contains a
"Custom..." menu item. The "Custom..." menu item
triggers a sheet when selected. In sheetDidEnd, I want
to find out which popupbutton triggered the sheet and
then add a new menu item to the appropriate
popupbutton. How do I determine which popUpButton
triggered the sheet (sent the action message)?

One option: set a tag for each popup, and passing that as the contextInfo in the BeginSheet method -- it'll then be returned to you in the call-back...

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Who is the sender? (From: Mike Engler <email@hidden>)

  • Prev by Date: Re: About the accessibility stuff...
  • Next by Date: Re: http NSURLHandle subclass
  • Previous by thread: Re: Who is the sender?
  • Next by thread: Sample Cocoa Core Foundation XML Parsing Code
  • Index(es):
    • Date
    • Thread