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

Re: ivar is nil but property getter returns valid value


  • Subject: Re: ivar is nil but property getter returns valid value
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 22 Feb 2012 20:15:09 -0800


On Feb 21, 2012, at 1:46 PM, Rick Mann wrote:

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 there a -match method in addition to the @synthesize directive? The method will take precedence and provide a custom getter.

It’s also conceivable that your object is an instance of a subclass that’s overridden -match.

Of course, it’s also conceivable that LLDB is tripping balls. I haven’t been brave enough to try it yet, myself.

—Jens
 _______________________________________________
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: Rick Mann <email@hidden>
References: 
 >ivar is nil but property getter returns valid value (From: Rick Mann <email@hidden>)

  • Prev by Date: Turn off auto-bracket?
  • Next by Date: Re: ivar is nil but property getter returns valid value
  • Previous by thread: ivar is nil but property getter returns valid value
  • Next by thread: Re: ivar is nil but property getter returns valid value
  • Index(es):
    • Date
    • Thread