What does the quotation mark and the colon (?: ternary operator) mean in objective-c?

Posted by rdesign on Stack Overflow See other posts from Stack Overflow or by rdesign
Published on 2010-04-07T19:44:04Z Indexed on 2010/04/07 19:53 UTC
Read the original article Hit count: 297

Filed under:

Hey guys,

Google just don't want to give me some useful results.

What does this line of code mean?

label.frame = (inPseudoEditMode) ? kLabelIndentedRect : kLabelRect;

The ? and : confuses me.

Thanks a lot!

© Stack Overflow or respective owner

Related posts about ternary-operator