aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/Report.m
blob: afd71ede4060a71d1993df792537c04c291d957e (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
//  Report.m
//  FixMyStreet
//
//  Created by Matthew on 29/09/2008.
//  Copyright 2008 UK Citizens Online Democracy. All rights reserved.
//

/*
#import "Report.h"

static Report *sharedReport = nil;

@implementation Report

@synthesize image, location, subject;

-(void)uploadReport {
}

// See "Creating a Singleton Instance" in the Cocoa Fundamentals Guide for more info

+ (Report *)sharedInstance {
    @synchronized(self) {
        if (sharedReport == nil) {
            [[self alloc] init]; // assignment not done here
        }
    }
    return sharedReport;
}

+ (id)allocWithZone:(NSZone *)zone {
    @synchronized(self) {
        if (sharedReport == nil) {
            sharedReport = [super allocWithZone:zone];
            return sharedReport;  // assignment and return on first allocation
        }
    }
    return nil; // on subsequent allocation attempts return nil
}

- (id)copyWithZone:(NSZone *)zone
{
    return self;
}

- (id)retain {
    return self;
}

- (unsigned)retainCount {
    return UINT_MAX;  // denotes an object that cannot be released
}

- (void)release {
    //do nothing
}

- (id)autorelease {
    return self;
}

@end
*/