Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode4

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.

like image 574
Oliver Avatar asked May 08 '11 18:05

Oliver


3 Answers

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.

like image 169
tmr Avatar answered Oct 21 '22 06:10

tmr


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:

Assistant editor in red

Xcode 7.2

like image 42
Daniel Galasko Avatar answered Oct 21 '22 05:10

Daniel Galasko


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.

like image 44
ermo Avatar answered Oct 21 '22 04:10

ermo