From 69fa956f5012f92186e123af37b5bbff8554bbdc Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 8 Oct 2014 19:23:47 +0200 Subject: cocoa: allow to embed into an arbitrary NSView Basically add if guards on all the problematic features. I'm still thinking about a better way to handle this, but for the time being, this will do. --- DOCS/client_api_examples/cocoabasic.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DOCS/client_api_examples') diff --git a/DOCS/client_api_examples/cocoabasic.m b/DOCS/client_api_examples/cocoabasic.m index 5c1a89bc2e..3324f13845 100644 --- a/DOCS/client_api_examples/cocoabasic.m +++ b/DOCS/client_api_examples/cocoabasic.m @@ -82,7 +82,7 @@ static void wakeup(void *); } #if EMBED_VIEW - int64_t wid = (intptr_t) self->w; + int64_t wid = (intptr_t) [self->w contentView]; check_error(mpv_set_option(mpv, "wid", MPV_FORMAT_INT64, &wid)); #endif -- cgit v1.2.3