• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Not all deprecation warnings seen in Xcode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not all deprecation warnings seen in Xcode 3.2


  • Subject: Not all deprecation warnings seen in Xcode 3.2
  • From: Ricky Sharp <email@hidden>
  • Date: Sat, 29 Aug 2009 07:38:54 -0500


I did a clean install of the Developer tools (Xcode 3.2) on my Snow Leopard GM install yesterday.


Opened up an iPhone OS project, set "Base SDK" to "iPhone Device 3.0" and set "iPhone OS Deployment Target" to "iPhone OS 3.0". All targets/ configs have "Warn About Deprecated Functions" enabled.

After a clean build, I'm not getting all the proper deprecation warnings.

When Active SDK is set to "Simulator - 3.0", I get one hit on:

'initWithFrame:reuseIdentifier:' is deprecated...

Yet my project has three calls to that (one call each for three separate .m files). All files are self-contained in the project (i.e. no external libs, frameworks, etc.)

When Active SDK is set to "Device - 3.0", I get _no_ warnings at all.


This is going to be extremely problematic when wanting to rid projects of using deprecated APIs. Anyone else seeing this?


Other details:

- Project format is "Xcode 3.2-compatible"
- I rebuilt the code sense index - no change
- I fixed the warning reported when active SDK was "simulator" (thinking that maybe it was just reporting the first usage of the deprecated API). No luck; now reports no warnings; still cannot find other two.


The single warning that was found was in a UITableViewCell subclass inside its designated initializer:

- (id)initWithFoo:(...
{
    if ((self = [super initWithFrame:reuseIdentfier:...
}

The warnings that were _not_ found were places where I create instances of UITableViewCell:

theCell = [[[UITableViewCell alloc]
    initWithFrame:theFrame
    reuseIdentifier:IISettingsTableReuseCellID] autorelease];


___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com



_______________________________________________
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


  • Follow-Ups:
    • Re: Not all deprecation warnings seen in Xcode 3.2
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Code coverage with gcov under SnowLeopard/Xcode 3.2
  • Next by Date: Re: Not all deprecation warnings seen in Xcode 3.2
  • Previous by thread: Re: Code coverage with gcov under SnowLeopard/Xcode 3.2
  • Next by thread: Re: Not all deprecation warnings seen in Xcode 3.2
  • Index(es):
    • Date
    • Thread