Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
Folks; Thanks for all of the guidance! I have found the issue. It turns out that [localDict copy] is what was being sent to the setBaseSetting. In dealing with the static analyzer's warnings I must have made this change and then had failed to back it out… MY BAD Removed this and all is w

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Kyle Sluder
On Sun, Sep 20, 2009 at 12:42 PM, Steve Cronin wrote: > essentially it is: "Essentially" isn't good enough; actual copy-paste is necessary to ensure you're doing it correctly. >        NSMutableDictionary *localDict = [NSMutableDictionary > dictionaryWithCapacity:70]; This is good. > - (void)

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
Kyle; In order to answer your request, I've gone back through the code that generates myBaseSettings essentially it is: NSMutableDictionary *localDict = [NSMutableDictionary dictionaryWithCapacity:70]; [localDict setObject:[self generateInterestingValue1] forKey:@"interestingKey"];

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Jason Foreman
On Sep 20, 2009, at 1:54 PM, Steve Cronin wrote: Kyle; Thanks for such a speedy response. (and on a Sunday afternoon too!) That code is a fairly complex set of interlocking methods. Why would the construction of this NSMutableDictionary have anything to do with this error? Because the er

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
Kyle; Thanks for such a speedy response. (and on a Sunday afternoon too!) That code is a fairly complex set of interlocking methods. Why would the construction of this NSMutableDictionary have anything to do with this error? Steve On Sep 20, 2009, at 1:51 PM, Kyle Sluder wrote: On Sep 20,

Re: MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Kyle Sluder
On Sep 20, 2009, at 11:35 AM, Steve Cronin wrote: I have an instance variable which is an NSMutableDictionary * myBaseSettings You need to post the code that creates this dictionary. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

MutableDictionary setValue:forKeyPath - strange behavior

2009-09-20 Thread Steve Cronin
Folks; I have recently converted to XC & IB 3.2 I've updated my project to be a 3.2 project using a baseSDK of 10.6 with deployment target of 10.4 I've run the static analyzer and have no analyzer issues as well as no compiler nor IB warnings I'm feeling good about this but now code that wo