help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Archive SEL's With Keyed Archiving


From: Christopher Armstrong
Subject: Re: How To Archive SEL's With Keyed Archiving
Date: Sat, 06 Aug 2005 21:30:16 +1000

> How do I archive a selector (SEL) correctly and portably with keyed archiving?
> There seems to be no `-encodeValueOfObjCType:...' or simmilar methods for 
> keyed
> archives. I know I could just encode the values of the fields of the struct
> objc_selector, but this is only functional with the GNU runtime. A portable
> solution is best. Thanks.

I guess you could encode a string like "objectAtIndex:" and then create
a selector from it when the coder is loaded again. This should be
portable, I think there are methods in NSObject to do this.


-- 
Christopher Armstrong <quineska @AT@ gamebox dot NET>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]