• 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: Building a metadata importer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a metadata importer


  • Subject: Re: Building a metadata importer
  • From: Kevin Meaney <email@hidden>
  • Date: Wed, 23 Aug 2006 22:23:29 +0100

Philippe,

Thanks for the suggestion but I don't think that is my problem. My GetMetadataForFile function is in a .c file, compiled as c and not c++. It calls a C++ function but that function is declared in a header file with the extern "C" wrappers around the declaration, and implemented in a .cp file. So I'm still looking for an answer.

Thanks somebody.

Kevin


#ifdef __cplusplus
extern "C" {
#endif

Boolean GetMetadataForFile(void* thisInterface, 
  CFMutableDictionaryRef attributes, 
  CFStringRef contentTypeUTI,
  CFStringRef pathToFile)
{
    /* Pull any available metadata from the file at the specified path
*/
    /* Return the attribute keys and attribute values in the dict */
    /* Return TRUE if successful, FALSE if there was no data provided */

    

// Convert the path to an FSRef
char strTemp[2048];
FSRef fsr;
CFStringGetCString(pathToFile, strTemp, 2048,
kCFStringEncodingASCII);
if (noErr != FSPathMakeRef((unsigned char *)strTemp,
&fsr, NULL))
return FALSE;


// Now that we have our FSRef, parse the RIFF file
return (RIFF_Metadata(&fsr, attributes));
}

#ifdef __cplusplus
}
#endif
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Building a metadata importer
      • From: Rua Haszard Morris <email@hidden>
  • Prev by Date: Project compiles but won't run under xCode 3.0 - class lookup error
  • Next by Date: Re: Building a metadata importer
  • Previous by thread: RE: Building a metadata importer
  • Next by thread: Re: Building a metadata importer
  • Index(es):
    • Date
    • Thread