Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
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):
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]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.