Re: How To Archive SEL's With Keyed Archiving

Unknown <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <1123327816.7124.1.camel@main>
> 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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.