Re: How do you receive a BOOL from a method returning BOOL
Re: How do you receive a BOOL from a method returning BOOL
- Subject: Re: How do you receive a BOOL from a method returning BOOL
- From: Steven Kramer <email@hidden>
- Date: Sat, 18 Dec 2004 19:57:28 +0100
Op 18-dec-04 om 19:22 heeft Evan Schoenberg het volgende geschreven:
One problem (of many potential problems) your code definitely has is
that you can't print a BOOL value using the %@ formatter, which is
reserved for ObjC objects. I'm amazed this line isn't crashing your
program. The NSLog you want is:
NSLog(@"res: %i", res);
The OP said it printed null, which means the bool value was NO which in
most respects is encoded similarly as a nil object. Printing YES would
have been an interesting experiment.
Regards,
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden