• 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
Distrubuted Objects + NSAttributedString passed via dictionary results in archiver exceptions in server process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distrubuted Objects + NSAttributedString passed via dictionary results in archiver exceptions in server process?


  • Subject: Distrubuted Objects + NSAttributedString passed via dictionary results in archiver exceptions in server process?
  • From: Jim Correia <email@hidden>
  • Date: Sun, 20 Nov 2005 21:00:18 -0500

I have a DO client/server pair. The client passes a dictionary of key/ value pairs to the server. When one of those values is an NSAttributed string, the server end archives the string. When it does so, the following exception is raised.

*** -[NSKeyedArchiver connection]: selector not recognized [self = 0x5d1ddf0]

#0	0x928f6508 in -[NSException raise]
#1	0x928f635c in +[NSException raise:format:]
#2	0x928cf48c in -[NSObject(NSForwardInvocation) forward::]
#3	0x909c40d0 in _objc_msgForward
#4	0x928d2bb4 in -[NSDistantObject encodeWithCoder:]
#5	0x9293f444 in _encodeObject
#6	0x9293fa90 in -[NSKeyedArchiver _encodeArrayOfObjects:forKey:]
#7	0x92913e90 in -[NSDictionary encodeWithCoder:]
#8	0x9293f444 in _encodeObject
#9	0x9293fa90 in -[NSKeyedArchiver _encodeArrayOfObjects:forKey:]
#10	0x92939988 in -[NSArray encodeWithCoder:]
#11	0x9293f444 in _encodeObject
#12	0x92978dec in -[NSAttributedString encodeWithCoder:]
#13	0x9293f444 in _encodeObject
#14	0x9294044c in +[NSKeyedArchiver archivedDataWithRootObject:]

The dictionary is passed bycopy, but the same thing happens with no modifier.

Is this a bug? Have I don't something wrong? In either case, how do I correct the situatioN?

(This code was working fine before I split the two halves into their own processes...)

Thanks,
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


  • Prev by Date: Re: NSPredicate performance considerations
  • Next by Date: Re: NSPredicate performance considerations
  • Previous by thread: Re: NSPredicate performance considerations
  • Next by thread: How can i determine the mac pixel ratio?
  • Index(es):
    • Date
    • Thread