Skip to content
Browse files

Zoom in/Out

  • Loading branch information...
1 parent edd34fa commit 47e88c33862872f39a6074687e24e897158dd7fc @pppoe committed Aug 10, 2011
View
13 GetFrame.xcodeproj/project.pbxproj
@@ -12,7 +12,7 @@
4654F92713F10E2700BE97F7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4654F92613F10E2700BE97F7 /* main.m */; };
4654F92A13F10E2700BE97F7 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 4654F92813F10E2700BE97F7 /* Credits.rtf */; };
4654F92D13F10E2700BE97F7 /* GetFrameAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4654F92C13F10E2700BE97F7 /* GetFrameAppDelegate.m */; };
- 4654F93013F10E2800BE97F7 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4654F92E13F10E2800BE97F7 /* MainMenu.xib */; };
+ 4654F93013F10E2800BE97F7 /* Main.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4654F92E13F10E2800BE97F7 /* Main.xib */; };
4654F93813F119D700BE97F7 /* GetFrameWinController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4654F93713F119D700BE97F7 /* GetFrameWinController.m */; };
4654F93A13F11A0300BE97F7 /* GetFrameWinController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4654F93913F11A0300BE97F7 /* GetFrameWinController.xib */; };
/* End PBXBuildFile section */
@@ -30,7 +30,7 @@
4654F92913F10E2700BE97F7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
4654F92B13F10E2700BE97F7 /* GetFrameAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GetFrameAppDelegate.h; sourceTree = "<group>"; };
4654F92C13F10E2700BE97F7 /* GetFrameAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GetFrameAppDelegate.m; sourceTree = "<group>"; };
- 4654F92F13F10E2800BE97F7 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
+ 4654F92F13F10E2800BE97F7 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Main.xib; sourceTree = "<group>"; };
4654F93613F119D700BE97F7 /* GetFrameWinController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GetFrameWinController.h; sourceTree = "<group>"; };
4654F93713F119D700BE97F7 /* GetFrameWinController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GetFrameWinController.m; sourceTree = "<group>"; };
4654F93913F11A0300BE97F7 /* GetFrameWinController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GetFrameWinController.xib; sourceTree = "<group>"; };
@@ -89,7 +89,7 @@
children = (
4654F92B13F10E2700BE97F7 /* GetFrameAppDelegate.h */,
4654F92C13F10E2700BE97F7 /* GetFrameAppDelegate.m */,
- 4654F92E13F10E2800BE97F7 /* MainMenu.xib */,
+ 4654F92E13F10E2800BE97F7 /* Main.xib */,
4654F92013F10E2700BE97F7 /* Supporting Files */,
4654F93613F119D700BE97F7 /* GetFrameWinController.h */,
4654F93713F119D700BE97F7 /* GetFrameWinController.m */,
@@ -162,7 +162,7 @@
files = (
4654F92413F10E2700BE97F7 /* InfoPlist.strings in Resources */,
4654F92A13F10E2700BE97F7 /* Credits.rtf in Resources */,
- 4654F93013F10E2800BE97F7 /* MainMenu.xib in Resources */,
+ 4654F93013F10E2800BE97F7 /* Main.xib in Resources */,
4654F93A13F11A0300BE97F7 /* GetFrameWinController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -199,12 +199,12 @@
name = Credits.rtf;
sourceTree = "<group>";
};
- 4654F92E13F10E2800BE97F7 /* MainMenu.xib */ = {
+ 4654F92E13F10E2800BE97F7 /* Main.xib */ = {
isa = PBXVariantGroup;
children = (
4654F92F13F10E2800BE97F7 /* en */,
);
- name = MainMenu.xib;
+ name = Main.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
@@ -291,6 +291,7 @@
4654F93513F10E2800BE97F7 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
View
2 GetFrame/GetFrame-Info.plist
@@ -25,7 +25,7 @@
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSMainNibFile</key>
- <string>MainMenu</string>
+ <string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
View
11 GetFrame/GetFrameWinController.h
@@ -9,10 +9,21 @@
#import <Cocoa/Cocoa.h>
@interface GetFrameWinController : NSWindowController {
+
@private
IBOutlet NSImageView *_imageView;
+ IBOutlet NSScrollView *_scrollView;
+
+
+ //< For Zooming
+ NSSize _orgSize; //< Original Image Size
+ float _zoomFactor;
}
- (IBAction)openImage:(id)sender;
+- (IBAction)modeGetFrame:(id)sender;
+- (IBAction)zoomIn:(id)sender;
+- (IBAction)zoomOut:(id)sender;
+
@end
View
101 GetFrame/GetFrameWinController.m
@@ -8,6 +8,32 @@
#import "GetFrameWinController.h"
+/////////////////////////////////////////////////////////////////////
+//< Constants
+/////////////////////////////////////////////////////////////////////
+#define kMinWinWidth (400)
+#define kMinWinHeight (400)
+
+#define kMaxWinWidth (800)
+#define kMaxWinHeight (800)
+
+#define kImagePadding (5)
+
+#define kMaxImageWidth (5000)
+#define kMaxImageHeight (5000)
+
+#define kMinImageWidth (16)
+#define kMinImageHeight (16)
+
+#define kMinZoomFactor (1.0f)
+#define kMaxZoomFactor (8.0f)
+
+@interface GetFrameWinController (Private)
+
+- (void)adjustFrameForNewImage;
+- (void)zoomView:(NSView *)view withFactor:(float)factor;
+
+@end
@implementation GetFrameWinController
@@ -29,6 +55,14 @@ - (void)dealloc
- (void)windowDidLoad
{
[super windowDidLoad];
+
+ [[self window] setMinSize:NSMakeSize(kMinWinWidth, kMinWinHeight)];
+ [[self window] setMaxSize:NSMakeSize(kMaxWinWidth, kMaxWinHeight)];
+
+ _orgSize = [_imageView frame].size;
+ _zoomFactor = 1.0f;
+
+ [_scrollView setDocumentView:_imageView];
}
- (IBAction)openImage:(id)sender {
@@ -46,8 +80,75 @@ - (IBAction)openImage:(id)sender {
{
[_imageView setImage:image];
[image release];
+
+ [self adjustFrameForNewImage];
}
}
}
+- (IBAction)modeGetFrame:(id)sender {
+
+}
+
+- (IBAction)zoomIn:(id)sender {
+
+ _zoomFactor = MIN(kMaxZoomFactor, 2 * _zoomFactor);
+
+ [self zoomView:_imageView withFactor:_zoomFactor];
+}
+
+- (IBAction)zoomOut:(id)sender {
+
+ _zoomFactor = MAX(kMinZoomFactor, _zoomFactor / 2.0f);
+
+ [self zoomView:_imageView withFactor:_zoomFactor];
+}
+
+@end
+
+@implementation GetFrameWinController (Private)
+
+- (void)zoomView:(NSView *)view withFactor:(float)factor {
+ NSSize s = [view frame].size;
+ NSPoint org = [view frame].origin;
+ NSPoint ctrPt = NSMakePoint(org.x + s.width/2.0f, org.y + s.height/2.0f);
+ NSSize newSize = NSMakeSize(_orgSize.width * factor, _orgSize.height * factor);
+ [[view animator] setFrame:NSMakeRect(ctrPt.x - newSize.width/2.0f,
+ ctrPt.y - newSize.height/2.0f,
+ newSize.width, newSize.height)];
+}
+
+- (void)adjustFrameForNewImage
+{
+
+// NSSize size = [[_imageView image] size];
+//
+// //< Keep the Left and Bottom Padding
+// float leftPadding = _imageView.frame.origin.x;
+// float bottomPadding = _imageView.frame.origin.y;
+//
+// //< Keep the Center Point
+// NSSize winSize = NSMakeSize(MIN(MAX((size.width + 2 * kImagePadding + 2 * leftPadding), kMinWinWidth), kMaxWinWidth),
+// MIN(MAX((size.height + 2 * kImagePadding + 2 * bottomPadding), kMinWinHeight), kMaxWinHeight));
+// NSRect oldWinFrame = [[self window] frame];
+// NSPoint ctrPoint = NSMakePoint(oldWinFrame.origin.x + oldWinFrame.size.width/2.0f,
+// oldWinFrame.origin.y + oldWinFrame.size.height/2.0f);
+//
+// NSRect winFrame = NSMakeRect(ctrPoint.x - winSize.width/2.0f,
+// ctrPoint.y - winSize.height/2.0f,
+// winSize.width, winSize.height);
+// [[self window] setFrame:winFrame
+// display:NO
+// animate:YES];
+//
+// NSRect rect = NSMakeRect((winSize.width - (size.width + 2*kImagePadding))/2.0f,
+// (winSize.height - (size.height + 2*kImagePadding))/2.0f,
+// (size.width + 2*kImagePadding),
+// (size.height + 2*kImagePadding));
+// [_imageView setFrame:rect];
+//
+// [[self window] setMinSize:NSMakeSize(winFrame.size.width, winFrame.size.height)];
+
+}
+
@end
View
593 GetFrame/GetFrameWinController.xib
@@ -12,13 +12,20 @@
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
- <string>NSView</string>
- <string>NSMenu</string>
- <string>NSWindowTemplate</string>
+ <string>NSScroller</string>
<string>NSMenuItem</string>
- <string>NSImageCell</string>
+ <string>NSMenu</string>
+ <string>NSScrollView</string>
<string>NSImageView</string>
+ <string>NSTextFieldCell</string>
+ <string>NSButton</string>
+ <string>NSImageCell</string>
+ <string>NSButtonCell</string>
+ <string>NSCustomView</string>
<string>NSCustomObject</string>
+ <string>NSView</string>
+ <string>NSWindowTemplate</string>
+ <string>NSTextField</string>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -45,7 +52,7 @@
<object class="NSWindowTemplate" id="1005">
<int key="NSWindowStyleMask">13</int>
<int key="NSWindowBacking">2</int>
- <string key="NSWindowRect">{{196, 240}, {480, 270}}</string>
+ <string key="NSWindowRect">{{196, 240}, {400, 400}}</string>
<int key="NSWTFlags">544735232</int>
<string key="NSWindowTitle">Window</string>
<string key="NSWindowClass">NSWindow</string>
@@ -55,40 +62,270 @@
<int key="NSvFlags">256</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSImageView" id="745186127">
+ <object class="NSScrollView" id="168309555">
<reference key="NSNextResponder" ref="1006"/>
- <int key="NSvFlags">274</int>
- <object class="NSMutableSet" key="NSDragTypes">
+ <int key="NSvFlags">310</int>
+ <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="set.sortedObjects">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>Apple PDF pasteboard type</string>
- <string>Apple PICT pasteboard type</string>
- <string>Apple PNG pasteboard type</string>
- <string>NSFilenamesPboardType</string>
- <string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
- <string>NeXT TIFF v4.0 pasteboard type</string>
+ <object class="NSClipView" id="19738434">
+ <reference key="NSNextResponder" ref="168309555"/>
+ <int key="NSvFlags">2304</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSView" id="539861495">
+ <reference key="NSNextResponder" ref="19738434"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSImageView" id="745186127">
+ <reference key="NSNextResponder" ref="539861495"/>
+ <int key="NSvFlags">301</int>
+ <object class="NSMutableSet" key="NSDragTypes">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="set.sortedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>Apple PDF pasteboard type</string>
+ <string>Apple PICT pasteboard type</string>
+ <string>Apple PNG pasteboard type</string>
+ <string>NSFilenamesPboardType</string>
+ <string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
+ <string>NeXT TIFF v4.0 pasteboard type</string>
+ </object>
+ </object>
+ <string key="NSFrame">{{1, 1}, {346, 346}}</string>
+ <reference key="NSSuperview" ref="539861495"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="31621968"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSImageCell" key="NSCell" id="456268465">
+ <int key="NSCellFlags">130560</int>
+ <int key="NSCellFlags2">33554432</int>
+ <int key="NSAlign">0</int>
+ <int key="NSScale">3</int>
+ <int key="NSStyle">2</int>
+ <bool key="NSAnimates">NO</bool>
+ </object>
+ <bool key="NSEditable">YES</bool>
+ </object>
+ </object>
+ <string key="NSFrameSize">{348, 348}</string>
+ <reference key="NSSuperview" ref="19738434"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="745186127"/>
+ </object>
+ </object>
+ <string key="NSFrame">{{1, 1}, {348, 348}}</string>
+ <reference key="NSSuperview" ref="168309555"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="539861495"/>
+ <reference key="NSDocView" ref="539861495"/>
+ <object class="NSColor" key="NSBGColor" id="257797937">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+ </object>
+ </object>
+ <int key="NScvFlags">4</int>
+ </object>
+ <object class="NSScroller" id="31621968">
+ <reference key="NSNextResponder" ref="168309555"/>
+ <int key="NSvFlags">-2147483392</int>
+ <string key="NSFrame">{{386, 1}, {15, 385}}</string>
+ <reference key="NSSuperview" ref="168309555"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="981017961"/>
+ <reference key="NSTarget" ref="168309555"/>
+ <string key="NSAction">_doScroller:</string>
+ <double key="NSCurValue">1</double>
+ <double key="NSPercent">0.96363627910614014</double>
+ </object>
+ <object class="NSScroller" id="981017961">
+ <reference key="NSNextResponder" ref="168309555"/>
+ <int key="NSvFlags">-2147483392</int>
+ <string key="NSFrame">{{1, 386}, {385, 15}}</string>
+ <reference key="NSSuperview" ref="168309555"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="715360547"/>
+ <int key="NSsFlags">1</int>
+ <reference key="NSTarget" ref="168309555"/>
+ <string key="NSAction">_doScroller:</string>
+ <double key="NSPercent">0.50602412223815918</double>
</object>
</object>
- <string key="NSFrame">{{0, 39}, {480, 231}}</string>
+ <string key="NSFrame">{{51, 51}, {350, 350}}</string>
<reference key="NSSuperview" ref="1006"/>
<reference key="NSWindow"/>
- <bool key="NSEnabled">YES</bool>
- <object class="NSImageCell" key="NSCell" id="456268465">
- <int key="NSCellFlags">130560</int>
- <int key="NSCellFlags2">33554432</int>
- <int key="NSAlign">0</int>
- <int key="NSScale">2</int>
- <int key="NSStyle">2</int>
- <bool key="NSAnimates">NO</bool>
+ <reference key="NSNextKeyView" ref="19738434"/>
+ <int key="NSsFlags">562</int>
+ <reference key="NSVScroller" ref="31621968"/>
+ <reference key="NSHScroller" ref="981017961"/>
+ <reference key="NSContentView" ref="19738434"/>
+ </object>
+ <object class="NSCustomView" id="715360547">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">290</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSTextField" id="235273908">
+ <reference key="NSNextResponder" ref="715360547"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{10, 16}, {43, 18}}</string>
+ <reference key="NSSuperview" ref="715360547"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="472438284"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="705603496">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Rect</string>
+ <object class="NSFont" key="NSSupport" id="136136890">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">14</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <reference key="NSControlView" ref="235273908"/>
+ <reference key="NSBackgroundColor" ref="257797937"/>
+ <object class="NSColor" key="NSTextColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <object class="NSColor" key="NSColor" id="301465648">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSTextField" id="472438284">
+ <reference key="NSNextResponder" ref="715360547"/>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{56, 14}, {340, 22}}</string>
+ <reference key="NSSuperview" ref="715360547"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="592441188">
+ <int key="NSCellFlags">-1804468671</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents"/>
+ <object class="NSFont" key="NSSupport">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">13</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <reference key="NSControlView" ref="472438284"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <object class="NSColor" key="NSBackgroundColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textBackgroundColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textColor</string>
+ <reference key="NSColor" ref="301465648"/>
+ </object>
+ </object>
+ </object>
+ </object>
+ <string key="NSFrameSize">{400, 50}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="235273908"/>
+ <string key="NSClassName">NSView</string>
+ </object>
+ <object class="NSCustomView" id="1031904138">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">276</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSButton" id="895606822">
+ <reference key="NSNextResponder" ref="1031904138"/>
+ <int key="NSvFlags">260</int>
+ <string key="NSFrame">{{6, 17}, {39, 38}}</string>
+ <reference key="NSSuperview" ref="1031904138"/>
+ <reference key="NSWindow"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="879022099">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">-</string>
+ <reference key="NSSupport" ref="136136890"/>
+ <reference key="NSControlView" ref="895606822"/>
+ <int key="NSButtonFlags">-2037645057</int>
+ <int key="NSButtonFlags2">135</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
+ <object class="NSButton" id="591294834">
+ <reference key="NSNextResponder" ref="1031904138"/>
+ <int key="NSvFlags">260</int>
+ <string key="NSFrame">{{6, 51}, {39, 38}}</string>
+ <reference key="NSSuperview" ref="1031904138"/>
+ <reference key="NSWindow"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="805991666">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">+</string>
+ <reference key="NSSupport" ref="136136890"/>
+ <reference key="NSControlView" ref="591294834"/>
+ <int key="NSButtonFlags">-2037645057</int>
+ <int key="NSButtonFlags2">135</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
+ <object class="NSButton" id="368379536">
+ <reference key="NSNextResponder" ref="1031904138"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{6, 303}, {39, 38}}</string>
+ <reference key="NSSuperview" ref="1031904138"/>
+ <reference key="NSWindow"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="827212987">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">0</int>
+ <string key="NSContents"/>
+ <object class="NSFont" key="NSSupport">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">10</double>
+ <int key="NSfFlags">2843</int>
+ </object>
+ <reference key="NSControlView" ref="368379536"/>
+ <int key="NSButtonFlags">-2037645057</int>
+ <int key="NSButtonFlags2">135</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
</object>
- <bool key="NSEditable">YES</bool>
+ <string key="NSFrame">{{0, 51}, {50, 349}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="168309555"/>
+ <string key="NSClassName">NSView</string>
</object>
</object>
- <string key="NSFrame">{{7, 11}, {480, 270}}</string>
+ <string key="NSFrame">{{7, 11}, {400, 400}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="745186127"/>
+ <reference key="NSNextKeyView" ref="1031904138"/>
</object>
<string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
<string key="NSMaxSize">{1e+13, 1e+13}</string>
@@ -465,6 +702,38 @@
</object>
<int key="connectionID">51</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">zoomIn:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="591294834"/>
+ </object>
+ <int key="connectionID">69</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">zoomOut:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="895606822"/>
+ </object>
+ <int key="connectionID">70</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">modeGetFrame:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="368379536"/>
+ </object>
+ <int key="connectionID">71</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">_scrollView</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="168309555"/>
+ </object>
+ <int key="connectionID">72</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -507,25 +776,13 @@
<reference key="object" ref="1006"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="745186127"/>
+ <reference ref="168309555"/>
+ <reference ref="715360547"/>
+ <reference ref="1031904138"/>
</object>
<reference key="parent" ref="1005"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">6</int>
- <reference key="object" ref="745186127"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="456268465"/>
- </object>
- <reference key="parent" ref="1006"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">7</int>
- <reference key="object" ref="456268465"/>
- <reference key="parent" ref="745186127"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">9</int>
<reference key="object" ref="464988968"/>
<object class="NSMutableArray" key="children">
@@ -725,6 +982,142 @@
<reference key="object" ref="614281113"/>
<reference key="parent" ref="403193667"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">52</int>
+ <reference key="object" ref="168309555"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="31621968"/>
+ <reference ref="981017961"/>
+ <reference ref="539861495"/>
+ </object>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">53</int>
+ <reference key="object" ref="31621968"/>
+ <reference key="parent" ref="168309555"/>
+ <string key="objectName">Scroller</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">54</int>
+ <reference key="object" ref="981017961"/>
+ <reference key="parent" ref="168309555"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">55</int>
+ <reference key="object" ref="539861495"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="745186127"/>
+ </object>
+ <reference key="parent" ref="168309555"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="745186127"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="456268465"/>
+ </object>
+ <reference key="parent" ref="539861495"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="456268465"/>
+ <reference key="parent" ref="745186127"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">56</int>
+ <reference key="object" ref="715360547"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="472438284"/>
+ <reference ref="235273908"/>
+ </object>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">58</int>
+ <reference key="object" ref="1031904138"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="368379536"/>
+ <reference ref="591294834"/>
+ <reference ref="895606822"/>
+ </object>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">59</int>
+ <reference key="object" ref="472438284"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="592441188"/>
+ </object>
+ <reference key="parent" ref="715360547"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">60</int>
+ <reference key="object" ref="592441188"/>
+ <reference key="parent" ref="472438284"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">61</int>
+ <reference key="object" ref="235273908"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="705603496"/>
+ </object>
+ <reference key="parent" ref="715360547"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">62</int>
+ <reference key="object" ref="705603496"/>
+ <reference key="parent" ref="235273908"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">63</int>
+ <reference key="object" ref="368379536"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="827212987"/>
+ </object>
+ <reference key="parent" ref="1031904138"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">64</int>
+ <reference key="object" ref="827212987"/>
+ <reference key="parent" ref="368379536"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">65</int>
+ <reference key="object" ref="591294834"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="805991666"/>
+ </object>
+ <reference key="parent" ref="1031904138"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">66</int>
+ <reference key="object" ref="805991666"/>
+ <reference key="parent" ref="591294834"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">67</int>
+ <reference key="object" ref="895606822"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="879022099"/>
+ </object>
+ <reference key="parent" ref="1031904138"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">68</int>
+ <reference key="object" ref="879022099"/>
+ <reference key="parent" ref="895606822"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -799,7 +1192,23 @@
<string>35.IBEditorWindowLastContentRect</string>
<string>35.IBPluginDependency</string>
<string>36.IBPluginDependency</string>
+ <string>52.IBPluginDependency</string>
+ <string>53.IBPluginDependency</string>
+ <string>54.IBPluginDependency</string>
+ <string>55.IBPluginDependency</string>
+ <string>56.IBPluginDependency</string>
+ <string>58.IBPluginDependency</string>
+ <string>59.IBPluginDependency</string>
<string>6.IBPluginDependency</string>
+ <string>60.IBPluginDependency</string>
+ <string>61.IBPluginDependency</string>
+ <string>62.IBPluginDependency</string>
+ <string>63.IBPluginDependency</string>
+ <string>64.IBPluginDependency</string>
+ <string>65.IBPluginDependency</string>
+ <string>66.IBPluginDependency</string>
+ <string>67.IBPluginDependency</string>
+ <string>68.IBPluginDependency</string>
<string>7.IBPluginDependency</string>
<string>9.IBEditorWindowLastContentRect</string>
<string>9.IBPluginDependency</string>
@@ -879,6 +1288,22 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{380, 836}, {512, 20}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
@@ -898,7 +1323,7 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">51</int>
+ <int key="maxID">72</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -907,25 +1332,81 @@
<string key="className">GetFrameWinController</string>
<string key="superclassName">NSWindowController</string>
<object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">openImage:</string>
- <string key="NS.object.0">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>modeGetFrame:</string>
+ <string>openImage:</string>
+ <string>zoomIn:</string>
+ <string>zoomOut:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ </object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">openImage:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">openImage:</string>
- <string key="candidateClassName">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>modeGetFrame:</string>
+ <string>openImage:</string>
+ <string>zoomIn:</string>
+ <string>zoomOut:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">modeGetFrame:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">openImage:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">zoomIn:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">zoomOut:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
- <string key="NS.key.0">_imageView</string>
- <string key="NS.object.0">NSImageView</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>_imageView</string>
+ <string>_scrollView</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSImageView</string>
+ <string>NSScrollView</string>
+ </object>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <string key="NS.key.0">_imageView</string>
- <object class="IBToOneOutletInfo" key="NS.object.0">
- <string key="name">_imageView</string>
- <string key="candidateClassName">NSImageView</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>_imageView</string>
+ <string>_scrollView</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">_imageView</string>
+ <string key="candidateClassName">NSImageView</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">_scrollView</string>
+ <string key="candidateClassName">NSScrollView</string>
+ </object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
View
0 GetFrame/en.lproj/MainMenu.xib → GetFrame/en.lproj/Main.xib
File renamed without changes.

0 comments on commit 47e88c3

Please sign in to comment.
Something went wrong with that request. Please try again.