From: Eloy D. <elo...@gm...> - 2009-03-18 18:29:25
|
Hi Duncan, Take a look at the gen_bridge_metadata tool. ($ man gen_bridge_metadata) If I recall it correctly it would be something like: $ gen_bridge_metadata -f /System/Library/Frameworks/ ApplicationServices.framework/Versions/Current/Frameworks/QD.framework > QD.bridgesupport You can then load that file with OSX.load_bridge_support_file Cheers, Eloy On 18 mrt 2009, at 19:14, Duncan McGregor wrote: > Hi > > First thanks for RubyCocoa. As the author of Rococoa, which does a > similar job for Java, I really appreciate what you've done. > > I'm trying to access Apple Type Services for Unicode Imaging (ATSUI) > through RubyCocoa - in order to measure text before I lay it out. > > I need to call, for example - ATSUCreateStyle > > This is defined in ATSUnicodeObjects.h, which seems to be found in > > /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ > QD.framework > > I'm having trouble working out how to gain access to this API. > > When I wanted to use CoreIO I used > > require_framework '/System/Library/Frameworks/ > ApplicationServices.framework/Versions/Current/Frameworks/ > ImageIO.framework' > > So I expected that > > require_framework '/System/Library/Frameworks/ > ApplicationServices.framework/Versions/Current/Frameworks/ > QD.framework' > > would work, but I get NoMethodError: undefined method > `ATSUCreateStyle' when I try to call the function. > > Can anyone please point out what I'm doing wrong? > > Thanks in anticipation > > Duncan McGregor > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) > are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly > and > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |