does anyone know why
-
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.
-
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
Hmm... I would think sexuality would be better represented by a
double
whose value ranges between +1.0, exclusively heterosexual, and -1.0, exclusively homosexual (or vice versa).Software Zen:
delete this;
Fold With Us![^] -
As well as
iDon'tKnow
?Visit http://www.notreadytogiveup.com/[^] and do something special today.
I believe the mnemonic is
iDunno
, or possiblyiGuess
.Software Zen:
delete this;
Fold With Us![^] -
Hmm... I would think sexuality would be better represented by a
double
whose value ranges between +1.0, exclusively heterosexual, and -1.0, exclusively homosexual (or vice versa).Software Zen:
delete this;
Fold With Us![^]Gary R. Wheeler wrote:
Hmm... I would think sexuality would be better represented by a double whose value ranges between +1.0, exclusively heterosexual, and -1.0, exclusively homosexual (or vice versa).
Funny you mention that. I was talking with someone who says that psychologists believe that it's rare that people are on one extreme or the other. I guess the theory is that the majority of people fall between -1 and 0 or 0 and 1, and some cross over 0. I don't know. I think most of psychology is BS, but I guess like anything, it has its uses, up to a point. Marc
-
Are
iYes
andiNo
supported? When we are forced to use those values I think we will have a problem.lol :-D
Take a look at my corner of the net at Code Research Center