• 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: "I. Savant" <email@hidden>
  • Date: Thu, 26 Feb 2009 10:35:10 -0500

On Thu, Feb 26, 2009 at 10:16 AM, Peter Ilberg <email@hidden> wrote:

> Depending on your scenario, you might be able to encode the different cases
> into bitfields. The above function then turns into something like this:

  That's certainly unique. :-)  However, IMO, a bit less readable and
definitely less flexible. Less readable because the relationship
between sender/tag/intention isn't there in front of you. Less
flexible because you can't use the tags as unique control IDs for use
in other situations (because they must be a certain value for this to
work).

  Interesting suggestion, though!

--
I.S.
_______________________________________________

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

  • Follow-Ups:
    • Re: One IBAction, multiple results from multiple methods
      • From: "Paul Sanders" <email@hidden>
References: 
 >One IBAction, multiple results from multiple methods (From: Walker Argendeli <email@hidden>)
 >Re: One IBAction, multiple results from multiple methods (From: "I. Savant" <email@hidden>)
 >Re: One IBAction, multiple results from multiple methods (From: Klaus Backert <email@hidden>)
 >Re: One IBAction, multiple results from multiple methods (From: "I. Savant" <email@hidden>)
 >Re: One IBAction, multiple results from multiple methods (From: "Peter Ilberg" <email@hidden>)

  • Prev by Date: Re: Metrics for a NSTextField
  • Next by Date: Re: renaming a file with special/reserved characters in name
  • 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