On 2009-08-23, at 20:37, Agha Khan wrote:

I also tried NSBundle* bundle = [[NSBundle mainBundle] retain];


Why are you trying to retain?
The documentation says "+ (NSBundle *)mainBundle" - its static and you didn't create (alloc, new) the *bundle instance, therefor you don't own it, and therefor should not release it either.

That is a bug in Mac files.


Don't just assume that there are alot of bugs in "Mac", rather there is a bug in your code/architecture.


If you really don't know what you are doing, please read the docs first - this might help you save alot of time when developing your app. Instead of the trial and error approach = $$$

Where did you find the Mac provided file "SoundEngine.cpp"?
And how old is this file i.e. when was this code written?
I searched my entire disk and didn't find this file, therefor it can't really be "Mac provided"...


/MK
_______________________________________________

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