Move awakeFromNib implementation to NSObject instead of NSView, as discussed in the documentation

This commit is contained in:
Gregory John Casamento 2023-11-24 21:32:15 -05:00
parent bb7304e449
commit 4b3014922c
2 changed files with 10 additions and 4 deletions

View file

@ -53,6 +53,16 @@
#import "AppKit/NSNibLoading.h"
#import "GNUstepGUI/GSModelLoaderFactory.h"
@implementation NSObject (NSNibLoading)
- (void) awakeFromNib
{
// empty implementation, so that all objects respond...
}
@end
@implementation NSNib
// private method to read in the data...

View file

@ -5231,10 +5231,6 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
return 0;
}
- (void) awakeFromNib
{
}
@end
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)