objective c - Not Making a Mutable Copy for NSUserDefaults -


instead of making mutable copy nsuserdefaults, use setobject: forkey: make updates, pointing constructed objects derived in various places in ui. there pitfalls doing way? particularly, want make sure i'm not adding new objects in fact replacing existing objects.

tia

there shouldn't problems doing things way.

i'm not sure why have doubts, long use same key setobject:forkey of course update same object instead of adding new ones. avoid adding new object, use static nsstring key.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -