So, I don’t see you trying [cell.dataField property] in your log below. Does this work?
Saagar Jha > On Jan 17, 2018, at 20:27, Alex Zavatone <z...@mac.com> wrote: > > >> On Jan 17, 2018, at 9:28 PM, Saagar Jha <saa...@saagarjha.com >> <mailto:saa...@saagarjha.com>> wrote: >> >> >> Saagar Jha >> >>> On Jan 17, 2018, at 18:52, Alex Zavatone <z...@mac.com >>> <mailto:z...@mac.com>> wrote: >>> >>> Nope. That is what is causes the error. >> >> So what is the error you’re getting? Seeing what it is can help us figure >> out why the debugger can’t find the property. > > Since I was brief before, here is the debug info from the console: > > (lldb) po [cell isKindOfClass:[UITableViewCell class]] > 0x0000000110ffb001 > > (lldb) po cell > <EnterBreakTimeEditableUITableViewCell: 0x7ff9b6945800; baseClass = > UITableViewCell; frame = (0 28; 834 80); text = 'Title'; clipsToBounds = YES; > autoresize = W; layer = <CALayer: 0x608000227360>> > > (lldb) po cell.dataField > <InsetUITextField: 0x7ff9b68fd000; baseClass = UITextField; frame = (335 20; > 97 34); text = ''; opaque = NO; autoresize = RM+BM; gestureRecognizers = > <NSArray: 0x608000259860>; layer = <CALayer: 0x608000228320>> > > (lldb) po [cell.dataField isKindOfClass:[UITextField class]] > error: reference to 'UITextField' is ambiguous > candidate found by name lookup is 'UITextField' > candidate found by name lookup is 'UITextField' > error: receiver type 'UITextField' is not an Objective-C class > (lldb) po cell.dataField.keyboardType > error: property 'keyboardType' not found on object of type 'InsetUITextField > *' > (lldb) po cell.dataField.text > error: property 'text' not found on object of type 'InsetUITextField *' > (lldb) po cell.dataField.class > error: property 'class' not found on object of type 'InsetUITextField *' > (lldb) po [cell.dataField class] > InsetUITextField > > <Screen Shot 2018-01-17 at 10.24.10 PM.png> > > > And for Quincy’s request… > > (lldb) print [cell.dataField isKindOfClass:[UITextField class]] > error: reference to 'UITextField' is ambiguous > candidate found by name lookup is 'UITextField' > candidate found by name lookup is 'UITextField' > error: receiver type 'UITextField' is not an Objective-C class > > My first suspicion is that multiple includes are confusing the debugger and > that the error resides with the man behind the keyboard in that it is related > to my subclassing of UITextField. Next, I’m going to check that it is > initialized properly. > > I’m going to test spitting out a brand new instance of InsetUITextField as > soon as > the view controller is instanced, > the inset field is tapped on > > Thanks everyone. > > Alex Zavatone > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com