summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture+UIAdditions.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-24 11:27:06 +0100
committerDamiano Galassi <[email protected]>2017-11-24 11:27:06 +0100
commit13c8582eff580913d290b98bc0a58970121ee088 (patch)
treeeb4fa7ab1263664d65ed3ca53f5e807d88180cd7 /macosx/HBPicture+UIAdditions.m
parent47d7b716b2c1f99c9d6a0ba6d2e834012d0a4d68 (diff)
MacGui: use KVO to get a good part of the change notification in the summary view.
Diffstat (limited to 'macosx/HBPicture+UIAdditions.m')
-rw-r--r--macosx/HBPicture+UIAdditions.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m
index a3a996942..be4140b56 100644
--- a/macosx/HBPicture+UIAdditions.m
+++ b/macosx/HBPicture+UIAdditions.m
@@ -89,6 +89,11 @@
return sizeInfo;
}
+- (NSString *)shortInfo
+{
+ return [NSString stringWithFormat:@"%dx%d storage, %dx%d display", self.width, self.height, self.displayWidth, self.height];
+}
+
- (NSString *)sourceInfo
{
NSString *sizeInfo = @"";