Re: What's the point of @properties?
Re: What's the point of @properties?
- Subject: Re: What's the point of @properties?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 20 Sep 2010 12:00:16 -0700
On Mon, Sep 20, 2010 at 11:39 AM, Antonio Nunes
<email@hidden> wrote:
> On 20 Sep 2010, at 19:27, Seth Willits wrote:
>
>> And Chris explained that properties don't necessarily *have* ivars for you to look at anyway. If you want to see its value, then you need to run the print/po command on the gdb command line.
>
> Fair enough. And what I would like to see, is the debugger window in code being smart enough to show the synthesised properties. Any chance of that ever happening?
Did you mean "synthesized ivars"? It is important you be precise.
Automatically showing synthesized properties—or any properties at
all—would be a bad idea, because methods have side effects, and even
calling simple accessors at the wrong time can be detrimental to your
program (remember, the debugger can be stopped anywhere; what if it's
in the middle of updating the method cache in objc_msgSend, and then
you go up a few frames into your own code?).
Automatically showing synthesized ivars is a much safer operation, and
one I too would like to see in the debugger.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden