[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RubyCocoa Web Services

Tim Perrett

3/27/2007 8:57:00 AM

Hey all

If I wanted to access a web service within ruby cocoa, would i need to
do...

OSX::NSBundle.bundleWithPath("/path/to/WebServiceCore.framwork").ocm_send(:load)

and then use the OOC bridge within that, or is it possible to use the
nice ruby wrapper SOAP4R? If i wanted to use that wouldnt i need to make
it a descendant of NSObject?

Thanks

Tim

--
Posted via http://www.ruby-....

1 Answer

FUJIMOTO Hisa

3/28/2007 12:27:00 AM

0


On 2007/03/27, at 17:57, Tim Perrett wrote:
> If I wanted to access a web service within ruby cocoa, would i need to
> do...
>
> OSX::NSBundle.bundleWithPath("/path/to/
> WebServiceCore.framwork").ocm_send(:load)

You can use require_framework to load a framework with RubyCocoa 0.10
or later. Though it may be not worked for WebServieCore:

OSX.require_framework "CoreGraphics"

> and then use the OOC bridge within that, or is it possible to use the
> nice ruby wrapper SOAP4R? If i wanted to use that wouldnt i need to
> make
> it a descendant of NSObject?

SOAP4R never depend on NSObject/Cocoa/Mac OS. Why do you need to do
that?
that is you can just use it regardless of NSObject.
--
hisa