Re: Xcode cross-developing to 10.1 and NSProgressIndicator (Modified by Justin Lundy)
Re: Xcode cross-developing to 10.1 and NSProgressIndicator (Modified by Justin Lundy)
- Subject: Re: Xcode cross-developing to 10.1 and NSProgressIndicator (Modified by Justin Lundy)
- From: Chris Espinosa <email@hidden>
- Date: Wed, 19 Nov 2003 12:02:09 -0800
On Nov 18, 2003, at 6:23 PM, Justin Lundy wrote:
>
> I got an app that I'm developing in Xcode, this app uses
> NSProgressIndicators, specifically calling the setStyle method. I set
> the SDK to Mac OS X 10.1.5 and cleaned and compiled, and no problems.
> I restarted in 10.1.5 and tried my app and it crashed with a console
> error saying that NSProgressIndicator doesn't recognize setStyle
> selector. But it compiled fine, so WTF? I go to the documentation
> page for NSProgressIndicator, and low and behold, setStyle, along with
> several other methods, are 10.2+... Here are my questions:
> 1) Why didn't Xcode catch this?
Because it would have done exactly the same thing if you built it on
10.2.5. SDK support really only deals with runtime library binding,
and not with the dynamic message sending of Objective-C.
> 2) Should I bother cross-developing to 10.1.5 if I'm going to have to
> test everything anyway? (a little snide)
You shouldn't bother developing anything you're not going to test.
> 3) How can I work around this to get the backwards compatibility I'm
> looking for? (Check OS version?)
Many different methods are given at
http://cocoadevcentral.com/articles/000067.php
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.