On Apr 16, 2008, at 9:06 AM, Jean-Daniel Dupas wrote:

I don't want to start another "Code design" war, but just wonder if doing "Utility Class" is a common practice in obj-c. Unlike Java or other object oriented language, obj-c is a superset of C and support simple functions. Wouldn't it be simpler to declare 4 functions instead of 4 class methods ?

float ANGetSystemVolume();
void ANSetSystemVolume:(float volume);

Don't know about simpler, but it's certainly a valid, and possibly more common, alternative. I don't think I have a pronounced preference for either. I'll just as happily create a functions based implementation if requested.

António

--------------------------------------------------------
Today you are You, that is truer than true.
There is no one alive who is Youer than You.
Today I am Me, and I am freer than free.
There is no one alive who is Me-er than Me.
I am the BEST I can possibly be.

--Dr. Seuss
--------------------------------------------------------


_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to