0

When I add an NSString by using

[myObject addObject:myString forKey:myKey]

the string is converted to an array.

How can I force it to be a string? Should I create the rows of the table by hand using the data browser, or is there a way to do so by code (when creating the Class by objectWithClassName)?

Many thanks in advance.

1 Answer 1

1

Simple answer:

[myObject setObject:myString forKey:myKey]

SETObject instead of ADDObject

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.