Re: How To Archive SEL's With Keyed Archiving

Sašo Kiselkov <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
Quoting Richard Frith-Macdonald <[email protected]>:

> On 2005-08-06 11:47:55 +0100 Sa¹o Kiselkov <[email protected]> wrote:
>
> > 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.
>
> Probably using NSSelectorFromString() and NSStringFromSelector()
>
>

Of course! Why didn't I think of that! Thanks and sorry for bothering with this
idiotically simple problem.

Best regards
 Saso
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.