Re: How to get warnings for missing methods in older SDKs
Re: How to get warnings for missing methods in older SDKs
- Subject: Re: How to get warnings for missing methods in older SDKs
- From: Alexander von Below <email@hidden>
- Date: Sun, 27 Mar 2011 14:12:51 +0200
Am 27.03.2011 um 13:21 schrieb Christiaan Hofman:
> I am not saying that it would not be nice to know whether you've used new API in an unsafe manner, but I see no way how the compiler can know about that, and therefore warn about it. I don't want to have loads of warnings about correct use of API.
Easy:
NS_CLASS_AVAILABLE(NA, 4_0)
@interface CLRegion : NSObject <NSCopying, NSCoding>
{
...
}
- (id)initCircularRegionWithCenter:(CLLocationCoordinate2D)center
radius:(CLLocationDistance)radius
identifier:(NSString *)identifier __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
etc.
The SDK has absolutely clear, machine readable hints about when something is available. It is completely beyond me why Xcode does not offer a compile run to show me where I am using something that is not available on my deployment OS
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden