VirtualBox

Changeset 37115 in vbox


Ignore:
Timestamp:
May 16, 2011 10:44:58 PM (14 years ago)
Author:
vboxsync
Message:

FE/VirtualBox: Mac OS X 10.7 hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm

    r35874 r37115  
    4545    UICocoaButton *mRealTarget;
    4646}
    47 -(id)initWithObject:(UICocoaButton*)object;
     47/* The next method used to be called initWithObject, but Xcode 4.1 preview 5
     48   cannot cope with that for some reason.  Hope this doesn't break anything... */
     49-(id)initWithObjectAndLionTrouble:(UICocoaButton*)object;
    4850-(IBAction)clicked:(id)sender;
    4951@end
     
    8385 */
    8486@implementation UIButtonTargetPrivate
    85 -(id)initWithObject:(UICocoaButton*)object
     87-(id)initWithObjectAndLionTrouble:(UICocoaButton*)object
    8688{
    8789    self = [super init];
     
    293295    }
    294296
    295     UIButtonTargetPrivate *bt = [[UIButtonTargetPrivate alloc] initWithObject:this];
     297    UIButtonTargetPrivate *bt = [[UIButtonTargetPrivate alloc] initWithObjectAndLionTrouble:this];
    296298    [m_pNativeRef setTarget:bt];
    297299    [m_pNativeRef setAction:@selector(clicked:)];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette