Re: invoke action
Re: invoke action
- Subject: Re: invoke action
- From: Shaun Wexler <email@hidden>
- Date: Thu, 28 Aug 2003 18:30:41 -0700
On Aug 28, 2003, at 5:26 PM, Pei Xiang wrote:
how can i invoke an action of an object (objectName)
NOT by button-like target/action param, but from
another object's method process ?
"[objectName actionName:sender] ; "didn't work for me.
it says cannot find method.
The "direct" method:
[[object target] performSelector:[object action] withObject:object];
...or the preferred method, using the NSApplication responder chain:
[NSApp sendAction:[object action] to:[object target] from:object];
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.