Re: BOOL problem
Re: BOOL problem
- Subject: Re: BOOL problem
- From: Jeff Johnson <email@hidden>
- Date: Mon, 20 Aug 2007 18:16:19 -0500
Daniel,
It's possible that you're using your isCandidateValid method without
declaring it first. Is the method declared in your class's header
file, and is that header file imported in every implementation file
where that method is used?
-Jeff
On Aug 20, 2007, at 5:16 PM, Daniel Child wrote:
Hi,
There is a surprising problem trying to use booleans in Cocoa.
I defined an instance variable as:
BOOL isSyllable;
Then I have basic methods like
- (BOOL) isCandidateValid
{
return isSyllable;
}
But when I build, I get this message:
warning: return makes integer from pointer without a cast
What's going on? I want to be able to set this ivar to YES or NO
and return that value on a regular basis. Am I missing something
basic here?
Thanks.
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >BOOL problem (From: Daniel Child <email@hidden>) |