• 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: One IBAction, multiple results from multiple methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One IBAction, multiple results from multiple methods


  • Subject: Re: One IBAction, multiple results from multiple methods
  • From: Graham Lee <email@hidden>
  • Date: Thu, 26 Feb 2009 16:36:03 +0000
  • Acceptlanguage: en-US, en-GB
  • Thread-topic: One IBAction, multiple results from multiple methods

On 26/02/2009 16:24, "Paul Sanders" <email@hidden> wrote:

> No, it's an object (or, if you like, an action) represented by a symbol:
>
> // Generated by IB
> #define IDC_CUT      1
> #define IDC_COPY     2
> #define IDC_PASTE    3
>
> // Coded by Joe Soap
> switch (tag)
> {
>     case IDC_CUT:
>         ...
>     case IDC_COPY:
>         ...
>     case IDC_PASTE:
>         ...
> }

You could call it a SELector.

Cheers,
Graham.

--
Graham Lee
Senior Macintosh Software Engineer, Sophos Plc.
+44 1235 540266
http://www.sophos.com/


Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
Company Reg No 2096520. VAT Reg No GB 348 3873 20.
_______________________________________________

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

References: 
 >Re: One IBAction, multiple results from multiple methods (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: One IBAction, multiple results from multiple methods
  • Next by Date: Re: One IBAction, multiple results from multiple methods
  • Previous by thread: Re: One IBAction, multiple results from multiple methods
  • Next by thread: Re: One IBAction, multiple results from multiple methods
  • Index(es):
    • Date
    • Thread