• 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: About iVars declaration and property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About iVars declaration and property


  • Subject: Re: About iVars declaration and property
  • From: Dave Fernandes <email@hidden>
  • Date: Sun, 13 Nov 2011 14:50:02 -0500

For some reason, sometimes my synthesized ivars show up in the debugger as ivars, and sometimes they don't. Can anyone explain this? I can't remember whether this is with GDB or LLDB.

On 2011-11-13, at 5:24 AM, Don Quixote de la Mancha wrote:

> Explicitly declaring your ivars makes them easier to see in the
> debugger.  Otherwise you have to call the property accessor from gdb's
> command line to look at it.
>
> I feel that it's helpful to declare them in any case, so I can
> more-easily tell how much memory each of my objects is taking up by
> looking at its list of ivars.
>
> Not every property is backed by the ivar it acts as asscessors for.
> It's perfectly legal to implement custom accessors that do other
> things than set or get instance variables.  They could instead run
> some sort of calculation, or set some other combination of ivars.
>
> --
> Don Quixote de la Mancha
> Dulcinea Technologies Corporation
> Software of Elegance and Beauty
> http://www.dulcineatech.com
> email@hidden
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >About iVars declaration and property (From: ico <email@hidden>)
 >Re: About iVars declaration and property (From: Charles Srstka <email@hidden>)
 >Re: About iVars declaration and property (From: Don Quixote de la Mancha <email@hidden>)

  • Prev by Date: Re: About iVars declaration and property
  • Next by Date: Re: NSBitmapImageRep and alpha channel
  • Previous by thread: Re: About iVars declaration and property
  • Next by thread: Re: About iVars declaration and property
  • Index(es):
    • Date
    • Thread