Where did the outline view go in Xcode 4 Documentation viewer? - xcode4

In the new Xcode 4 Documentation Organizer, I can't find the sidebar outline that lets you navigate through things such as class and instance methods, properties, etc for a given class. Where did it go?

What you can do in any document is left-click the rightmost item in the Jump Bar, i.e. the bar at the top. Move your mouse a little and the outline appears.
There is a keyboard shortcut to do this which you can customize: It's called Standard Editor > Show Document Items and defaults to CTRL-6.

This answer might be too late since the question is asked but hope someone can still get some benefit.
Here we go.
The "outline view" in xcode is actually called "Show Document Items" under menu "View -> Standard Editor"
and the keyboard shortcut is "Ctrl + 6" by default.
Another view you might be interested too is so called "Show Related Items" which also appears under menu "View -> Standard Editor" and it provides the option to see the callers and callees of any function you are viewing. Shortcut is "Ctrl + 1".
Personally, I find Ctrl + 6 is hard to press so I change the key bindings through menu "Xcode -> Preferences" and click "Key Bindings" tab. -- Everyone know this of cause :)
Have fun!!

I think that what pkananen refers to is the 'Navigator' sidebar, where you can see the 'eye', 'magnifier glass' and 'bookmarks' options in the jump bar.
If for any reason that sidebar is not showing, use "Editor > Show Navigator" option to bring it back to sight.

Related

With Qt Creator FakeVim mode, key-combination CTRL+U seem to interfere with "Select the current block"

