Reviewed by Adele
authorsullivan@apple.com <sullivan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 19:06:31 +0000 (19:06 +0000)
committersullivan@apple.com <sullivan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 19:06:31 +0000 (19:06 +0000)
        Tiger build fix -- don't call QTMovieView setDelegate: directly because it's not public

        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
        (WebCore::MediaPlayerPrivate::createQTMovieView):
        (WebCore::MediaPlayerPrivate::detachQTMovieView):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28616 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm

index a166a1a367c2f330f9d21064f3679ffee703aa98..ebd5539421d4ff812695231dc7efc99ceab34b0b 100644 (file)
@@ -1,3 +1,13 @@
+2007-12-11  John Sullivan  <sullivan@apple.com>
+
+        Reviewed by Adele
+
+        Tiger build fix -- don't call QTMovieView setDelegate: directly because it's not public
+
+        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
+        (WebCore::MediaPlayerPrivate::createQTMovieView):
+        (WebCore::MediaPlayerPrivate::detachQTMovieView):
+
 2007-12-11  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by Darin.
index bd417fbae5a37ca65a458e8cb0adbfb3e2dbdb9b..392e698409eafb6d93672ca3aed54d089fca7b0e 100644 (file)
@@ -218,7 +218,12 @@ void MediaPlayerPrivate::createQTMovieView()
     m_qtMovieView.adoptNS([[QTMovieView alloc] initWithFrame:m_player->rect()]);
     NSView* parentView = static_cast<ScrollView*>(m_player->m_parentWidget)->getDocumentView();
     [parentView addSubview:m_qtMovieView.get()];
+#ifdef BUILDING_ON_TIGER
+    // setDelegate: isn't a public call in Tiger, so use performSelector to keep the compiler happy
+    [m_qtMovieView.get() performSelector:@selector(setDelegate:) withObject:m_objcObserver.get()];    
+#else
     [m_qtMovieView.get() setDelegate:m_objcObserver.get()];
+#endif
     [m_qtMovieView.get() setMovie:m_qtMovie.get()];
     [m_qtMovieView.get() setControllerVisible:NO];
     [m_qtMovieView.get() setPreservesAspectRatio:YES];
@@ -230,7 +235,12 @@ void MediaPlayerPrivate::createQTMovieView()
 void MediaPlayerPrivate::detachQTMovieView()
 {
     if (m_qtMovieView) {
+#ifdef BUILDING_ON_TIGER
+        // setDelegate: isn't a public call in Tiger, so use performSelector to keep the compiler happy
+        [m_qtMovieView.get() performSelector:@selector(setDelegate:) withObject:nil];    
+#else
         [m_qtMovieView.get() setDelegate:nil];
+#endif
         [m_qtMovieView.get() removeFromSuperview];
         m_qtMovieView = nil;
     }