On Aug 23, 2009, at 9:53 AM, Agha Khan <[email protected]> wrote:

+ (void) PlaySound:(int) Index

Method names should begin with lowercase letters. Classes really are the only things in ObjC that are typically capitalized.

Also you should be using the NSUInteger typedef here.

   NSBundle* bundle = [NSBundle mainBundle];

  …

   [bundle release];

You need to reread the memory management documentation again. You didn't get the bundle through alloc, new, or copy, and there you don't own it and mustn't release it.

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list ([email protected])

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