Mercurial > sdl-ios-xcode
comparison Xcode/TemplatesForProjectBuilder/SDL Custom Cocoa Application/MyCustomView.m @ 2207:d63e9f5944ae
Unpacked project archives to get individual file history in subversion
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 21 Jul 2007 17:09:01 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2206:ca7d2227d630 | 2207:d63e9f5944ae |
---|---|
1 // | |
2 // MyCustomView.m | |
3 // SDL Custom View App | |
4 // | |
5 // Created by Darrell Walisser on Fri Jul 18 2003. | |
6 // Copyright (c) 2003 __MyCompanyName__. All rights reserved. | |
7 // | |
8 | |
9 #import "MyCustomView.h" | |
10 | |
11 | |
12 @implementation MyCustomView | |
13 | |
14 - (id)initWithFrame:(NSRect)frame | |
15 { | |
16 self = [ super initWithFrame:frame ]; | |
17 if (self) { | |
18 // Initialization code here. | |
19 } | |
20 return self; | |
21 } | |
22 | |
23 - (void)drawRect:(NSRect)rect | |
24 { | |
25 // Drawing code here. | |
26 } | |
27 | |
28 - (BOOL)mouseDownCanMoveWindow | |
29 { | |
30 // If you use textured windows, this disables | |
31 // moving the window by dragging in the view | |
32 return NO; | |
33 } | |
34 @end |