If I have a directory in my Xcode project (not a Group), which is added to the main target, and compile it, how do I instruct an NSViewController to initWithNibName:bundle:
a nib file inside that directory?
I've tried [viewController initWithNibName:@"FolderName/NibName" bundle:nil]
, but that doesn't work. Neither does without the folder name, nor setting the bundle parameter to [NSBundle mainBundle]
. I've even tried setting the bundle to [NSBundle bundleWithPath:pathToFolderName]
to no avail.