|IRC Nick||Time (GMT-7)||Message|
I have a question about casting the objects. If I have a class let's say XAPI and I return it as a JS object from my plugin and then whatever I got from plugin to JS I want to pass back to plugin by calling register method. Is this possible?
I tried to receive it as FB::variant and then to cast it using FB::variant::cast<JSAPIPtr>(), but it throws and exception.
Then I tried FB::variant::cast<JSObjectPtr>() and it was fine, but I didn't manage to get my XAPI by boost::dynamic_pointer_cast<XAPI>(...)
My XAPI inherits from FB::JSAPIAuto
|taxilian||13:03||yeah, it doesn't work that way on most browsers