• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++/ObjC Distributed Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >C++/ObjC Distributed Objects (From: David McGavran <email@hidden>)

  • Prev by Date: Re: [Core Data] Improve save performance ?
  • Next by Date: Binding: NSSearchField doesn't appear to work
  • Previous by thread: C++/ObjC Distributed Objects
  • Next by thread: Binding: NSSearchField doesn't appear to work
  • Index(es):
    • Date
    • Thread