mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-07-27 02:28:59 +00:00
39 lines
640 B
Mathematica
39 lines
640 B
Mathematica
|
//
|
||
|
// RKPatternView.m
|
||
|
// ResKnife
|
||
|
//
|
||
|
// Created by Nate Weaver on 2012-7-8.
|
||
|
// Copyright (c) 2012 Derailer. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "RKPatternView.h"
|
||
|
|
||
|
@implementation RKPatternView
|
||
|
|
||
|
- (id)initWithFrame:(NSRect)frame
|
||
|
{
|
||
|
self = [super initWithFrame:frame];
|
||
|
if (self) {
|
||
|
// Initialization code here.
|
||
|
}
|
||
|
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
- (void)drawRect:(NSRect)dirtyRect
|
||
|
{
|
||
|
[[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationNone];
|
||
|
[super drawRect:dirtyRect];
|
||
|
}
|
||
|
|
||
|
- (CGFloat)scale {
|
||
|
return scale;
|
||
|
}
|
||
|
|
||
|
- (void)setScale:(CGFloat)newScale {
|
||
|
scale = newScale;
|
||
|
[self setNeedsDisplay:YES];
|
||
|
}
|
||
|
|
||
|
@end
|