• 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: isKindOfClass returns null instead of YES or NO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isKindOfClass returns null instead of YES or NO


  • Subject: Re: isKindOfClass returns null instead of YES or NO
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 21 May 2009 13:05:11 -0400
  • Organization: Rogue Research Inc.

On 5/21/09 12:44 PM, Kyle Sluder said:

>> And if you're wondering if the compiler could warn you that %@ and BOOL
>> do not match, the answer is unfortunately no.  -Wformat=2 can give such
>> warnings when using sprintf() and friends, but not NSString methods.
>> One of my pet peeves. :)
>
>Not so according to Matt Gallagher:
>http://cocoawithlove.com/2009/05/variable-argument-lists-in-cocoa.html

You have but to try for yourself:

----------
#import <Cocoa/Cocoa.h>

int main (int argc, char * const argv[])
{
	BOOL flag = NO;
	NSLog (@"%@", flag);
}
----------

$ gcc-4.2 -Wformat=2 /Users/sean/Desktop/test.m

It could be that the compiler is capable but Apple's headers are lacking
proper declarations.  But it makes little difference to us users exactly why.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

References: 
 >isKindOfClass returns null instead of YES or NO (From: Jeff Decker <email@hidden>)
 >Re: isKindOfClass returns null instead of YES or NO (From: Andy Lee <email@hidden>)
 >Re: isKindOfClass returns null instead of YES or NO (From: "Sean McBride" <email@hidden>)
 >Re: isKindOfClass returns null instead of YES or NO (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Tools in App Bundles
  • Next by Date: Re: Controlling some of CoreAnimation's more confusing automation
  • Previous by thread: Re: isKindOfClass returns null instead of YES or NO
  • Next by thread: Re: isKindOfClass returns null instead of YES or NO
  • Index(es):
    • Date
    • Thread