I am trying to save a boolean database value into a map as follows –
[recentTags setValue:[NSNumber numberWithBool:[aMessage isSet]] forKey:[aMessage tagName]];
It gives me an error saying "Incompatible pointer to integer conversion sending BOOL * aka signed char* to 'BOOL' aka signed char"
How would I insert a BOOL* into the dictionary?
Best Answer
Wrap the BOOL in an NSNumber:
To get it out:
You can wrap other non-object types (such as a pointer or a struct) in an NSValue.
EDIT: Assuming you really mean a BOOL* (pointer):