From f2ec431286de32d37ad35230cc232c508b2cb9bd Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Wed, 9 Mar 2011 20:08:15 +0000 Subject: NSColor* and NSSize arguments are a problem with receivers held by scoped_nsobject<> when using the 10.6 SDK. TEST=Compile with 10.6 SDK BUG=35569, 35578 (sort of) Review URL: http://codereview.chromium.org/6657008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77509 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm index c4cb727..5efe1cc 100644 --- a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm +++ b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm @@ -71,8 +71,9 @@ const NSTimeInterval kWindowFadeAnimationDuration = 0.2; scoped_nsobject attrString( [[NSMutableAttributedString alloc] initWithString:text]); scoped_nsobject textShadow([[NSShadow alloc] init]); - [textShadow setShadowColor:[NSColor colorWithCalibratedWhite:0 alpha:0.6]]; - [textShadow setShadowOffset:NSMakeSize(0, -1)]; + [textShadow.get() setShadowColor:[NSColor colorWithCalibratedWhite:0 + alpha:0.6]]; + [textShadow.get() setShadowOffset:NSMakeSize(0, -1)]; [textShadow setShadowBlurRadius:1.0]; [attrString addAttribute:NSShadowAttributeName value:textShadow -- cgit v1.1