Hi, I'm new to Cocoa and I'm totally stucked with AudioFileOpen. I searched the web and the mailing list for hints on what I'm doing wrong, but I can't figure out the problem. Below is what I did.
a) Created a Cocoa Core Data Document Application. b) Code for MyDocument.h #import <Cocoa/Cocoa.h> #import <AudioToolbox/AudioToolbox.h> @interface MyDocument : NSPersistentDocument { FSRef mFileRef; AudioFileID mExportFileID; } @end c)Code for MyDocument.m #import "MyDocument.h" @implementation MyDocument - (id)init { self = [super init]; mExportFileID = 0; NSString *fileLocation =@"/Users/julioferrer/Desktop/Audio.aiff"; fileLocation = [fileLocation stringByStandardizingPath]; FSPathMakeRef((const UInt8*)[fileLocation fileSystemRepresentation], &mFileRef, false); AudioFileOpen(&mFileRef, fsRdPerm, 0, &mExportFileID); } When I build the project I get one error on the AudioFileOpen line. This is log: "_AudioFileOpen", referenced from: I'm also using the GCC_ENABLE_OBJC_GC = supported Thanks for any help. _______________________________________________ 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 arch...@mail-archive.com