> On Jan 17, 2018, at 8:07 PM, Quincey Morris 
> <[email protected]> wrote:
> 
> On Jan 17, 2018, at 17:58 , Alex Zavatone <[email protected] 
> <mailto:[email protected]>> wrote:
>> 
>> Cell does not have this problem and is the proper subclass. It properly 
>> reports both its class and the expected result for if it is a kind of 
>> UITableViewCell class.
> 
> What the debugger is telling you is from run-time examination of the class 
> info, so it will tell you the correct class. OTOH to evaluate a debugger 
> expression (such as “cell.dataField”), the debugger uses the clang compiler 
> (in effect), using compile-time info. That means it matters how and where the 
> “cell” variable or property is declared.
> 
> I can’t tell from your most recent response whether you’re referring to 
> run-time or compile-time information, so I can only ask the same question 
> again: What is the *declared* type of the variable or property “cell”?
> 
> Also, even though you might have reason to think it’s pointless, what does 
> the debugger produce for the following command?
> 
>       po ((InsetUITextField*) cell).dataField
> 
> 

For some unknown reason, it is working now.  
(lldb) po [cell.dataField isKindOfClass:[UITextField class]]
YES

Quincy’s request returns an error.

(lldb) po ((InsetUITextField*) cell).dataField
error: property 'dataField' not found on object of type 'InsetUITextField *'

I’m just going to thank you all for your effort and move on.   

Thank you all for your effort.

Somehow running out to fetch groceries and having a beer magically solves 
ambiguous class references in the debugger.  

Why this magically works after 4 hours of debugging is a problem suited for a 
much stronger person than I.  

Good night.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to