File: MWFakeFile.m

package info (click to toggle)
gtamsanalyzer.app 0.42-6
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 6,112 kB
  • ctags: 866
  • sloc: objc: 34,338; ansic: 8,762; cpp: 384; makefile: 59; sh: 47
file content (37 lines) | stat: -rwxr-xr-x 707 bytes parent folder | download | duplicates (7)
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
35
36
37
//
//  MWFakeFile.m
//  TEST2
//
//  Created by matthew on Thu Jun 05 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

#import "MWFakeFile.h"


@implementation MWFakeFile
-(id) initWithString: (NSString *) what
{
    self = [super init];
    myString = [[NSString alloc] initWithString: what];
    [path setString: @""];
    return self;
}

-(void) dealloc
{
    [myString release];
    [super dealloc];
}

-(NSString *) name {return path;}
-(NSString *) path {return path;}
-(NSString *) string {return myString;}
-(BOOL) open {return YES;}
-(void) setOpen: (BOOL) state {;}
-(void) setOpenFile: (id) aFid
{;}
-(void) setHasFile: (BOOL) state {;}
-(BOOL) hasFile {return NO;}

@end