Re: C++/ObjC Distributed Objects
Re: C++/ObjC Distributed Objects
- Subject: Re: C++/ObjC Distributed Objects
- From: John Stiles <email@hidden>
- Date: Mon, 16 Jan 2006 16:09:44 -0800
std::string is implemented differently on Xcode and CW.
If you use this approach, you will need to ensure that client and server
are compiled with the exact same compiler—same version number, same SDK,
etc.
It'd be much less fragile to convert the code to use NSString*, if possible.
David McGavran wrote:
I have the following protocol that I connect to through objc
distributed objects:
@protocol ObjA
- (void)getName: (std::string*) cstring;
@end
if I connect to it via:
std::string fred;
[obja getName:&fred];
It works if the client and server are both written in xcode. However
if the server is written in CW it doesn't work. Is this just a bad
idea? Or am I doing something else wrong. If I can guarantee that both
client/server are compiled with the same xcode would this be safe? I
assume I am supposed to use NSString.
Cheers
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden