Re: Cocoa-dev Digest, Vol 7, Issue 890
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