I have found that the NSNibLoading methods in NSBundle:
+[NSBundle loadNibFile:externalNameTable:withZone:]
+[NSBundle loadNibNamed:owner:]
-[NSBundle loadNibFile:externalNameTable:withZone:]
have all been marked deprecated in 10.8 – what is the proper way to load the nibs in 10.8 and later?
I’m trying to create a custom sheet in my app, do I have to create NSWindowController with initWithWindowNibName for the custom sheet?
The
NSBundleclass methodloadNibNamed:owner:is deprecated in OS X v10.8,loadNibNamed:owner:topLevelObjects:is not and the comments in the documentation state why: