views:

2111

answers:

4

Hi, What's up with the NIB->XIB change somewhere between Xcode 3.0 to 3.1? Is there any difference with this name change that I should know while I go through tutorials that mention nothing but the .nib file?

+5  A: 

XIB's are very cool. they are basically an un-compiled NIB (in XML format if memory serves me)

during the build process they are converted to NIB's to be deployed in the final product.

kent
+1  A: 

Perfect link for this question. I should have googled first :S

http://speirs.org/2007/12/05/what-are-xib-files/

Devoted
yes. and definitely note that XIB's are MUCH more version control friendly!
kent
+3  A: 

The other answers and link explain what XIB files are, but not about the specific change.

The new flat-file .xib format was introduced with Leopard (and Xcode 3.0) in 2007, but I believe that .nib remained the default, primarily for compatibility with older versions of Xcode and OS X. With Xcode 3.1, there was a shift to .xib as the preferred format. However, most documentation hasn't been updated, probably in part because the distinction is fairly minor from the standpoint of a normal developer.

I definitely echo the sentiment that XIB files are much better than NIB files, especially when using version control. (Flat files are much easier to manage than directory packages in most tools.)

Quinn Taylor
+2  A: 

As I understand it, xib files are xml nib files. xib files are compiled into nibs when the application is built. The xib format was created because nib files don't mesh well with version control (because they're not text), whereas a plain text xml file works well.

Tom Dalling
You're correct about what they are. Another reason they were created is because .NIB files can be edited in IB, but are in a non-human-readable binary format. The XML format makes it much easier to tweak something by hand (if necessary) or see what changed from one revision to the next.
Quinn Taylor