Re: One IBAction, multiple results from multiple methods
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