Author: theraven
Date: Tue Dec 29 16:59:14 2009
New Revision: 29179
URL: http://svn.gna.org/viewcvs/gnustep?rev=29179&view=rev
Log:
Added fast enumeration to NSSet. This changed the layout of GSMutableSet,
adding a _version ivar, but this is a private class so it doesn't change the
public ABI. All mutator methods in GSMutableSet must increment this variable,
allowing thread-safe fast enumeration.
As with GSArray, GSSet uses its isa pointer for detecting mutations. This may
change as a result of adding KVO notifications, so it might not be the best
solution, but I can't currently think of a way we could catch isa changing to
[GSMutableSet class] and not changing to a hidden class...
Modified:
libs/base/trunk/ChangeLog
libs/base/trunk/Headers/Foundation/NSSet.h
libs/base/trunk/Source/GSSet.m
libs/base/trunk/Source/NSSet.m
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs