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: Lee Ann Rucker <email@hidden>
- Date: Tue, 21 Aug 2012 12:22:49 -0700
On Aug 21, 2012, at 5:16 AM, Alex Zavatone wrote:
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.
po foo is better than print *foo because it has the stuff I find important, even if it's not in an instvar print *foo is better than po foo because it has all the instvars, even the ones in super that I didn't know existed.
|
_______________________________________________
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