From: Kevin W. <kw...@co...> - 2012-09-28 13:46:23
|
On 9/28/12 2:42 AM, Steven wrote: > For those who don't ship their own framework, Is there an easy way to see > if the utilized Wish/Tk is built with Carbon or Cocoa ? > That way, an App known to not work with Cocoa can just bail out > with a meaningful error message, rather than fail a gruesome death. > Currently i'm just resolving symbolic links and doing an "otool -L" on > the end binary, > but this is a little hard from inside the App. The standard way is to parse the output of [winfo server .]--if the string includes "AppKit," it's Cocoa. -- Kevin Walzer Code by Kevin http://www.codebykevin.com |