I can't say I've used a lot of typedefs, but in Cocoa Touch, it's is a little confusing. Take for instance CoreGraphics' own definition for CGPoint:
struct CGPoint {
CGFloat x;
CGFloat y;
};
typedef struct CGPoint CGPoint;
If I were to define this from what I've seen in books, go:
typedef struct {
CGFloat x;
CgFloat y;
} CGPoint;
and it seems to be working perfectly fine. So is there a difference in what these are doing, or are these doing the exact same thing?