| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I think you're misunderstanding the function call. Yes, the parameter says
that you're passing a Handle, but the real determination of what you're
sending is specified by the PointerDataHandlerSubType, or
HandleDataHandlerSubType specification.
If you want to pass in a pointer, I think you could probably just cast the
actual pointer to the data: Something like:
data = [NSData dataWithContentsOfURL:url];
void *dataref = [data bytes];
err = GetGraphicsImporterForDataRef((Handle)dataref,
PointerDataHandlerSubType, &gi);
if (err != noErr)
{
NSLog(@"Can't get graphics import component for data");
goto CLEAN_UP_SELF;
}
This will probably work just fine for you.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.