Use non-deprecated method to load nib (10.8)

We can pass `NULL` to `topLevelObjects` since we have a strong IBOutlet to the NSPanel (our top-level object).
This commit is contained in:
Ronald Wampler
2016-07-06 16:14:37 -04:00
committed by Allan Odgaard
parent 074f5c6069
commit 69b7b8ee42

View File

@@ -725,7 +725,7 @@ private:
- (IBAction)showTabSizeSelectorPanel:(id)sender
{
if(!tabSizeSelectorPanel)
[NSBundle loadNibNamed:@"TabSizeSetting" owner:self];
[[NSBundle bundleForClass:[self class]] loadNibNamed:@"TabSizeSetting" owner:self topLevelObjects:NULL];
[tabSizeSelectorPanel makeKeyAndOrderFront:self];
}