DO doesn't like my objects
DO doesn't like my objects
- Subject: DO doesn't like my objects
- From: Matt Massicotte <email@hidden>
- Date: Mon, 25 Nov 2002 10:14:40 -0500
Hi everyone,
I recently started a project mainly for the purpose of trying to get a
grasp on DO. I have (surprise) run into a problem.
I have server and client applications and the client calls the server
with a method that looks something like this:
(bycopy MyObject *)getAnObject:(int)objectCode
If I return NSStrings or NSValues, it works absolutely fine. If I
return my own home-brewed objects, no dice. The returned object is
nil, and trying to retain it produces an exception of NSCFArray
addObject:] attempt to insert nil, even though I am not putting it in
an array. The objects that I want to return conform to NSCopying and
NSCoding. I originally thought that was the problem, but it didn't
help at all.
Another possible complication is that it is not the main thread of
either app that is sending or receiving.
I realize that I haven't provided too many details, but I searched the
archives, and while I did find useful info, nothing quite like this
popped up.
Matt
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.