Re: Equality Operator Syntax
Re: Equality Operator Syntax
- Subject: Re: Equality Operator Syntax
- From: Ian was here <email@hidden>
- Date: Sun, 26 Jun 2005 10:23:58 -0700 (PDT)
BOOL isOnDropTypeProposal =
childIndex==NSOutlineViewDropOnItemIndex;
It would seem that if childIndex is equal to
NSOutlineViewDropOnItemIndex, then
isOnDropTypeProposal evaluates to YES, otherwise NO.
There are all kinds of strange and wonderful ways of
setting boolean values in the C languages.
--- Ronnie O <email@hidden> wrote:
> This may be elementary syntax, but I can't seem to
> locate an example
> or explanation on what exactly is go on with this
> statement:
>
> BOOL isOnDropTypeProposal =
> childIndex==NSOutlineViewDropOnItemIndex;
>
> A little background on what is going on:
> - isOnDropTypeProposal is declared here
> - childIndex is sent in as a method argument of type
> int
> - NSOutlineViewDropOnItemIndex defaults to -1
>
> This is from the DragNDropOutlineView example. What
> is the order of
> evaluations and assignments that is taking place
> here?
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Cocoa-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
__________________________________
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden