• 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: Connecting menu item to controller in different nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting menu item to controller in different nib


  • Subject: Re: Connecting menu item to controller in different nib
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 25 Jul 2002 00:01:22 +0200

On Wednesday, July 24, 2002, at 10:06 , Matthew Roberts wrote:

[NSApp sendAction:@selector(newLibItem:) to:nil from:sender];

NewLibItem is in turn defined in the document source, where it correctly
runs.

Is there a way to streamline this process? It seems like I should be able
to set the menuitem's target to something other than self--somehow hook it
right into the responder chain so that it checks for newLibItem directly and
finds it in the chain. However, I can't figure out what to setTarget: to.

In Cocoa, usually the simplest and easiest answer is the right one. In this case, you want to set the target simply to nil (as, incidentally, the value in 'to:' in your own code does suggest ;))
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >Re: Connecting menu item to controller in different nib (From: Matthew Roberts <email@hidden>)

  • Prev by Date: Re: off-screen imageview drawing
  • Next by Date: Re: PackageMaker design doc published
  • Previous by thread: Re: Connecting menu item to controller in different nib
  • Next by thread: Design Application
  • Index(es):
    • Date
    • Thread