• 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: Cocoa-dev Digest, Vol 7, Issue 890
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 7, Issue 890


  • Subject: Re: Cocoa-dev Digest, Vol 7, Issue 890
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 8 Sep 2010 12:58:03 -0700

On Wed, Sep 8, 2010 at 11:50 AM, Quincey Morris
<email@hidden> wrote:
> So, the problem is not your 'isLessThanZero' method, but the calling code, which is treating the returned value as an int (or something). Presumably the calling code was compiled with an incompatible declaration of your method, or of the BOOL type.

Ooh, excellent point. Maybe you're missing an #import? Remember that
methods without prototypes are assumed to return id, which is a
pointer, and thus 4- or 8-bytes wide depending on platform, whereas
BOOL is a char and therefore only one byte wide.

Make sure you're building with "Treat Warnings As Errors" on.

--Kyle Sluder
_______________________________________________

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: 
 >Re: Cocoa-dev Digest, Vol 7, Issue 890 (From: Chris Tracewell <email@hidden>)
 >Re: Cocoa-dev Digest, Vol 7, Issue 890 (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSNumber compare: Giving Unexpected Results
  • Next by Date: Re: NSTableView/NSOutlineView variable row height code has detected re-entry.
  • Previous by thread: Re: Cocoa-dev Digest, Vol 7, Issue 890
  • Next by thread: NSTableView/NSOutlineView variable row height code has detected re-entry.
  • Index(es):
    • Date
    • Thread