Stupidish question - scoping a class to the console
Stupidish question - scoping a class to the console
- Subject: Stupidish question - scoping a class to the console
- From: Alex Zavatone <email@hidden>
- Date: Wed, 31 Aug 2016 21:02:13 -0500
Just wondering if this is remotely possible.
If I have a utility class that has public methods, I often end up typing po [MyUtilityClassThatDoesThingsThatAreUseFulToMe validateURLICareAbout:theURLThatWasJustSetInCodeAndIsLocalToTheCurrentMethod] in the console window.
This blows.
Of course, it I renamed the variable in question to myURL, that's a rational first step, but it's the fact that I have to type a class of a class that has a public method that I want to use while in the console.
Now, I can name my class A, but that also blows.
What would make sense would be to have an implicit or explicitly declared console scope to that this class automagically comes into scope when invoked through the console and outside of the console (or anything attempting to fake itself as the console, instantly returns when executed.
Almost like a popup of a collection of classes to be declared as, "I apply to the console so you don't need to enter my class name there, the methods within me have been assumed to be in scope for the console and are assumed to apply to me."
Are there any Xcode console plugins that anyone is aware of that might already do this? I can't be the first person to want to type less in the console.
Does that make any sense?
_______________________________________________
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