• 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
BOOL problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOOL problem


  • Subject: BOOL problem
  • From: Daniel Child <email@hidden>
  • Date: Mon, 20 Aug 2007 18:16:25 -0400

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


  • Follow-Ups:
    • Re: BOOL problem
      • From: "I. Savant" <email@hidden>
    • Re: BOOL problem
      • From: Jeff Johnson <email@hidden>
    • Re: BOOL problem
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Cannot Bind Pop Up Button to Array of Dictionaries
  • Next by Date: Re: Cannot Bind Pop Up Button to Array of Dictionaries
  • Previous by thread: Re: Cannot Bind Pop Up Button to Array of Dictionaries
  • Next by thread: Re: BOOL problem
  • Index(es):
    • Date
    • Thread