• 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: Equality Operator Syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Equality Operator Syntax (From: Ronnie O <email@hidden>)

  • Prev by Date: Re: How to support 'every' object in script interface
  • Next by Date: Notification when document successfully saved
  • Previous by thread: Re: Equality Operator Syntax
  • Next by thread: Binding questions
  • Index(es):
    • Date
    • Thread