From 67b0860a9f76fd8cf7e0170fc583b8f3a9a67c2e Mon Sep 17 00:00:00 2001 From: Uli Kusterer Date: Mon, 2 May 2011 12:48:43 +0200 Subject: [PATCH] Add a dummy line to make sure that the binary is linked against WebKit when Sparkle is used. The SUUpdateAlert.xib file contains a WebView and if we don't link against WebKit, we will get a runtime crash when decoding the NIB. It is better to get a link error. --- SUUpdateAlert.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SUUpdateAlert.m b/SUUpdateAlert.m index eacd734a..621c01d2 100644 --- a/SUUpdateAlert.m +++ b/SUUpdateAlert.m @@ -35,6 +35,11 @@ host = [aHost retain]; updateItem = [item retain]; [self setShouldCascadeWindows:NO]; + + // Alex: This dummy line makes sure that the binary is linked against WebKit. + // The SUUpdateAlert.xib file contains a WebView and if we don't link against WebKit, + // we will get a runtime crash when decoding the NIB. It is better to get a link error. + [WebView MIMETypesShownAsHTML]; } return self; }