Hi,
I have an NSObject, and I'm trying to set one of its properties at runtime. I've tried this (note: I'm using fictional names instead of actual ones):
but at runtime, LLDB says
even though there is a property by that name.
[doublepost=1472610983][/doublepost]Well, turns out the solution is simple. Simply use the "po" command like so:
I have an NSObject, and I'm trying to set one of its properties at runtime. I've tried this (note: I'm using fictional names instead of actual ones):
Code:
expr -- object.theProperty = 3
but at runtime, LLDB says
error: property 'theProperty' not found on object of type 'ObjectType *'
even though there is a property by that name.
[doublepost=1472610983][/doublepost]Well, turns out the solution is simple. Simply use the "po" command like so:
Code:
po [object setTheProperty:3]