swarm-support
[Top][All Lists]
Advanced

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

Re: KeyedCollection protocol ? (fwd)


From: Ken Cline
Subject: Re: KeyedCollection protocol ? (fwd)
Date: Tue, 25 Nov 1997 10:06:39 -0500 (EST)

On Tue, 25 Nov 1997, glen e. p. ropella wrote:

>  > Anyway, I'm going to use a Map instead of a Set.
> 
> Why?  What is the object for?

I need/want the `replace' functionality and the Set class
doesn't implement it.  Actually, what I want is "IF member
exists THEN replace ELSE insert" functionality.  I thought
for sure this was implemented by one (or more) of the
collections but I can't seem to find it.  Maybe I've missed
something?

BTW, I've been poking around in the collection lib source
and I still don't see how/where duplicates are "caught".
However, I don't want to start a flood of "How'd y'all
implement this?" questions.  If it works, it works. =:-)
(I do find looking at the Swarm source a good way to pick up
objC tips, though.)

Thanks,

Ken.

_________________________________________________________
Ken Cline                             address@hidden
SAIC                                 VOICE (410) 571-0413
Annapolis, MD                          FAX (301) 261-8427


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

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