What is difference between nib and xib in Interface Builder files?
相关问题
- NSOutlineView drag line stuck + blue border
- iphone sdk see size of local file (one created
- How can you detect the connection and disconnectio
- QuickLook Plugin Failing with sandboxing error
- NSTextField font styling resets when selected
相关文章
- Xcode: Is there a way to change line spacing (UI L
- Converting (u)int64_t to NSNumbers
- “getter” keyword in @property declaration in Objec
- NSMenuItem KeyEquivalent “ ”(space) bug
- Why are my UIView layer properties not being set w
- Detect if cursor is hidden on Mac OS X
- NSNumberFormatter doesn't allow typing decimal
- Is subclassing NSNotification the right route if I
http://en.wikipedia.org/wiki/Interface_Builder#Design
XIBs are flat files rather than being a bundle. This makes it easier for SCM(source control management) systems to deal with. When you compile your app, the XIB is compiled into a NIB file for inclusion in your app.
The compiled NIB that is included in the app bundle is no longer editable in Interface Builder and is much smaller than the equivalent XIB or legacy NIB file.
The XIB File is basicly a source document of a NIB File, XIBs can nearly always be edited in Xcode (unless they are outdated or corrupt). while the newer NIBs are compressed and are unopenable, The older NIBs are bundles which can be viewed by Xcode, The Bundled NIBs contain some source/archived files which includes
designable.nib
which is often just the renamed XIB File.Although the new archived NIB files are unopenable to most applications including Xcode, they can still potentially be unarchived. I found this freeware application called NibUnlocker On The CharlesSoft Website which can potentially disassemble a flat Nib file and export it as an XIB document. This application is still fairly buggy but it is sometimes very accurate based on the Nibs contents.
(NibUnlocker is a very inaccurate name, Nibs are not locked they are archived)
Click to Download NibUnlocker
If You wish to know a bit more you can read some additional information I have provided below in regards to the NIB and XIB Formats:
yo hit me up with an upvote if this helped ;-)
Also when you compile your project, .xib file will get compiled into nib.
Functionally nothing but the xib is a source control friendly format