1 Reply Latest reply: Jul 30, 2008 7:37 PM by orangekay
whafrog Level 1 Level 1 (10 points)
This seems like a real newbie question, but I have to get a monthOfYear value from NSCalendarDate (which is NSInteger) and use that to create an NSIndexPath (which wants an NSUInteger). How do I do this? Thanks!

iMac 20in. (Intel 2GHz), Mac OS X (10.5.3)
  • orangekay Level 5 Level 5 (4,085 points)
    They're just typedefs

    typedef long NSInteger;
    typedef unsigned long NSUInteger;
    typedef int NSInteger;
    typedef unsigned int NSUInteger;

    If you get a complaint from the compiler then just typecast it. There's nothing to convert.