Re: ivar is nil but property getter returns valid value
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