{"id":132,"date":"2006-02-24T11:19:21","date_gmt":"2006-02-24T19:19:21","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/?p=132"},"modified":"2018-10-31T10:16:18","modified_gmt":"2018-10-31T17:16:18","slug":"xcode-shortcuts-to-finding-a-file","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2006\/02\/xcode-shortcuts-to-finding-a-file\/","title":{"rendered":"Xcode shortcuts to finding a file."},"content":{"rendered":"<p id=\"top\" \/>Cocoa Developers:<\/p>\n<p>While programming with Xcode, I&#8217;ve developed several habits to make me a faster programmer. I&#8217;ll share these tidbits with you.<\/p>\n<p>1. Use Cmd-Shift-D to quickly open files that you know the names to. <\/p>\n<p>I&#8217;ll know that I want to open a particular file, such as NSTableView.m. So, I hit cmd-shift-d to bring up the \u00e2\u20ac\u0153Open Quicky\u00e2\u20ac\u009d dialog and type in nstableview (note that I don&#8217;t use the correct case, or extension, and it still works):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/Tableview-cmd-shift-dPicture%201.png\" height=\"146\" width=\"519\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Tableview-Cmd-Shift-Dpicture 1\" \/><\/p>\n<p>This will work for framework header files too.<\/p>\n<p>2. Use Cmd-Alt-UpArrow to switch from the header to the implementation file. <i>I use this ALL the time.<\/i><\/p>\n<p>3. Use Cmd-Alt-F to focus the search field. Once it is focused, hit the down arrow to pop up the menu, and the up arrow once to select your project name (then hit enter):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/Cmd-shift-f-focused-Picture%201.png\" height=\"137\" width=\"216\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Cmd-Shift-F-Focused-Picture 1\" \/><\/p>\n<p>You can then search through all your files using the search field. This works particular well when you can&#8217;t remember the full filename.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cocoa Developers: While programming with Xcode, I&#8217;ve developed several habits to make me a faster programmer. I&#8217;ll share these tidbits with you. 1. Use Cmd-Shift-D to quickly open files that you know the names to&#8230;. <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2006\/02\/xcode-shortcuts-to-finding-a-file\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4,6,1],"tags":[63,130,72],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-apple","category-cocoa","category-general","tag-cocoa","tag-objc","tag-programming"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":5334,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions\/5334"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}