Mailing Lists: Apple Mailing Lists

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

RE: Where is GetNativeWindowFromWindowRef defined?



From: max roth <email@hidden>
Subject: RE: Where is GetNativeWindowFromWindowRef defined?

Thanks, but I've already spent hours searching and trying various system frameworks. It's there somewhere but noone seems to know. It's part of Core Graphics but core graphics isn't found anywhere.  The quest continues. 

Max - if you *really* need to access this function, you can do so as follows.  

CFBundleRef carbon = CFBundleGetBundleWithIdentifier ((CFStringRef) @"com.apple.Carbon");
if (carbon)
{
  void * p = CFBundleGetFunctionPointerForName (carbon, (CFStringRef) @"GetNativeWindowFromWindowRef");
  if (p) NSLog (@"Got it....");
}


I just use a void * here to show it works, but you'll obviously need to create the appropriate function pointer.


Dave


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



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.