Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <CoreFoundation/CoreFoundation.h>
- int main (int argc, const char * argv[])
- {
- id anObject = objc_getClass("NSWindow");
- CFTypeID typeID = CFGetTypeID(anObject);
- CFTypeRef pObj = _CFRuntimeCreateInstance(kCFAllocatorDefault, typeID,
- 0, NULL);
- if (pObj)
- {
- fprintf(stdout, "SUCCEEDED\n");
- CFRelease(pObj);
- }
- else
- {
- fprintf(stderr, "FAILED\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement