On 25/01/2010, at 5:27 AM, Chunk 1978 wrote: > refactoring code so one method for the same button can handle a small > if/else statement could easily be considered more ideal than having > two separate methods.
No, not really. This is object-oriented programming, having separate methods is effectively just moving the if/else (or switch) back into the runtime. There's little need to also do it yourself. --Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com