does anyone know why
-
Where? When? WTF!
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
It's a California thing; truth and falsehood are so, well, relative to one's life situation, you know?
Software Zen:
delete this;
-
TRUE and FALSE works too. I think YES sometimes is more readable. But it is just a
#define
. -
How it's displayed doesn't matter.
-
they take fewer keystrokes than "TRUE" and "FALSE" !
-
Well, they get away with selling their stuff at hilarious prices, why not get away with this?
Where it seems there are only borderlines, Where others turn and sigh, You shall rise!
-
Because it's *specifically* used in ObjectiveC, which predates Apple's use of it, actually ask Brad Cox about it. YES and NO clearly indicate you're in ObjectiveC land, not C, so it's just a way to separate the two. Also given the style in ObjectiveC to have sentence like readability, it's not that surprising.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Oh
-
Because it's *specifically* used in ObjectiveC, which predates Apple's use of it, actually ask Brad Cox about it. YES and NO clearly indicate you're in ObjectiveC land, not C, so it's just a way to separate the two. Also given the style in ObjectiveC to have sentence like readability, it's not that surprising.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Oh
Jim Crafton wrote:
Also given the style in ObjectiveC to have sentence like readability, it's not that surprising.
I believe it should be updated to reflect the almost hippie like status of the Apple culture:
if (TotallyBogus(NSObjectDude))
{
throw BogusDude();
}
else
{
NSObjectDude.Cool = "Awesome";
}
:..::. Douglas H. Troy ::..
Bad Astronomy |VCF|wxWidgets|WTL -
Are
iYes
andiNo
supported? When we are forced to use those values I think we will have a problem. -
bulg wrote:
apple thinks they can get away with BOOL values of "YES" and "NO" ?
Because they can. :-D
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes -
Well... in my CCBool function (a CBool replacement for VBScript), they can. I acknowledge True, T, Yes, Y and X as true, everything else as false. Or, to quoute a famous RFC... in good protocol design, you should be liberal in what you accept and pedantic about what you send (or something like that).
-
what is wrong with "YES" and "NO"? or do you want "YES", "NO", "Cancel"? :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
Are
iYes
andiNo
supported? When we are forced to use those values I think we will have a problem. -
As well as
iDon'tKnow
?Visit http://www.notreadytogiveup.com/[^] and do something special today.
I think that would be
if ( YES == [iDont know] )
{
NSLog( @"I don't know" );
}¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Oh
-
It's a California thing; truth and falsehood are so, well, relative to one's life situation, you know?
Software Zen:
delete this;
Gary Wheeler wrote:
It's a California thing
In that case, I would have assumed that a bool would equate to "Gay" and "Straight". Marc
-
what is wrong with "YES" and "NO"? or do you want "YES", "NO", "Cancel"? :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
I think he wants YES NO CANCEL with an optional checkbox
Do Not Ask Me Again. :)Best wishes, Hans
-
Yes.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
-
I think he wants YES NO CANCEL with an optional checkbox
Do Not Ask Me Again. :)Best wishes, Hans
I want a bool to be true or false. Not Yes or No! It's Objective C not bloody Prolog!!! The only time I want something in my program to evaluate to a "Yes" is when someone buys the damn thing. >.< I also loathe the IB & IBOutlet crap. CS4 got it so much more right, that I wish I could use it for a suitable native language.