Post

Replies

Boosts

Views

Activity

Reply to NSURLResponse object HTTP header values
Is the -valueForHTTPHeaderField: method not working for you? I tried that but Xcode didn't allow it, as NSURLSessionDownloadTask.response is a NSURLResponse object not a NSHTTPURLResponse object (which responds to -valueForHTTPHeaderField:) . However, I did cast the types and got it work work: NSDictionary *responseHeaders = ((NSHTTPURLResponse *)downloadTask.response).allHeaderFields; So that does work, thank you! But the file being downloaded is a .gz file. Is there a way in iOS to uncompress it programmatically?
Topic: App & System Services SubTopic: General Tags:
Oct ’22
Reply to iOS app data files preinstalled into sandbox?
Okay, I found the files in: /private/var/containers/Bundle/Application/26FA4220-0E34-43EF-AC23-0F46CABF906E/.app/dataset1.dat And I understand now that such "project" files don't go into the ../Documents folder. Q: Can my app modify the file contents in the main bundle? Or would it have to copy the file from the main bundle into the sandbox and then modify/update it?
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22
Reply to NSURLResponse object HTTP header values
Is the -valueForHTTPHeaderField: method not working for you? I tried that but Xcode didn't allow it, as NSURLSessionDownloadTask.response is a NSURLResponse object not a NSHTTPURLResponse object (which responds to -valueForHTTPHeaderField:) . However, I did cast the types and got it work work: NSDictionary *responseHeaders = ((NSHTTPURLResponse *)downloadTask.response).allHeaderFields; So that does work, thank you! But the file being downloaded is a .gz file. Is there a way in iOS to uncompress it programmatically?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to iOS app data files preinstalled into sandbox?
Okay, I found the files in: /private/var/containers/Bundle/Application/26FA4220-0E34-43EF-AC23-0F46CABF906E/.app/dataset1.dat And I understand now that such "project" files don't go into the ../Documents folder. Q: Can my app modify the file contents in the main bundle? Or would it have to copy the file from the main bundle into the sandbox and then modify/update it?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’22