I'm starting to use QT creator and FakeVim mode. Inside VIM I use CTRL+U (Scroll window Upwards in the buffer) and CTRL+D (Scroll window Downwards in the buffer) the whole time.
Problem: CTRL+D works as expected inside QT creator, but unfortunately the key-combination CTRL+U seem to interfere with some other setting (maybe "Select the current block") and begins marking a lot of text at the same time it's scrolling upwards.
So: CTRL+D = scrolls down, no "block selecting"-stuff going on.
CTRL+U scrolls up and at the same time it begins highlighting (block selection), which is really annoying.
Attempted: Among other things, I tried googling and found: https://doc.qt.io/qtcreator/creator-keyboard-shortcuts.html - and tried both combinations of the value "Enable smart selection changing" - but it ditn't help on my CTRL+U-issue...
Question: Anyone knows how I can make CTRL+U only scroll up, instead of selecting/highlighting a block while it scrolls up?
Just for the record (it seems we're not many qtcreator/fakevim users but hopefully it can help someone else that) I found the solution and will answer myself:
First: Related to the issue is: In the "Options -> FakeVim -> General" dialog, under "Vim Behaviour" disable "Use search dialog" will get rid of (a similar) annoying vim-search "begin highlighting after search"-problem which is triggered when using "/" to search...
For the CTRL+U highlighting issue: The issue is resolved by disabling the option "Pass control keys" in the same option setting dialogue.

"Find Selected Text in Workspace..." disabled in Xcode 4 context menu

This has been bugging me for a while. In Xcode 4, sometimes this menu item is enabled, sometimes it is disabled. I cannot figure out why it is ever disabled, and there seems to be nothing at all on Google about this.
I have this same problem. If I click on the "Show assistant editor" button (the middle button in the list of Editor buttons located in the upper-right hand corner) and then back again to "Standard Editor" (the left-most button in the list of Editor buttons) then the "Find selected text in workspace..." function is enabled. But I have to do this often, but only in the projects I created before Xcode 4. So I think some setting in the project was not created properly when Xcode 4 converted it over.
I have found if you just right click on the word, without selecting it prior, then the menu selection will be enabled. This seems to be more prevalent in xCode 4.4.1. I have also noticed that when you select other words will "trigger" the menu to enable also. Hope this helps.

Xcode 4 Inspector Panel tells me "No Selection" no matter what

I have a window, a label, a button, and an NSObject.
The first thing I want to do is change the NSObject's class to that of my custom controller.
The thing is, I can't seem to select it. Whatever object I select, the inspector panel says "No Selection". Why? I'm baffled.
accepted answer did not work for me, but answer by 'NSExplorer' did (In Xcode4, the new interface builder says "no selection"). i slightly modified answer from 'NSExplorer'
.. switch to another (non IB) file in the current tab
.. switch back to the IB file (eg. Main.storyboard)
the Attributes Inspector will magically show in the new tab.
I just had to close the assistant editor and the debug area and then it magically showed up. If you don't have the assistant editor open then all you need to do is open it, then close it again. That should fix it too.
If you don't know what the assistant editor is I have highlighted it in red:
Xcode 7.2
The interface builder in XCode 4 is incredibly buggy. I'm also having frequent issues like this. Have you tried closing XCode and re-opening your project? Sometimes, resizing the entire XCode window also seems to reset the interface builder layout.
Make sure you're selecting the objects from the XIB document panel (Where it says "Objects") on the left. Sometimes clicking the actual UI controls doesn't catch in the inspector panel, for whatever reason.
For me, I had the bottom, debugger stretched all away to the top. It said "no selection." By Taping on hide/open bottom debugger twice, you can get the main component back again.
If you have multiple windows, close the storyboard file and open it again, it worked for me

Close Other tabs in XCode 4?

Am I crazy or is it not possible to close other tabs in XCode 4? I have about 7 tabs opened littering my workspace. I right click the one tab I'm interested in to bring up the context menu. I can see options to open a "new tab", "close tab", "close other tabs", and "move tab to new window". However, the only option that is not greyed out is "new tab". Do I have to put XCode in some magical state to enable the other options? Are these options merely eye candy, teasing me with hopes and aspirations of things I might like to do? Is this some weird kind of year long April fools gag? Inquiring minds wanna know.
*Update Uploading a HocusFocus screen capture for clarity...
You should be able to hover over the tab and click on the cross that appears on the left hand side of the tab. However, if you are not seeing this cross for some strange reason - you should be able to close the current tab in XCode (similar to many other OSX applications) by pressing CMD+W on your keyboard.
While the context menu doesn't work when you right click on a tab, you can achieve all of the same results by using keyboard shortcuts (which do seem to work as expected). Each of the 4 options on the context menu maps to the following shortcuts;
New Tab: CMD + T
Close Tab: CMD + W
Close Other Tabs: CMD + ALT + W
Move Tab to Other Window: I couldn't find a keyboard shortcut, but you can click and drag the tab away from the menu bar.
There doesn't appear to be a sensible way to enable the context menu on the tabs at the current time.
Late to the party but are/were you in full screen? Try again after quitting full screen...
Just click: View -> Hide tab bar
I had a similar issue (I say 'similar, because using Cmd+W. Cmd+Alt+W' didn't work for me).
In my case the tab had a cross on the top right, grayed out and nothing happens when clicking on it. If I opened a new tab, I could close either of the extra tabbed editors, but not both(!)
In View > Editor, selecting 'Standard' removes the 'second tabbed editor'.

Flex: Is it possible to hide some tabs in tab navigator and show them only when certain event occurs

I am using tab navigator. And it has thee tabs "Search", "Show as text", "Show on map"
I have a address search box in Search tab. I would like to hide other two tabs if search has not happened yet. So if user hasn't searched any thing other two tabs shouldn't be visible.
Can you please tell me how can I achieve this?
Hiding tabs is a preferred way.
Second option is to disable tabs until search is done.
There are a couple ways to do this.
Use the TabNavigator's getTabAt() method which returns the Button that makes up the visual tab and set the visible property to false. It can be tricky with bindings.
The other option is to addChildAt or removeChildAt on the TabNavigaor depending on what tabs you want to show or hide.
As you mention disabling could also work. Do this by as well setting the tab's container to disabled.
I had used removeChildAt on tab navigator and works fine. But if you want to do specific actions on selected Tab then you should think about other solution because the removedChild is no longer available in tab navigator.

Resources