Local News: Gifford, FL 

 | 

Sign Up

 | 

Sign In

Advertisment

Simple If Statement Problem

Posted in the Gifford Forum

Comments

Showing posts 1 - 2 of2
Max

Gräfelfing, Germany

|
Report Abuse
|
Judge it!
|
#1
Jul 3, 2009
 
Hi Everyone,

This code gives me this error: "Assignment from incompatible pointer type"

NSTabViewItem *tvi =[tv selectedTabViewItem];

if (tvi = "Other")
{
[x becomeFirstResponder];
}

Thanks for the help!

Max
Khandurian

Merritt Island, FL

|
Report Abuse
|
Judge it!
|
#2
Jul 4, 2009
 
You have no "then" statement or an "else" statement.

A program has to know what to do if it cannot match the "if" declaritive.

In other words, if tvi does not = other, it has to know what to do next.
Tell me when this thread is updated!
(registration is not required)
Showing posts 1 - 2 of2
Type in your comments to post to the forum
Name
(appears on your post)
Comments
Type the numbers you see in the image on the right:

Please note by clicking on "Post Comment" you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

Be the talk of the town

Get your topix hats, t-shirts & more!

Shop our store now!
Cars [ See all ]
Mortgages [ See current mortgage rates ]

Gifford People Search

Addresses and phone numbers for FREE

Gifford News, Events & Info

Click for news, events and info in Gifford

Daily Horoscope for December 26

Libra

Believe it or not, 2010 is almost round the corner. Start thinking about what you want to achieve next year. If that means admitting defeat in some projects that you tried and failed to launch this year, then so be it. Mercury turns today in your house of endings, so confusion from the past may be resolved in coming weeks. Onwards and upwards!

Get your Horoscope »