Adding AFNetworking.h

Renaming App Delegate
This commit is contained in:
Mattt Thompson 2011-09-23 12:30:50 -05:00
parent efdaedc541
commit d7b6046e63
6 changed files with 141 additions and 2210 deletions

View file

@ -0,0 +1,35 @@
// AFNetworking.h
//
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
#import <Availability.h>
#import <AFNetworking/AFHTTPRequestOperation.h>
#import <AFNetworking/AFJSONRequestOperation.h>
#import <AFNetworking/AFHTTPClient.h>
#import <AFNetworking/AFImageRequestOperation.h>
#import <AFNetworking/AFImagecache.h>
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <AFNetworking/UIImageView+AFNetworking.h>
#endif

View file

@ -68,7 +68,7 @@
*/
- (void)setImageWithURLRequest:(NSURLRequest *)urlRequest
placeholderImage:(UIImage *)placeholderImage
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response,UIImage *image))success
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success
failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error))failure;
- (void)cancelImageRequestOperation;

View file

@ -18,7 +18,7 @@
F8CEEB6F142CEC6E00247B03 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F8CEEB6E142CEC6E00247B03 /* Cocoa.framework */; };
F8CEEB7B142CEC6E00247B03 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F8CEEB7A142CEC6E00247B03 /* main.m */; };
F8CEEB7F142CEC6E00247B03 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = F8CEEB7D142CEC6E00247B03 /* Credits.rtf */; };
F8CEEB82142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F8CEEB81142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.m */; };
F8CEEB82142CEC6E00247B03 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F8CEEB81142CEC6E00247B03 /* AppDelegate.m */; };
F8CEEB85142CEC6E00247B03 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = F8CEEB83142CEC6E00247B03 /* MainMenu.xib */; };
/* End PBXBuildFile section */
@ -39,6 +39,7 @@
F8A27A2B142CF24700F5E0D6 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIImageView+AFNetworking.m"; path = "AFNetworking/UIImageView+AFNetworking.m"; sourceTree = "<group>"; };
F8A27A38142CF36100F5E0D6 /* JSONKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSONKit.h; sourceTree = "<group>"; };
F8A27A39142CF36100F5E0D6 /* JSONKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSONKit.m; sourceTree = "<group>"; };
F8A27A3B142CF75A00F5E0D6 /* AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AFNetworking.h; path = AFNetworking/AFNetworking.h; sourceTree = "<group>"; };
F8CEEB6A142CEC6E00247B03 /* AFNetworking Mac Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AFNetworking Mac Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
F8CEEB6E142CEC6E00247B03 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
F8CEEB71142CEC6E00247B03 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
@ -48,8 +49,8 @@
F8CEEB7A142CEC6E00247B03 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
F8CEEB7C142CEC6E00247B03 /* Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = "<group>"; };
F8CEEB7E142CEC6E00247B03 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
F8CEEB80142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AFNetworking_Mac_ExampleAppDelegate.h; sourceTree = "<group>"; };
F8CEEB81142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AFNetworking_Mac_ExampleAppDelegate.m; sourceTree = "<group>"; };
F8CEEB80142CEC6E00247B03 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
F8CEEB81142CEC6E00247B03 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
F8CEEB84142CEC6E00247B03 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */
@ -115,8 +116,8 @@
F8CEEB74142CEC6E00247B03 /* AFNetworking Mac Example */ = {
isa = PBXGroup;
children = (
F8CEEB80142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.h */,
F8CEEB81142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.m */,
F8CEEB80142CEC6E00247B03 /* AppDelegate.h */,
F8CEEB81142CEC6E00247B03 /* AppDelegate.m */,
F8CEEB83142CEC6E00247B03 /* MainMenu.xib */,
F8CEEB75142CEC6E00247B03 /* Supporting Files */,
);
@ -146,6 +147,7 @@
F8CEEB8C142CED6F00247B03 /* AFNetworking */ = {
isa = PBXGroup;
children = (
F8A27A3B142CF75A00F5E0D6 /* AFNetworking.h */,
F8A27A20142CF24700F5E0D6 /* AFHTTPRequestOperation.h */,
F8A27A21142CF24700F5E0D6 /* AFHTTPRequestOperation.m */,
F8A27A26142CF24700F5E0D6 /* AFJSONRequestOperation.h */,
@ -229,7 +231,7 @@
buildActionMask = 2147483647;
files = (
F8CEEB7B142CEC6E00247B03 /* main.m in Sources */,
F8CEEB82142CEC6E00247B03 /* AFNetworking_Mac_ExampleAppDelegate.m in Sources */,
F8CEEB82142CEC6E00247B03 /* AppDelegate.m in Sources */,
F8A27A2C142CF24700F5E0D6 /* AFHTTPClient.m in Sources */,
F8A27A2D142CF24700F5E0D6 /* AFHTTPRequestOperation.m in Sources */,
F8A27A2E142CF24700F5E0D6 /* AFImageCache.m in Sources */,

View file

@ -8,7 +8,7 @@
#import <Cocoa/Cocoa.h>
@interface AFNetworking_Mac_ExampleAppDelegate : NSObject <NSApplicationDelegate> {
@interface AppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *_window;
}

View file

@ -6,9 +6,9 @@
// Copyright 2011 Gowalla. All rights reserved.
//
#import "AFNetworking_Mac_ExampleAppDelegate.h"
#import "AppDelegate.h"
@implementation AFNetworking_Mac_ExampleAppDelegate
@implementation AppDelegate
@synthesize window = _window;

File diff suppressed because it is too large Load diff