Great!
Hi Louis-Philippe,Could you paste all this into a new ticket? This way we won't forget to fix it.Thanks!LaurentOn Oct 6, 2010, at 1:12 PM, Louis-Philippe wrote:my Objective-C class:__________________________________________@implementation ObjcRackApp
- (NSArray*)call:(NSDictionary *)env {
return [NSArray arrayWithObjects:
[NSNumber numberWithInteger:200],
[NSDictionary dictionaryWithObject:@"text/plain" forKey:@"Content-Type"],
@"Hello Objc!",
nil];
_______________________________________________}
@end
________________________________________________
I can confirm it load and behaves properly with this script:________________________________________________framework "ObjcRackApp.framework"class Hellodef call(env)[200, { 'Content-Type' => 'text/plain' }, "Hello Control Tower!"]endendenv = {"a"=>"hash"}arr = ObjcRackApp.alloc.init.call(env)puts arr.classputs arr[0].classputs arr[1].classputs arr[2].classarr = Hello.new.call(env)puts arr.classputs arr[0].classputs arr[1].classputs arr[2].class__________________________________________which print:__________________________________________ArrayFixnumHashStringArrayFixnumHashString__________________________________________but when I run:__________________________________________framework "ObjcRackApp.framework"app = ObjcRackApp.alloc.initrun app__________________________________________with control_tower -R hello_objc.ru, the server starts without error but I get served a blank page in my browser2010/10/6 Joshua Ballanco <joshua.ballanco@apple.com>Hi L-P,
That sounds like a neat idea! I can think of a few ways that it might go wrong, but they're only guesses. Do you have some small sample code that demonstrates the problem? If so, can you open a ticket on track (https://www.macruby.org/auth/login/?next=/trac/newticket) and set the component to "ControlTower"? Thanks!
Cheers,
Josh
> _______________________________________________
On Oct 6, 2010, at 11:36 AM, Louis-Philippe wrote:
> Hi all,
>
> I'm experimenting with Control Tower and tought I would try to get it running with an Objective-C class, inside an imported framework, implementing the Rack protocol.
>
> My class imports right in macruby, has a proper call(env) method which returns an array of 3 elements, when I call inspect on it it is same, same same as the macruby one... but control tower doesn't display my return string???
>
> any idea?
>
> L-P
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel