• 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
How to print BOOLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to print BOOLs


  • Subject: How to print BOOLs
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 08 Aug 2014 10:20:17 +0700

I want to print a BOOL (which is documented to be a signed char) without any compiler warnings:
NSLog(@"shouldAutorotate %hhd", self.shouldAutorotate);	//	inside some iOS program. Xocde 6 beta 5.

But I get "Format specifies type 'char' but the argument has type 'BOOL' (aka 'bool')".

No idea what this "bool" thing is. Also UIViewController's shouldAutorotate returns BOOL (at least the documentation says so).

Gerriet.





 _______________________________________________
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: How to print BOOLs
      • From: Lee Ann Rucker <email@hidden>
    • Re: How to print BOOLs
      • From: Jeremy Pereira <email@hidden>
    • Re: How to print BOOLs
      • From: Quincey Morris <email@hidden>
    • Re: How to print BOOLs
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Archiving Frameworks?
  • Next by Date: Re: How to print BOOLs
  • Previous by thread: Re: Archiving Frameworks?
  • Next by thread: Re: How to print BOOLs
  • Index(es):
    • Date
    • Thread