Post

Replies

Boosts

Views

Activity

Reply to How to make subview resize automatically, when subview was created programmatically?
This is working for me...#import "ArtSaverView.h"@implementation ArtSaverView- (nullable instancetype)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview{ if ((self = [super initWithFrame:frame isPreview:isPreview]) != nil) { NSLog(@"autoresizesSubviews - %d", self.autoresizesSubviews); NSLog(@"autoresizingMask - %d", (int)self.autoresizingMask); self.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable; self.translatesAutoresizingMaskIntoConstraints = YES; } return self;}#if 0- (void)resizeSubviewsWithOldSize:(NSSize)oldSize{ NSLog(@"resizeSubviewsWithOldSize");}- (void)resizeWithOldSuperviewSize:(NSSize)oldSize{ NSLog(@"resizeWithOldSuperviewSize");}#endif // 0@endwithout self.autoresizingMask set my resize* messages weren't called.when the resize* messages are compiled in they are called instead of auto-resizing.Also, for the window containing view I set AutoResizing on the super view to be both to the containing window and to the contained objects so that the red box inside the demo area resizes WITH the window.
Apr ’20
Reply to Create ML on a Mid 2014 MacBook Pro
MacBookPro11,1 (Haswell) has Iris 5100.MacBookPro11,2 (Haswell/Crystalwell) has Iris Pro 5200.MacBookPro11,3 (Haswell/Crystalwell)has GeForce GT 750M (+ Iris Pro 5200)The Intel HD 515 is a Skylake generation feature, which didn't launch until 2015.Judging by the error code, you need an October 2015 (or later) Mac of some sort.
Mar ’20
Reply to CreateML on MacBook Pro Mid 2014
MacBookPro11,1 (Haswell) has Iris 5100.MacBookPro11,2 (Haswell/Crystalwell) has Iris Pro 5200.MacBookPro11,3 (Haswell/Crystalwell)has GeForce GT 750M (+ Iris Pro 5200)The Intel HD 515 is a Skylake generation feature, which didn't launch until 2015.Judging by the error code, you need an October 2015 (or later) Mac of some sort.
Mar ’20