Women in Technology

Hear us Roar



Article:
  Animating Graphics in Cocoa, Part 1
Subject:   if (self)
Date:   2003-11-11 14:26:11
From:   anonymous2
could someone tell me what the conditional if (self) means. i understand what self means but i don't understand how you can have a condition with no relational operator. thats like saying if (x) and that doesn't make sense to me. thanks in advance.
Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • if (self)
    2003-11-12 08:09:23  anonymous2 [View]

    In Java: if(self) means exactly the same as if(self=true())

    I guess it's the same in Objective-C
    • if (self)
      2003-11-12 08:27:51  anonymous2 [View]

      thanks, that makes sense.
      • if (self)
        2009-04-22 15:39:50  Raydot [View]

        bool x = TRUE;

        if (x) {
        //same thing, different variable
        }