• 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: passing a method name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing a method name?


  • Subject: Re: passing a method name?
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 20 Dec 2009 08:40:41 -0800
  • Thread-topic: passing a method name?

On Sun, 20 Dec 2009 08:18:36 -0500, Chunk 1978 <email@hidden> said:
>i have a bunch of methods that will call one method.  currently, i'm
>passing a string object so the called method will know which method
>had called it, and complete the proper task based on the method that
>called it.
>
>instead of creating strings and passing them, is it possible to pass
>the method name?

What I do in this situation is pass _cmd. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Can't trap uncaught exceptions on Snow Leopard
  • Next by Date: Charisse Marie Napenas/Cebu/Lexmark is out of the office.
  • Previous by thread: Re: passing a method name?
  • Next by thread: Re: passing a method name?
  • Index(es):
    • Date
    • Thread