On Jan 17, 2018, at 17:58 , Alex Zavatone <[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
_______________________________________________
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]