Re: NSAlert strategy advice
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