Re: Shortcut keys - Straight to AppDelegate.m
Re: Shortcut keys - Straight to AppDelegate.m
- Subject: Re: Shortcut keys - Straight to AppDelegate.m
- From: Fritz Anderson <email@hidden>
- Date: Fri, 06 Apr 2012 13:31:38 -0500
On 6 Apr 2012, at 7:57 AM, Alex Zavatone wrote:
> Is there such a key in Xcode that can bring you back to a main file?
>
> I remember in Director, command shift U always opened up the main movie class file. Do we have such a navigation capability in Xcode?
I can think of a number of reasons this would be difficult and unreliable to do.
- Xcode is not just for producing .app packages. It generates many different product types, and not every project has a privileged role for a class like a "main movie."
- Mac apps typically instantiate application delegates in MainMenu.nib, but they don't have to, and the root NIB doesn't have to be named "MainMenu."
- Increasingly, iOS apps don't have "main" NIBs, and when they do, they probably don't instantiate application delegates in them. (My memory is that storyboards have no place for app delegates.) The application delegate class might be designated only by a string passed to UIApplicationMain().
- A "main" file isn't well defined in respect of the developer's intention. In many cases, it might be the source file containing main() in the current target, but that's not useful for graphical applications. From what you've been posting elsewhere, it seems you want to do almost all your work in the app delegate, but I don't think that's common. I touch my application delegate two days a month. I spend most of my time on my main detail controller, plus this week's cluster of auxiliary views and controllers. Turning on the "recent files" filter at the bottom of the Project navigator is the best I can hope for with that workflow.
There used to be bookmarks and favorites, but they didn't make it into Xcode 4.
— F
_______________________________________________
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