• 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: invoke action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >invoke action (From: Pei Xiang <email@hidden>)

  • Prev by Date: invoke action
  • Next by Date: Re: Comparing NSDecimalNumber to NaN?
  • Previous by thread: invoke action
  • Next by thread: Re: invoke action
  • Index(es):
    • Date
    • Thread