Re: Connecting menu item to controller in different nib
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.