-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathEvent.m
60 lines (48 loc) · 1.08 KB
/
Event.m
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
//
// Event.m
// GeoEvents_final
//
// Created by Martin Roedvand on 07/12/2009.
// Copyright 2009 Redwater software. All rights reserved.
//
#import "Event.h"
@implementation Event
@synthesize ident,
artist,
venue,
startDate,
sensibleDate,
eventUrl,
websiteUrl,
canceled,
lat,
lon,
tags,
attendance,
location,
section,
row,
coordinate,
title,
subtitle;
-(void)setForMapKit {
//Should only be runa after we've set values for lat and lon
coordinate.latitude = [lat doubleValue];
coordinate.longitude = [lon doubleValue];
//NSLog(@"Latitude: %@", [lat description]);
//NSLog(@"Longitude: %@", [lon description]);
title = artist;
subtitle = [[NSString alloc]initWithFormat:@"%@, %@", venue, location];
//NSLog(@"Title: %@", title);
//NSLog(@"Subtitle: %@", subtitle);
}
- (bool)isThisIt:(NSString*)band venue:(NSString*)place {
if([artist isEqualToString:band]) {
NSString *compVenue = [NSString stringWithFormat:@"%@, %@", venue, location];
if([compVenue isEqualToString:place]) {
return true;
}
}
return false;
}
@end