From: Eloy D. <elo...@gm...> - 2008-05-05 22:43:50
|
Hi Bryan, The framework will be loaded into the OSX namespace. So you'd have to use OSX::MyCustomObject or you can include the OSX module in the toplevel making it unnecessary to prefix with OSX:: Eloy On 6 mei 2008, at 00:38, Bryan Bonczek wrote: > I'm trying to use RubyCocoa for some automated testing of an > Objective- > C framework I have written. I successfully imported the framework > using the OSX.require_framework but I am having trouble using the > objects within the framework. Whenever I try to declare a new > variable using > > myObject = myCustomObject.alloc.init() (where myCustomObject is part > of the successfully loaded framewor) > > I keep getting "unitialized constant myCustomObject (NameError)." > What is the proper way to use the objects inside of the loaded > framework? > > > Also... I had some issues with relative paths and the > require_framework method. Is there any way to pass a relative path to > this method? > > > Thanks, > > Bryan > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |