From: Eloy D. <e....@su...> - 2008-08-19 12:05:32
|
Hi Alli, No problem, thanks! I should have known though, but solving that issue was beyond the scope of giving you the answer :) So did it wrap everything correctly? If so, you might want to file a radar ticket with apple to get the bridgesupport file added in an update. - Eloy On Aug 19, 2008, at 1:59 PM, Allison Newman wrote: > Eloy, > > Apparently you need to patch your rexml/document.rb. See here: > http://rubycocoa.sourceforge.net/GettingStarted > > (Sorry to send you to the newbie site, but it describes your result > perfectly - gen_bridge_metadata on QTKit works on my system.) > > Alli > > On Tuesday, August 19, 2008, at 01:35PM, "Eloy Duran" <elo...@gm... > > wrote: >> Hi Alli, >> >> Normally you'd cerate a bridge support file like so: >> >> $ gen_bridge_metadata -f QTKit > QTKit.bridgesupport >> >> Where -f stands for a framework name in one of the default load >> paths. >> However, trying to wrap QTKit results in the following error: >> "undefined local variable or method `trans' for <UNDEFINED> ... </ >>> :REXML::Document" >> >> So I guess you'd need to debug this to get it to completely wrap the >> framework. >> >> - Eloy >> >> On Aug 19, 2008, at 12:56 PM, Allison Newman wrote: >> >>> Hi everyone, >>> >>> I'm currently having trouble with writing some code to generate a >>> Quicktime movie file. When I wish to add an image to the file, I >>> have to create a QTTime struct. >>> >>> When I do this for most of the standard Cocoa structs, such as >>> NSRect, NSPoint etc, I can simply do: >>> >>> point = NSPoint.new(1, 2) >>> >>> This works. However if I try the same idea with a QTTime: >>> >>> qt_time = QTTime.new(1, 10, 0) >>> >>> RubyCocoa dies, claiming it doesn't know the constant QTTime. >>> >>> I have tried looking inside the RubyCocoa framework to see how the >>> magic is done for the NSxxxx structs, but I found the following >>> comment in oc_types.rb: >>> >>> # This module adds syntax-sugar APIs on top of the Cocoa structures. >>> # This is mostly to preserve backwards compatibility with previous >>> versions >>> # of RubyCocoa where the C structures support was hardcoded in the >>> bridge. >>> # Now structures are automatically handled via the metadata >>> mechanism, but >>> # the API is not compatible with what we used to have. >>> >>> If I understand correctly, this means that QTKit has not had >>> metadata generated for it to handle things such as structs etc. Can >>> anyone confirm that this is the case, and if so, point me in the >>> direction of some documentation explaining how it is done. With a >>> bit of luck, I'll even be able to add the QTKit metadata back into >>> the RubyCocoa project. >>> >>> Thanks for any help. >>> >>> Alli >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in >>> the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |