• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BOOL problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: BOOL problem
  • Next by Date: Re: Binding NSMenuItem 1 to 1
  • Previous by thread: Re: BOOL problem
  • Next by thread: Re: BOOL problem
  • Index(es):
    • Date
    • Thread