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.

This commit is contained in:
Uli Kusterer committed 2011-05-02 12:48:43 +02:00
1 parent 5b90432f7e
commit 67b0860a9f
1 file changed
+5
+5
View File
@@ -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;
}