XCode 3, XCode 4, Lion and latest SDK

I’m a little confused as to how the latest updates to the SDK are provided. I’m using Xcode 3 and Lion, but I don’t seem to have access to some of the new features in Lion from Xcode. For instance, there’s no NSPopover class in my documents. Do I need to be using Xcode 4 to get these, or can I get the latest SDK separately from Xcode?

Ric

Apple has dropped support for Xcode 3 in Lion. The official statement is : “Xcode 3 is not compatible with Lion”
Is there any reason not to use Xcode 4? It’s much more comfortable than Xcode 3 especially the built-in Interface Builder

It seems like there has been a lot of criticism of Xcode 4 for ASOC users at least. I am writing more code in Objective-C these days but I still do a lot of quick testing of things in ASOC, and my understanding was that the editor in Xcode 4 is not very good for ASOC. So, does your answer imply that the 10.7 SDK comes with Xcode 4?

Ric

Yes, indeed

I’m using Script Debugger as an external editor for scripts
but Script Editor might work as well

But only from 10.7.2 on; earlier versions don’t deal with UTF8 properly, potentially causing all sorts of problems.

Somewhat related question…

I am starting to convert my projects from OS 10.6 using XCode 3 over to the newest XCode 4.2. We are still in OS 10.6. No Lion yet.

So, I installed XCode 4.2 and am opening my old files. If I try to open the NIB file it says it needs to convert it to XIB. Which is fine, I expected that.

But every project I try errors and says “The file MainMenu.nib has a dependency on an Interface Builder 3 plug-in.” and it doesn’t convert. One of these is a pretty simple window with a couple of text boxes to display some text. No fancy plug-ins. Nothing complicated.

Has anyone else had this problem? Am I doing something wrong??

Model: iMac
Browser: Firefox 3.6.4
Operating System: Mac OS X (10.6)

After a bit of searching, I found a solution. There is an Interface Builder Tool in Terminal that can convert the file from NIB to XIB. Then you just open the project in XCode and delete the NIB reference in the left panel and then add the new XIB file to the project. That seems to take care of it.

ibtool foo.nib --upgrade --write foo.xib