Readme and Install files lifting.
[Faustine.git] / interpretor / faust-0.9.47mr3 / architecture / iPhone / iPhoneViewController.m
1 /************************************************************************
2 ************************************************************************
3 FAUST Architecture File
4 Copyright (C) 2003-2011 GRAME, Centre National de Creation Musicale
5 ---------------------------------------------------------------------
6
7 This is sample code. This file is provided as an example of minimal
8 FAUST architecture file. Redistribution and use in source and binary
9 forms, with or without modification, in part or in full are permitted.
10 In particular you can create a derived work of this FAUST architecture
11 and distribute that work under terms of your choice.
12
13 This sample code is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 ************************************************************************
17 ************************************************************************/
18
19 #import "iPhoneViewController.h"
20
21 @implementation iPhoneViewController
22
23 /*
24 // The designated initializer. Override to perform setup that is required before the view is loaded.
25 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
26 if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
27 // Custom initialization
28 }
29 return self;
30 }
31 */
32
33 // Implement loadView to create a view hierarchy programmatically, without using a nib.
34
35 - (void)loadView {
36 [super loadView];
37 UIScrollView* scrollview = [[[UIScrollView alloc] initWithFrame: CGRectMake(0, 0, 320, 480)] autorelease];
38 scrollview.backgroundColor = [UIColor lightGrayColor];
39 self.view = scrollview;
40 }
41
42 /*
43 // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
44 - (void)viewDidLoad {
45 [super viewDidLoad];
46 }
47 */
48
49 /*
50 // Override to allow orientations other than the default portrait orientation.
51 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
52 // Return YES for supported orientations
53 return (interfaceOrientation == UIInterfaceOrientationPortrait);
54 }
55 */
56
57 - (void)didReceiveMemoryWarning {
58 // Releases the view if it doesn't have a superview.
59 [super didReceiveMemoryWarning];
60
61 // Release any cached data, images, etc that aren't in use.
62 }
63
64 - (void)viewDidUnload {
65 // Release any retained subviews of the main view.
66 // e.g. self.myOutlet = nil;
67 }
68
69 - (void)dealloc {
70 [super dealloc];
71 }
72
73
74 @end