Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GetGraphicsImporterForDataRef



I'm trying to get a graphics importer component for some in-memory data. Unfortunately, the QuickTime documentation on this subject is less than informative and somewhat circular :)

Can anyone spot what's wrong with this, or link me up with some more useful documentation / sample code that does what I want?

data = [NSData dataWithContentsOfURL:url];
dataref = NewHandle(sizeof(const void*));
HLock(dataref);
*(const void**)*dataref = [data bytes];
HUnlock(dataref);

err = GetGraphicsImporterForDataRef(dataref, PointerDataHandlerSubType, &gi);
if (err != noErr)
{
NSLog(@"Can't get graphics import component for data");
goto CLEAN_UP_SELF;
}

Thanks,
Keith
_______________________________________________
mac-games-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-games-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.