Local News: Indian River Shor... 

 | 

Sign Up

 | 

Sign In

Advertisment

Simple If Statement Problem

Posted in the Indian River Shores 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.

Install the Topix Community Toolbar

Never miss another reply to your comments, no matter where you are on the web.

Cars [ See all ]

Indian River Shores Jobs

Mortgages [ See current mortgage rates ]
Indian River Shores Dating

more search filters

less search filters

Indian River Shores People Search

Addresses and phone numbers for FREE

Indian River Shores News, Events & Info

Click for news, events and info in Indian River Shores

Daily Horoscope for December 29

Scorpio

Your thoughts turn to the past today, putting you in a nostalgic mood. You're awash with sentimental tears as you dwell on days gone by or gaze at photos of people you'll never see again. However, try not to let this mood of reminiscence turn into a tendency to feel sorry for yourself and therefore to demand special treatment from others.

Get your Horoscope »