[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Application icon size in the open and save dialogs
From: |
Philippe Roussel |
Subject: |
Application icon size in the open and save dialogs |
Date: |
Mon, 14 Mar 2011 09:48:39 +0100 |
Hi,
The image shown in NSSavePanel has a size of 48x48 pixels. The
application image could be of a different size, resize it.
Maybe a copy of applicationIconImage should be made before setting the
image size ?
Philippe
Index: Source/NSSavePanel.m
===================================================================
--- Source/NSSavePanel.m (révision 32563)
+++ Source/NSSavePanel.m (copie de travail)
@@ -344,6 +344,7 @@
r = NSMakeRect (8, 261, 48, 48);
button = [[NSButton alloc] initWithFrame: r];
image = [[NSApplication sharedApplication] applicationIconImage];
+ [image setSize:NSMakeSize(48,48)];
[button setImage: image];
[button setBordered: NO];
[button setEnabled: NO];
- Application icon size in the open and save dialogs,
Philippe Roussel <=