Re: Problem with Debugger Showing Object as a Collection?
Re: Problem with Debugger Showing Object as a Collection?
- Subject: Re: Problem with Debugger Showing Object as a Collection?
- From: Dave <email@hidden>
- Date: Thu, 04 Feb 2016 20:17:36 +0000
Apparently it an XCode Feature/Bug.
Make sure you aren't inspecting the object before it is initialized. Xcode prints the dynamic type of variables rather than their static type. That's pretty useful, e.g. if a method takes an "id" we'll show you the real object passed not just the isa ivar. But an uninitialized local variable's value will be whatever was in the stack slot that last time this bit of the stack was used. If that was a pointer to some ObjC object even though the object is not good anymore, if its isa pointer hasn't been overwritten its dynamic type will be the type of the previous object.
Jim
|
_______________________________________________
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