So here is the problem.
I have a method (or message as they are called in obj-C) I am passing in a pointer to an object.
inside that method i am going to change what that pointer is pointing to, and release the old object. And i would like the instance variable (which is being passed into the method) to now reference the new value assigned to it. basically having the variable operate like an OUT parameter in languages like C#
-(NSDictionary *) GetListWithCommand:(NSString*) command andCache:(CachedMutableDictionary*) cache
{
CachedMutableDictionary* Dictionary = [Getfrom somesource];
CachedMutableDictionary* temp = cache;
cache = [Dictionary retain];
[temp release];
}
so i believe i need to send in an address-of reference for the cache variable and then be able to refer to it both at the address level or at the object level.
it may also be wiser/easier to create a copy method on the CachedMutableDictionary class.