Copy of NSDictionary is cleared when the original is cleared. Why?
Copy of NSDictionary is cleared when the original is cleared. Why?
- Subject: Copy of NSDictionary is cleared when the original is cleared. Why?
- From: email@hidden
- Date: Thu, 12 Mar 2009 08:58:59 -0700 (PDT)
Why is myDict empty?
{I've checked via debugger po}
It's a COPY of textDictionary, that had been cleared.
Here's my code:
+ (NSDictionary *)getTextData {
NSDictionary *myDict = [textDictionary copy];
[self resetDataCache];
return myDict;
} // end getText().
+ (void)resetDataCache {
[textDictionary removeAllObjects];
...
// end resetDataCache().
-- Regards,
Ric.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden