Re: MacOS X 10.4 and 10.5
Re: MacOS X 10.4 and 10.5
- Subject: Re: MacOS X 10.4 and 10.5
- From: Vijay Malhan <email@hidden>
- Date: Mon, 2 Mar 2009 10:19:45 +0530
Even if you compile your application with Mac OS X 10.4 project settings.
The app when run on Mac OS X 10.5 will have full access to 10.5 SDK.But
reverse is obviously not true.
For example: If a method of a class is only available in Mac OS X 10.5 then
you can write your code such that the method is called only in 10.5 and not
in 10.4
if([obj respondsToSelector:@selector(someNewMethodIn10.5:)]){
[obj performSelector: @selector(someNewMethodIn10.5:) withObject:
userInfo];
}else{
// Write code for 10.4
}
The above thing is tried and tested.
For using selected classes the pre-processor #ifdef directives should
work(app not linking to specific "new" framework should be a problem
though). What I feel is that if the framework you are using is there in 10.4
and the app is linked to it... and then in 10.5 some new classes are added
to it then the app can use those new classes selectively using #ifdef
approach (keeping it backward compatible to 10.4). If the framework is
altogether new in 10.5 sdk and app does not know about it "when linked" then
it should be a problem.
Thanks,
Vijay
On Mon, Mar 2, 2009 at 9:55 AM, Vijay Kanse <email@hidden>wrote:
> I am also confused with that.
> Using project settings that above mentioned can we use MAC OS 10.5 SDK
> under
> 10.4 ?
> and if so, i am using CalCalendarStore framework that is available from
> 10.5. will that application work in MAC OS 10.4 ?
> if i compile, with Active SDK 10.4 it will give me some errors.
> same issue with property and synthesize.
>
> So, will this run successfully under MAC OS 10.4 and 10.5 ?
>
>
> Thanks.
>
>
>
> On Sun, Mar 1, 2009 at 1:04 AM, xEsk PiV <email@hidden>
> wrote:
>
> > @ Paul Sanders
> >
> > Thanks.
> >
> > @ Shawn Erickson
> >
> > > (small nit on terminology... you don't run under an SDK)
> > >
> > > Yes* but only if you specify the (min) target OS as 10.4 and SDK as
> 10.5.
> > >
> > > Review...
> > > <
> >
> http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/HowItWorks/chapter_2_section_3.html
> > >
> >
> > Oh, ok. I'll take a look to docmentation (which is sooooooo extensive...)
> >
> > > Humm cannot find the doc I recall but the following outlines a way to
> > do what I think you are asking (note NSClassFromString())...
> >
> > > <
> >
> http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/Tasks/WebKitAvail.html#//apple_ref/doc/uid/20001846-171578
> > >
> >
> > Don't worry. I'll also read this.
> >
> > Thank you!
> > _______________________________________________
> >
> > Cocoa-dev mailing list (email@hidden)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> >
> > This email sent to email@hidden
> >
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden