• 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: Rick Mann <email@hidden>
  • Date: Wed, 22 Feb 2012 20:30:13 -0800

Nope, no custom getter (only a custom setter). Not overridden. Works fine in GDB.

On Feb 22, 2012, at 20:15 , Jens Alfke wrote:

>
> 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


References: 
 >ivar is nil but property getter returns valid value (From: Rick Mann <email@hidden>)
 >Re: ivar is nil but property getter returns valid value (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: ivar is nil but property getter returns valid value
  • Next by Date: Re: Xcode 4.2 - No provisioned iOS devices are available with a compatible iOS version.
  • Previous by thread: Re: 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