Answer the question
In order to leave comments, you need to log in
Why can't I get data from my object?
Hello!
I'm trying to get data from an object. For example, in debugging "po device.deviceTypeID", which returns: "error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector. The process has been returned to the state before expression evaluation .".
When I display just the object itself, then everything is ok:
(lldb) po device
{
applianceId = 6;
applianceImageName = "kettle-scale-icon.png";
appliancePowerLevel = 1;
applianceRiskLevel = 1;
// и т.д.
Answer the question
In order to leave comments, you need to log in
The fact that you forced the compiler to perdstavlyat object as DevicesModel does not mean that it became so
. You can see on the left that device is an instance of NSDictionary.
etc. You either need to fill in _rooms.devices correctly up to this point
Or rewrite the loop here so that you form the DevicesModel object from your device dictionary and already work with it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question