From 2e71cecd8d9e0958f5941979e5783e87ce7bf2b3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 27 Aug 2014 18:29:54 -0400 Subject: [PATCH] Verified NSImageView properties in the Mac OS X warning popover. --- redo/warningpopover_darwin.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/redo/warningpopover_darwin.m b/redo/warningpopover_darwin.m index 985d0e0..0ffdef4 100644 --- a/redo/warningpopover_darwin.m +++ b/redo/warningpopover_darwin.m @@ -23,7 +23,6 @@ backing:NSBackingStoreBuffered defer:YES]; [self setOpaque:NO]; -// [self setAlphaValue:0.1]; [self setHasShadow:YES]; [self setExcludedFromWindowsMenu:YES]; [self setMovableByWindowBackground:NO]; @@ -103,9 +102,8 @@ id newWarningPopover(char *text) wv->icon = [[NSImageView alloc] initWithFrame:NSZeroRect]; [wv->icon setImage:[NSImage imageNamed:NSImageNameCaution]]; - // TODO verify against Interface Builder [wv->icon setImageFrameStyle:NSImageFrameNone]; -// [wv->icon setImageAlignment:xxx]; + [wv->icon setImageAlignment:NSImageAlignCenter]; [wv->icon setImageScaling:NSImageScaleProportionallyUpOrDown]; [wv->icon setEditable:NO]; [wv->icon setAnimates:NO];