Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (47 sloc) 2.806 kB
544c9ac @tjw Initial import of LinkBack 1.0 alpha from <http://linkbackproject.org…
tjw authored
1 // SKTGridView.m
2 // Sketch Example
3 //
4
5 #import "SKTGridView.h"
6 #import "SKTGridPanelController.h"
7
8 @implementation SKTGridView
9
10 - (void)drawRect:(NSRect)rect {
11 NSDrawWhiteBezel([self bounds], rect);
12 rect = NSIntersectionRect(NSInsetRect([self bounds], 2.0, 2.0), rect);
13 SKTDrawGridWithSettingsInRect([controller gridSpacing], [controller gridColor], rect, NSMakePoint(2.0, 2.0));
14 }
15
16 - (BOOL)isFlipped {
17 return YES;
18 }
19
20 - (BOOL)isOpaque {
21 return YES;
22 }
23
24 @end
25
26 /*
27 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
28 consideration of your agreement to the following terms, and your use, installation,
29 modification or redistribution of this Apple software constitutes acceptance of these
30 terms. If you do not agree with these terms, please do not use, install, modify or
31 redistribute this Apple software.
32
33 In consideration of your agreement to abide by the following terms, and subject to these
34 terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in
35 this original Apple software (the "Apple Software"), to use, reproduce, modify and
36 redistribute the Apple Software, with or without modifications, in source and/or binary
37 forms; provided that if you redistribute the Apple Software in its entirety and without
38 modifications, you must retain this notice and the following text and disclaimers in all
39 such redistributions of the Apple Software. Neither the name, trademarks, service marks
40 or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
41 the Apple Software without specific prior written permission from Apple. Except as expressly
42 stated in this notice, no other rights or licenses, express or implied, are granted by Apple
43 herein, including but not limited to any patent rights that may be infringed by your
44 derivative works or by other works in which the Apple Software may be incorporated.
45
46 The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES,
47 EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
48 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
49 USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
50
51 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
52 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
53 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
54 REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
55 WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
56 OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57 */
Something went wrong with that request. Please try again.