Re: immutable collection given to mutating function error

2009-02-22 Thread Charles Srstka
Replace this line: On Feb 22, 2009, at 11:17 AM, Michael Domino wrote: prefMinorSectionCFMutableDictionaryRef = static_cast(const_cast(pVoid)); with this: prefMinorSectionCFMutableDictionaryRef = CFDictionaryCreateMutableCopy(NULL, 0, static_cast(const_cast(pVoid))); This way, you'll

Re: immutable collection given to mutating function error

2009-02-22 Thread Ken Thomases
On Feb 22, 2009, at 11:17 AM, Michael Domino wrote: I have a situation where I'm writing a preferences file and I have a major section and one or more minor sections, like this: Settings Logging Initialization Everything actually works fine, except that I get this error when

immutable collection given to mutating function error

2009-02-22 Thread Michael Domino
Hi all, I have a situation where I'm writing a preferences file and I have a major section and one or more minor sections, like this: Settings Logging Initialization Everything actually works fine, except that I get this error when writing a minor section: 2009-02-22 10:1