Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
- Subject: Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
- From: Antonio Nunes <email@hidden>
- Date: Wed, 16 Apr 2008 09:35:21 +0100
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 (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