NSRect, NSPoint, and NSSize are are regular C structures, not Objective-C classes. The structures and the functions to manipulate them are declared in <Foundation/NSGeometry.h>.
So, you really want:
NSWidth([self bounds])
NSMaxX([self bounds])
I guess these constructs were considered too simple to bother with making them classes -- they really are just data storage, after all, and it's probably easier to manipulate them as structures. Java doesn't have structures, so they're implemented as real classes there, but not in ObjC. NSRange (in ObjC) is also a C structure if you come across that, defined in <Foundation/NSRange.h>.
[This message has been edited by lindberg (edited 03-19-2001).]