iPhone – Different Objective-C type conditions expressed the lack of actors?

I received this error:

The conditional expression of different Objective-C types’struct NSNull *’and’struct NSNMutableArray *’lack a coercion

On this line of code:

((tempArray!= nil)? tempArray: [NSNull null])

Why?

The two legs of the conditional expression should have the same data type. Convert the first one to id to avoid warnings.

Why do you need NSNull instead of nil?

I received this error:

The condition expresses different Objective-C types’struct NSNull *’and’struct NSNMutableArray *’ Missing a cast

On this line of code:

((tempArray!= nil)? tempArray: [NSNull null])

Why?

The two legs of the conditional expression should have the same data type. Convert the first one to id to avoid warnings.

Why do you need NSNull instead of nil?

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1048 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.