Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2010-04-17 10:08:20 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9312f4570d26e1b06265931938572d1c0aaf2f6e
9312f457
1 parent
ee4db930
Use documents path to fix iphone queue example on device builds
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
Classes/ASIHTTPRequest.m
iPhone Sample/QueueViewController.m
Classes/ASIHTTPRequest.m
View file @
9312f45
...
...
@@ -23,7 +23,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-
2 2010-04-16
"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.2-
3 2010-04-17
"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
iPhone Sample/QueueViewController.m
View file @
9312f45
...
...
@@ -32,15 +32,15 @@
ASIHTTPRequest
*
request
;
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://allseeing-i.com/ASIHTTPRequest/tests/images/small-image.jpg"
]];
[
request
setDownloadDestinationPath
:[[
[[
NSBundle
mainBundle
]
bundlePath
]
stringByDeletingLastPathComponent
]
stringByAppendingPathComponent
:
@"1.png"
]];
[
request
setDownloadDestinationPath
:[[
NSHomeDirectory
()
stringByAppendingPathComponent
:
@"Documents"
]
stringByAppendingPathComponent
:
@"1.png"
]];
[
networkQueue
addOperation
:
request
];
request
=
[[[
ASIHTTPRequest
alloc
]
initWithURL
:[
NSURL
URLWithString
:
@"http://allseeing-i.com/ASIHTTPRequest/tests/images/medium-image.jpg"
]]
autorelease
];
[
request
setDownloadDestinationPath
:[[
[[
NSBundle
mainBundle
]
bundlePath
]
stringByDeletingLastPathComponent
]
stringByAppendingPathComponent
:
@"2.png"
]];
[
request
setDownloadDestinationPath
:[[
NSHomeDirectory
()
stringByAppendingPathComponent
:
@"Documents"
]
stringByAppendingPathComponent
:
@"2.png"
]];
[
networkQueue
addOperation
:
request
];
request
=
[[[
ASIHTTPRequest
alloc
]
initWithURL
:[
NSURL
URLWithString
:
@"http://allseeing-i.com/ASIHTTPRequest/tests/images/large-image.jpg"
]]
autorelease
];
[
request
setDownloadDestinationPath
:[[
[[
NSBundle
mainBundle
]
bundlePath
]
stringByDeletingLastPathComponent
]
stringByAppendingPathComponent
:
@"3.png"
]];
[
request
setDownloadDestinationPath
:[[
NSHomeDirectory
()
stringByAppendingPathComponent
:
@"Documents"
]
stringByAppendingPathComponent
:
@"3.png"
]];
[
networkQueue
addOperation
:
request
];
[
networkQueue
go
];
...
...
Please
register
or
login
to post a comment