Index: /trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm	(revision 37114)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm	(revision 37115)
@@ -45,5 +45,7 @@
     UICocoaButton *mRealTarget;
 }
--(id)initWithObject:(UICocoaButton*)object;
+/* The next method used to be called initWithObject, but Xcode 4.1 preview 5 
+   cannot cope with that for some reason.  Hope this doesn't break anything... */
+-(id)initWithObjectAndLionTrouble:(UICocoaButton*)object; 
 -(IBAction)clicked:(id)sender;
 @end
@@ -83,5 +85,5 @@
  */
 @implementation UIButtonTargetPrivate
--(id)initWithObject:(UICocoaButton*)object
+-(id)initWithObjectAndLionTrouble:(UICocoaButton*)object
 {
     self = [super init];
@@ -293,5 +295,5 @@
     }
 
-    UIButtonTargetPrivate *bt = [[UIButtonTargetPrivate alloc] initWithObject:this];
+    UIButtonTargetPrivate *bt = [[UIButtonTargetPrivate alloc] initWithObjectAndLionTrouble:this];
     [m_pNativeRef setTarget:bt];
     [m_pNativeRef setAction:@selector(clicked:)];
