Skip to content

Commit c7af6d7

Browse files
committed
Minor tweaks to Mac example application
1 parent c492d48 commit c7af6d7

File tree

3 files changed

+234
-3061
lines changed

3 files changed

+234
-3061
lines changed

Mac Example/AFNetworking Mac Example.xcodeproj/project.pbxproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
F897DE7A142CFEDC000DDD35 /* AFImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = F897DE6E142CFEDC000DDD35 /* AFImageCache.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
2121
F897DE7B142CFEDC000DDD35 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = F897DE70142CFEDC000DDD35 /* AFImageRequestOperation.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
2222
F897DE7C142CFEDC000DDD35 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = F897DE72142CFEDC000DDD35 /* AFJSONRequestOperation.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
23-
F897DE7D142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F897DE74142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
24-
F897DE7E142CFEDC000DDD35 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = F897DE77142CFEDC000DDD35 /* UIImageView+AFNetworking.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
2523
F8A27AC7142CFE1300F5E0D6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F8A27AB2142CFE1300F5E0D6 /* AppDelegate.m */; };
2624
F8A27AC8142CFE1300F5E0D6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F8A27AB3142CFE1300F5E0D6 /* main.m */; };
2725
F8A27AC9142CFE1300F5E0D6 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = F8A27AB9142CFE1300F5E0D6 /* Credits.rtf */; };
@@ -55,11 +53,7 @@
5553
F897DE70142CFEDC000DDD35 /* AFImageRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFImageRequestOperation.m; sourceTree = "<group>"; };
5654
F897DE71142CFEDC000DDD35 /* AFJSONRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFJSONRequestOperation.h; sourceTree = "<group>"; };
5755
F897DE72142CFEDC000DDD35 /* AFJSONRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFJSONRequestOperation.m; sourceTree = "<group>"; };
58-
F897DE73142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkActivityIndicatorManager.h; sourceTree = "<group>"; };
59-
F897DE74142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkActivityIndicatorManager.m; sourceTree = "<group>"; };
6056
F897DE75142CFEDC000DDD35 /* AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworking.h; sourceTree = "<group>"; };
61-
F897DE76142CFEDC000DDD35 /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+AFNetworking.h"; sourceTree = "<group>"; };
62-
F897DE77142CFEDC000DDD35 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+AFNetworking.m"; sourceTree = "<group>"; };
6357
F8A27AB1142CFE1300F5E0D6 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
6458
F8A27AB2142CFE1300F5E0D6 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
6559
F8A27AB3142CFE1300F5E0D6 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
@@ -146,10 +140,6 @@
146140
F897DE70142CFEDC000DDD35 /* AFImageRequestOperation.m */,
147141
F897DE6D142CFEDC000DDD35 /* AFImageCache.h */,
148142
F897DE6E142CFEDC000DDD35 /* AFImageCache.m */,
149-
F897DE76142CFEDC000DDD35 /* UIImageView+AFNetworking.h */,
150-
F897DE77142CFEDC000DDD35 /* UIImageView+AFNetworking.m */,
151-
F897DE73142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.h */,
152-
F897DE74142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.m */,
153143
);
154144
name = AFNetworking;
155145
path = ../../AFNetworking;
@@ -299,8 +289,6 @@
299289
F897DE7A142CFEDC000DDD35 /* AFImageCache.m in Sources */,
300290
F897DE7B142CFEDC000DDD35 /* AFImageRequestOperation.m in Sources */,
301291
F897DE7C142CFEDC000DDD35 /* AFJSONRequestOperation.m in Sources */,
302-
F897DE7D142CFEDC000DDD35 /* AFNetworkActivityIndicatorManager.m in Sources */,
303-
F897DE7E142CFEDC000DDD35 /* UIImageView+AFNetworking.m in Sources */,
304292
F87A159F1444926300318955 /* AFURLConnectionOperation.m in Sources */,
305293
F87A15A21444926A00318955 /* AFXMLRequestOperation.m in Sources */,
306294
F87A15A51444927300318955 /* AFPropertyListRequestOperation.m in Sources */,

Mac Example/Classes/Controllers/NearbySpotsController.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ - (id)init {
5959
return self;
6060
}
6161

62-
- (void)awakeFromNib {
62+
- (void)awakeFromNib {
63+
// Load from a fixed location, in case location services are disabled or unavailable
64+
CLLocation *austin = [[CLLocation alloc] initWithLatitude:30.2669444 longitude:-97.7427778];
65+
[self loadSpotsForLocation:austin];
66+
6367
[self.locationManager startUpdatingLocation];
6468
}
6569

0 commit comments

Comments
 (0)