• 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
ivar is nil but property getter returns valid value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ivar is nil but property getter returns valid value


  • Subject: ivar is nil but property getter returns valid value
  • From: Rick Mann <email@hidden>
  • Date: Tue, 21 Feb 2012 13:46:36 -0800

I have a property "match" and an ivar "mMatch". The property is synthesized with match = mMatch. This has worked for me for hundreds of properties.

Using LLDB, inspecting the property in the variables pane shows mMatch to be nil, as well as typing po self->mMatch. But po [self match] returns the expected value.

Is this just an LLDB bug? Some ivars show up just fine. I'm noticing a lot of other weirdness in LLDB. Xcode complained that I should be using LLDB and not GDB, but it still seems pretty unreliable.

iOS 5 simulator ARC Xcode 4.3 lion.3 LLDB-112

--
Rick


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: ivar is nil but property getter returns valid value
      • From: Jens Alfke <email@hidden>
  • Prev by Date: "Assistant" multi-editor-pane organization
  • Next by Date: Getting xcode to focus on paused instance
  • Previous by thread: Re: "Assistant" multi-editor-pane organization
  • Next by thread: Re: ivar is nil but property getter returns valid value
  • Index(es):
    • Date
    • Thread