Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
34 lines (28 loc) · 597 Bytes

File metadata and controls

34 lines (28 loc) · 597 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// MyCustomView.m
// SDL Custom View App
//
// Created by Darrell Walisser on Fri Jul 18 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//
#import "MyCustomView.h"
@implementation MyCustomView
- (id)initWithFrame:(NSRect)frame
{
self = [ super initWithFrame:frame ];
if (self) {
// Initialization code here.
}
return self;
}
- (void)drawRect:(NSRect)rect
{
// Drawing code here.
}
- (BOOL)mouseDownCanMoveWindow
{
// If you use textured windows, this disables
// moving the window by dragging in the view
return NO;
}
@end