syntax question: question marks
syntax question: question marks
- Subject: syntax question: question marks
- From: <email@hidden>
- Date: Sun, 24 Aug 2003 23:13:49 -0400 (EDT)
So I am trying to get into unit testing with OCUnit and am following this
stepwise article:
http://www.stepwise.com/Articles/Technical/2002-06-17.01.html
In the article they use this below accessor method which I kind of like
since it allows for a nice way to handle if the value was set to nil. I
know how it works but am looking for someone to help explain the syntax.
What does a question mark mean? How should I read this?
Thanks.
- (NSString *) firstName
{
return firstName != nil ? firstName : @"";
}
~ Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.