Re: What are your tips for navigating the Xcode interface faster?
Re: What are your tips for navigating the Xcode interface faster?
- Subject: Re: What are your tips for navigating the Xcode interface faster?
- From: Alex Zavatone <email@hidden>
- Date: Tue, 21 Aug 2012 08:16:08 -0400
On Aug 20, 2012, at 6:18 PM, Jens Alfke wrote: On Aug 20, 2012, at 2:10 PM, Alex Zavatone < email@hidden> wrote: Huh? Just flip open the object in the variables pane of the debugger and you can see its instance variables. Or type "print *foo" and it'll print all the ivars of foo to the console.
Never works.
You're saying that flipping open the outline item for an object variable in the debugger doesn't work? That's weird. Is it just un-flippable, or do you get missing or bogus values?
It shows the variable types and memory addresses, but never the things that I actually care about, the values. The "summary" is always empty. (I wonder if this has something to do with declaring ivars in header files vs. .m files … I still put them in header files.)
If I have a class, and I po an instance of that class, no ivars get printed out to the console until I write a descriptor method for the class.
Well, yeah. The default implementation of -description just returns the object's class and address. It's intended that you override it if you want to provide a more detailed custom description.
It's stuff like this that make me go WTF, Apple, WTF? Back in 1996, we had features like this in Director and I even wrote my own recursive object inspector to run alongside the Director debugger which recursively listed all the in scope object's properties. Even a simple tool like an Applescript to add a descriptor to a class are better than having to create one manually.
|
_______________________________________________
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