If I understand correctly, this is the method in question:
+ (NSString *)mimeTypeForFileAtPath:(NSString *)path
{
if (![[NSFileManager defaultManager] fileExistsAtPath:path]) {
return nil;
} else if ([ASIHTTPRequest isiPhoneOS2]) {
return @"application/octet-stream";
}
// Borrowed from
http://stackoverflow.com/questions/2439020/wheres-the-iphone-mime-type-database
CFStringRef UTI =
UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,
(CFStringRef)[path pathExtension], NULL);
CFStringRef MIMEType = UTTypeCopyPreferredTagWithClass (UTI,
kUTTagClassMIMEType);
CFRelease(UTI);
if (!MIMEType) {
return @"application/octet-stream";
}
return [(NSString *)MIMEType autorelease];
}
Looks like it already takes into consideration OS 2.x and doesn't call
the relevant functions. To get the app to link, you can follow the
advice here:
http://stackoverflow.com/questions/986589/how-do-you-optionally-use-iphone-os-3-0-features-in-a-2-0-compatible-app/1025580#1025580
—Andrew
On Tue, Apr 27, 2010 at 12:28 PM, Jesse Naugher <
nau...@gmail.com> wrote:
>
> basically I think the question is...what version made
> mobilecoreservices.framework required? This way i can just use a
> version before that and avoid the issue?
>
> On Apr 27, 10:11 am, Jesse Naugher <
naug...@gmail.com> wrote:
> > I see that it is required to add this framwork to get ASIHTTPRequest
> > to work, however the site says it is compatible with iPhone OS 2.2.1+.
> > How would one with 2.2.1 use it as the mobilecoreservices.framework is
> > not available in 2.2.1?
> >
> > I saw a post describing someone using a work around using old mime
> > file type file or something, but how is this done or is there another
> > way?
> >
> > Thanks for your help.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "ASIHTTPRequest" group.
> > To post to this group, send email to
asihttp...@googlegroups.com.
> > To unsubscribe from this group, send email to
asihttpreques...@googlegroups.com.
> > For more options, visit this group athttp://
groups.google.com/group/asihttprequest?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "ASIHTTPRequest" group.
> To post to this group, send email to
asihttp...@googlegroups.com.
> To unsubscribe from this group, send email to
asihttpreques...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/asihttprequest?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "ASIHTTPRequest" group.
To post to this group, send email to
asihttp...@googlegroups.com.
To unsubscribe from this group, send email to
asihttpreques...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/asihttprequest?hl=en.