• 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
Re: NSCAssert in OS X and iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCAssert in OS X and iOS


  • Subject: Re: NSCAssert in OS X and iOS
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 18 Apr 2013 09:31:59 -0700

On Apr 18, 2013, at 12:14 AM, Rick Mann <email@hidden> wrote:

> I had an NSAssert with varargs in a C routing in a .mm file. It compiled fine in a Mac OS X app, but the same code in an iOS app bitches about too many arguments. Is that right?

Double-check that the warning isn't in fact correct. Clang has recently (since Xcode 4.5?) gotten better at sanity-checking printf-style parameter lists, which I find to be a real life-saver. It's possible that your iOS target has this warning enabled but the OS X target doesn't.

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: NSCAssert in OS X and iOS
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: NSCAssert in OS X and iOS
      • From: Rick Mann <email@hidden>
References: 
 >NSCAssert in OS X and iOS (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: ANN: new open-source window manager for OS X
  • Next by Date: Re: NSScrollView in NSTabView autolayout problem
  • Previous by thread: NSCAssert in OS X and iOS
  • Next by thread: Re: NSCAssert in OS X and iOS
  • Index(es):
    • Date
    • Thread