| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I assume you don't have ownership of that function? Because if you know, as you seem to, that it returns a pointer of a very specific type, it seems perverse to declare it as a function returning (void > *).
void * thePointer; // known to point to a TheClass
TheClass * myObject;
id alsoMyObject;
myObject = (TheClass *) thePointer; // A
alsoMyObject = (id) thePointer; // B
Both A and B will compile to a single load of a register. There's no run-time difference.
| 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.