Re: Distributed Objects, copying thereof
Re: Distributed Objects, copying thereof
- Subject: Re: Distributed Objects, copying thereof
- From: "Jim Thomason" <email@hidden>
- Date: Thu, 8 Jun 2006 19:34:48 -0500
Man, I just have no luck. Okay, so I implemented -
(id)replacementObjectForPortCoder:(NSPortCoder *)encoder in an NSImage
category to allow myself to pass NSImages with bycopy across a
distributed object connection. All was right.
Except I'm now have a different issue. It turns out that it works fine
when I have an image that was created via +imageNamed, but it fails
when I use an image I created programmatically in the code. So this
has lead me to believe that there's something different about my
programmatically created image and one returned by imageNamed, but I
haven't figured out what it could be.
So far I have:
1) tried explicitly calling setName: on my image.
2) added an NSBitmapImageRep to my newly created image.
3) added the NSBitmapImageRep AND removed the existing NSCachedImageRep.
None of those have had any effect - it still fails the same way as always.
Any suggestions as to what setting I should fiddle to make it work, or
if it's even possible?
-Jim......
_______________________________________________
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