• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What's the point of @properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What's the point of @properties?
      • From: Antonio Nunes <email@hidden>
References: 
 >What's the point of @properties? (From: Jim Thomason <email@hidden>)
 >Re: What's the point of @properties? (From: Markus Spoettl <email@hidden>)
 >Re: What's the point of @properties? (From: Bill Bumgarner <email@hidden>)
 >Re: What's the point of @properties? (From: Stefan Nobis <email@hidden>)
 >Re: What's the point of @properties? (From: Chris Hanson <email@hidden>)
 >Re: What's the point of @properties? (From: Antonio Nunes <email@hidden>)
 >Re: What's the point of @properties? (From: Stefan Nobis <email@hidden>)
 >Re: What's the point of @properties? (From: Seth Willits <email@hidden>)
 >Re: What's the point of @properties? (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: One last try: how do you make a bookmark bar like Safari?
  • Next by Date: Re: One last try: how do you make a bookmark bar like Safari?
  • Previous by thread: Re: What's the point of @properties?
  • Next by thread: Re: What's the point of @properties?
  • Index(es):
    • Date
    • Thread