• 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: NSAlert strategy advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAlert strategy advice


  • Subject: Re: NSAlert strategy advice
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 19 Dec 2004 00:17:38 +0100


Am 18.12.2004 um 23:04 Uhr schrieb Bruce Truax:

If you define the integer values with
#define statements in your file then the switch statement can be easy to
read and self documenting.

That's not a very object oriented solution.

Why not pass a selector (or maybe a selector name) and call that? No switch needed and therefore no changes necessary when adding alerts (and corresponding selectors).


Andreas

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSAlert strategy advice
      • From: Bruce Truax <email@hidden>
References: 
 >Re: NSAlert strategy advice (From: Bruce Truax <email@hidden>)

  • Prev by Date: Re: NSAlert strategy advice
  • Next by Date: How to capture a full screen image
  • Previous by thread: Re: NSAlert strategy advice
  • Next by thread: Re: NSAlert strategy advice
  • Index(es):
    • Date
    • Thread