NSControl: create stub for -sizeThatFits:

Create a stub for the -[NSControl sizeThatFits:] function.
This commit is contained in:
Daniel Ferreira 2017-07-18 03:45:37 +10:00 committed by Ivan Vučica
parent 16b0299916
commit e9b0367207
2 changed files with 10 additions and 0 deletions

View file

@ -90,6 +90,10 @@
- (void) takeIntegerValueFrom: (id)sender;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_10, GS_API_LATEST)
- (NSSize) sizeThatFits: (NSSize)size;
#endif
- (void) setStringValue: (NSString *)aString;
- (NSString *) stringValue;

View file

@ -1122,6 +1122,12 @@ static NSNotificationCenter *nc;
}
}
- (NSSize) sizeThatFits: (NSSize)size
{
// FIXME: This is a stub
return size;
}
@end
@implementation NSControl(KeyViewLoop)