| www.delorie.com/gnu/docs/libobjects/libobjects_23.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
void print_first_difference (id coll1, id coll2)
{
void *enumState1, *enumState2;
id object1, object2;
enumState1 = [coll1 newEnumState];
enumState2 = [coll2 newEnumState];
while ([coll1 getNextObject:&object1 withEnumState:&enumState1]
&& [coll2 getNextObject:&object2 withEnumState:&enumState2])
{
if ([object1 compare:object2])
{
[object1 printForDebugger];
[object2 printForDebugger];
}
}
[coll1 freeEnumState:&enumState1];
[coll2 freeEnumState:&enumState2];
}
|
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |