• 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: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
      • From: Mike Abdullah <email@hidden>
References: 
 >[ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume (From: Antonio Nunes <email@hidden>)
 >Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Getting feedback from application
  • Next by Date: Re: Getting feedback from application
  • Previous by thread: Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
  • Next by thread: Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
  • Index(es):
    • Date
    • Thread