DO: (bycopy NSArray*) not making copies
DO: (bycopy NSArray*) not making copies
- Subject: DO: (bycopy NSArray*) not making copies
- From: James Bucanek <email@hidden>
- Date: Thu, 9 Jun 2005 16:44:39 -0700
Greetings,
I've got a distributed objects problem. I'm sending an array of "identifier" objects (most of them are just strings, but some are combinations of strings and serial numbers, record IDs, etc.).
When they get to the server thread they need to be effecient, so I need them to be local copies of the ID objects, not proxies to the ID objects in the client. I've implemented NSCopying protocols on all of these objects, most of which are very simple subclasses of NSObject. I've defined protocols for all of my setter methods, and used the bycopy keyword:
- (oneway void)appendRecordWithIdentifierList:(bycopy in NSArray*)identifierList;
Yet, not matter what I do I cannot get DO to copy the individual objects in the array. It seems only to want to copy the NSArray itself, filling it with NSDistantObjects to the originals in the client. The server starts calling [proxy isEqual:someOtherID], and a flurry of messages and proxy objects go flying back and forth between the client and server. It's a mess.
How can I get DO to copy the NSArray AND make copies of all of the object in the array?
--
James Bucanek <mailto: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