On 06.09.2016 at 18:51 Ken Thomases wrote: > On Sep 6, 2016, at 11:41 AM, Andreas Falkenhahn <[email protected]> > wrote:
>> My NSWindow contains an NSView which I use to draw custom graphics to. It >> doesn't >> contain any widgets like buttons at all, just custom graphics drawn in >> drawRect(). >> Now I'd like to have an AVPlayerView NSView on top of this view. Thus, I >> tried to >> add this AVPlayerView on top of the NSView by doing the following: >> [view addSubview:playerview]; >> However, this didn't work and generated lots of debug output to stderr. > What, specifically, does "this didn't work" mean? What debug output was > logged? Well, this list has a limit of 25kb per mail, so here is just the first 20% of what was logged: ( "<NSLayoutConstraint:0x1086476e0 H:|-(0)-[NSView:0x108633860] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108647760 H:[NSView:0x108633860]-(0)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108648990 H:|-(0)-[AVMovableView:0x1086346e0] (Names: '|':NSView:0x108633860 )>", "<NSLayoutConstraint:0x108648a50 H:[AVMovableView:0x1086346e0]-(0)-| (Names: '|':NSView:0x108633860 )>", "<NSLayoutConstraint:0x108604b10 H:|-(0)-[NSVisualEffectView:0x10862a2d0] (Names: '|':AVMovableView:0x1086346e0 )>", "<NSLayoutConstraint:0x108604b60 H:[NSVisualEffectView:0x10862a2d0]-(0)-| (Names: '|':AVMovableView:0x1086346e0 )>", "<NSLayoutConstraint:0x108674a80 H:[NSStackView:0x1086710e0(>=100)]>", "<NSLayoutConstraint:0x1005d84b0 H:|-(7)-[NSButton:0x10864b1d0'Button'](LTR) (Names: '|':NSView:0x10864aeb0 )>", "<NSLayoutConstraint:0x1005d8500 H:[NSButton:0x10864b1d0'Button']-(15)-[NSStackView:0x1086710e0](LTR)>", "<NSLayoutConstraint:0x1005d8550 H:[NSStackView:0x1086710e0]-(16)-[NSStackView:0x1005d4020](LTR)>", "<NSLayoutConstraint:0x1005d85c0 H:[NSStackView:0x1005d4020]-(8)-|(LTR) (Names: '|':NSView:0x10864aeb0 )>", "<NSLayoutConstraint:0x1005ddca0 H:|-(0)-[NSView:0x10864aeb0] (Names: '|':NSVisualEffectView:0x10862a2d0 )>", "<NSLayoutConstraint:0x1005ddd20 H:[NSView:0x10864aeb0]-(0)-| (Names: '|':NSVisualEffectView:0x10862a2d0 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x108674a80 H:[NSStackView:0x1086710e0(>=100)]> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.963 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x1005ca210 H:|-(10)-[NSView:0x1005c58d0] (Names: '|':AVExternalPlaybackIndicatorView:0x1005c5160 )>", "<NSLayoutConstraint:0x1005ca280 H:[NSView:0x1005c58d0]-(10)-| (Names: '|':AVExternalPlaybackIndicatorView:0x1005c5160 )>", "<NSLayoutConstraint:0x1005ca150 NSView:0x1005c5c80.centerX == NSView:0x1005c58d0.centerX>", "<NSLayoutConstraint:0x1005ca620 H:|-(0)-[NSView:0x1005c5c80] (Names: '|':NSView:0x1005c58d0 )>", "<NSLayoutConstraint:0x1005ca4e0 AVDraggableImageView:0x1005c6030.centerX == NSView:0x1005c5c80.centerX>", "<NSLayoutConstraint:0x1005ca900 H:|-(>=0)-[AVDraggableImageView:0x1005c6030] (Names: '|':NSView:0x1005c5c80 )>", "<NSLayoutConstraint:0x100568020 H:|-(0)-[AVExternalPlaybackIndicatorView:0x1005c5160] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x1005cbce0 H:[AVExternalPlaybackIndicatorView:0x1005c5160]-(0)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>", "<NSLayoutConstraint:0x1005cad30 V:[AVDraggableImageView:0x1005c6030(>=43)]>", "<NSLayoutConstraint:0x1005cace0 AVDraggableImageView:0x1005c6030.width == 1.45556*AVDraggableImageView:0x1005c6030.height + 1>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1005ca150 NSView:0x1005c5c80.centerX == NSView:0x1005c58d0.centerX> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.964 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x1005ca210 H:|-(10)-[NSView:0x1005c58d0] (Names: '|':AVExternalPlaybackIndicatorView:0x1005c5160 )>", "<NSLayoutConstraint:0x1005ca280 H:[NSView:0x1005c58d0]-(10)-| (Names: '|':AVExternalPlaybackIndicatorView:0x1005c5160 )>", "<NSLayoutConstraint:0x1005ca620 H:|-(0)-[NSView:0x1005c5c80] (Names: '|':NSView:0x1005c58d0 )>", "<NSLayoutConstraint:0x1005ca6a0 H:[NSView:0x1005c5c80]-(0)-| (Names: '|':NSView:0x1005c58d0 )>", "<NSLayoutConstraint:0x1005ca4e0 AVDraggableImageView:0x1005c6030.centerX == NSView:0x1005c5c80.centerX>", "<NSLayoutConstraint:0x1005ca900 H:|-(>=0)-[AVDraggableImageView:0x1005c6030] (Names: '|':NSView:0x1005c5c80 )>", "<NSLayoutConstraint:0x100568020 H:|-(0)-[AVExternalPlaybackIndicatorView:0x1005c5160] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x1005cbce0 H:[AVExternalPlaybackIndicatorView:0x1005c5160]-(0)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>", "<NSLayoutConstraint:0x1005cad30 V:[AVDraggableImageView:0x1005c6030(>=43)]>", "<NSLayoutConstraint:0x1005cace0 AVDraggableImageView:0x1005c6030.width == 1.45556*AVDraggableImageView:0x1005c6030.height + 1>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1005ca4e0 AVDraggableImageView:0x1005c6030.centerX == NSView:0x1005c5c80.centerX> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.965 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x1005ca210 H:|-(10)-[NSView:0x1005c58d0] (Names: '|':AVExternalPlaybackIndicatorView:0x1005c5160 )>", "<NSLayoutConstraint:0x1005ca280 H:[NSView:0x1005c58d0]-(10)-| (Names: '|':AVExternalPlaybackIndicatorView:0x1005c5160 )>", "<NSLayoutConstraint:0x1005ca620 H:|-(0)-[NSView:0x1005c5c80] (Names: '|':NSView:0x1005c58d0 )>", "<NSLayoutConstraint:0x1005ca6a0 H:[NSView:0x1005c5c80]-(0)-| (Names: '|':NSView:0x1005c58d0 )>", "<NSLayoutConstraint:0x1005ca900 H:|-(>=0)-[AVDraggableImageView:0x1005c6030] (Names: '|':NSView:0x1005c5c80 )>", "<NSLayoutConstraint:0x1005ca950 H:[AVDraggableImageView:0x1005c6030]-(>=0)-| (Names: '|':NSView:0x1005c5c80 )>", "<NSLayoutConstraint:0x100568020 H:|-(0)-[AVExternalPlaybackIndicatorView:0x1005c5160] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x1005cbce0 H:[AVExternalPlaybackIndicatorView:0x1005c5160]-(0)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>", "<NSLayoutConstraint:0x1005cad30 V:[AVDraggableImageView:0x1005c6030(>=43)]>", "<NSLayoutConstraint:0x1005cace0 AVDraggableImageView:0x1005c6030.width == 1.45556*AVDraggableImageView:0x1005c6030.height + 1>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1005ca950 H:[AVDraggableImageView:0x1005c6030]-(>=0)-| (Names: '|':NSView:0x1005c5c80 )> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.966 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x108630fb0 H:|-(7)-[NSStackView:0x100485650] (Names: '|':NSVisualEffectView:0x10862ad50 )>", "<NSLayoutConstraint:0x108631000 H:[NSStackView:0x100485650]-(7)-| (Names: '|':NSVisualEffectView:0x10862ad50 )>", "<NSLayoutConstraint:0x108630d70 H:|-(0)-[NSVisualEffectView:0x10862ad50] (Names: '|':AVStatusOverlayView:0x10862ab40 )>", "<NSLayoutConstraint:0x1005c5110 H:[NSVisualEffectView:0x10862ad50]-(0)-| (Names: '|':AVStatusOverlayView:0x10862ab40 )>", "<NSLayoutConstraint:0x108631dc0 H:|-(20)-[AVStatusOverlayView:0x10862ab40] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108631e10 H:[AVStatusOverlayView:0x10862ab40]-(>=20)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x1005e7670 'NSStackView.Edge.Leading.Min' H:|-(>=0)-[NSImageView:0x108623f20](LTR) (Names: '|':NSStackView:0x100485650 )>", "<NSLayoutConstraint:0x1005e7870 'NSStackView.Edge.Trailing.Min' H:[NSTextField:0x108624080]-(>=0)-|(LTR) (Names: '|':NSStackView:0x100485650 )>", "<NSLayoutConstraint:0x1004f4320 'NSStackView.Stack.0-1.Min' H:[NSImageView:0x108623f20]-(>=6)-[NSTextField:0x108624080](LTR)>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1004f4320 'NSStackView.Stack.0-1.Min' H:[NSImageView:0x108623f20]-(>=6)-[NSTextField:0x108624080](LTR)> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.967 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x108630fb0 H:|-(7)-[NSStackView:0x100485650] (Names: '|':NSVisualEffectView:0x10862ad50 )>", "<NSLayoutConstraint:0x108631000 H:[NSStackView:0x100485650]-(7)-| (Names: '|':NSVisualEffectView:0x10862ad50 )>", "<NSLayoutConstraint:0x108630d70 H:|-(0)-[NSVisualEffectView:0x10862ad50] (Names: '|':AVStatusOverlayView:0x10862ab40 )>", "<NSLayoutConstraint:0x1005c5110 H:[NSVisualEffectView:0x10862ad50]-(0)-| (Names: '|':AVStatusOverlayView:0x10862ab40 )>", "<NSLayoutConstraint:0x108631dc0 H:|-(20)-[AVStatusOverlayView:0x10862ab40] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108631e10 H:[AVStatusOverlayView:0x10862ab40]-(>=20)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x108631000 H:[NSStackView:0x100485650]-(7)-| (Names: '|':NSVisualEffectView:0x10862ad50 )> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.968 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x1086476e0 H:|-(0)-[NSView:0x108633860] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108647760 H:[NSView:0x108633860]-(0)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108648990 H:|-(0)-[AVMovableView:0x1086346e0] (Names: '|':NSView:0x108633860 )>", "<NSLayoutConstraint:0x108648a50 H:[AVMovableView:0x1086346e0]-(0)-| (Names: '|':NSView:0x108633860 )>", "<NSLayoutConstraint:0x108604b10 H:|-(0)-[NSVisualEffectView:0x10862a2d0] (Names: '|':AVMovableView:0x1086346e0 )>", "<NSLayoutConstraint:0x108604b60 H:[NSVisualEffectView:0x10862a2d0]-(0)-| (Names: '|':AVMovableView:0x1086346e0 )>", "<NSLayoutConstraint:0x1005d84b0 H:|-(7)-[NSButton:0x10864b1d0'Button'](LTR) (Names: '|':NSView:0x10864aeb0 )>", "<NSLayoutConstraint:0x1005d8500 H:[NSButton:0x10864b1d0'Button']-(15)-[NSStackView:0x1086710e0](LTR)>", "<NSLayoutConstraint:0x1005d8550 H:[NSStackView:0x1086710e0]-(16)-[NSStackView:0x1005d4020](LTR)>", "<NSLayoutConstraint:0x1005d85c0 H:[NSStackView:0x1005d4020]-(8)-|(LTR) (Names: '|':NSView:0x10864aeb0 )>", "<NSLayoutConstraint:0x1005ddca0 H:|-(0)-[NSView:0x10864aeb0] (Names: '|':NSVisualEffectView:0x10862a2d0 )>", "<NSLayoutConstraint:0x1005ddd20 H:[NSView:0x10864aeb0]-(0)-| (Names: '|':NSVisualEffectView:0x10862a2d0 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1005d8550 H:[NSStackView:0x1086710e0]-(16)-[NSStackView:0x1005d4020](LTR)> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.969 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x108630d70 H:|-(0)-[NSVisualEffectView:0x10862ad50] (Names: '|':AVStatusOverlayView:0x10862ab40 )>", "<NSLayoutConstraint:0x1005c5110 H:[NSVisualEffectView:0x10862ad50]-(0)-| (Names: '|':AVStatusOverlayView:0x10862ab40 )>", "<NSLayoutConstraint:0x108631dc0 H:|-(20)-[AVStatusOverlayView:0x10862ab40] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108631e10 H:[AVStatusOverlayView:0x10862ab40]-(>=20)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1005c5110 H:[NSVisualEffectView:0x10862ad50]-(0)-| (Names: '|':AVStatusOverlayView:0x10862ab40 )> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.969 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x108631dc0 H:|-(20)-[AVStatusOverlayView:0x10862ab40] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x108631e10 H:[AVStatusOverlayView:0x10862ab40]-(>=20)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x108631e10 H:[AVStatusOverlayView:0x10862ab40]-(>=20)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )> Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. 2016-09-06 17:12:50.971 Hollywood[1160:23595] Unable to simultaneously satisfy constraints: ( "<NSLayoutConstraint:0x10861bff0 H:|-(>=10)-[NSImageView:0x1005bf970] (Names: '|':AVUnsupportedContentIndicatorView:0x1005be6b0 )>", "<NSLayoutConstraint:0x10861cb10 NSImageView:0x1005bf970.centerX == AVUnsupportedContentIndicatorView:0x1005be6b0.centerX>", "<NSLayoutConstraint:0x10861cea0 H:|-(0)-[AVUnsupportedContentIndicatorView:0x1005be6b0] (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSLayoutConstraint:0x10861cf30 H:[AVUnsupportedContentIndicatorView:0x1005be6b0]-(0)-| (Names: '|':MyAVPlayerView:0x1004f5b70 )>", "<NSAutoresizingMaskLayoutConstraint:0x1086c3130 h=--& v=--& H:[MyAVPlayerView:0x1004f5b70(0)]>", "<NSLayoutConstraint:0x10861cd10 NSImageView:0x1005bf970.width == NSImageView:0x1005bf970.height + 1>" ) Let me know if you need more :) -- Best regards, Andreas Falkenhahn mailto:[email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
