Re: NSPoint Documentation
Re: NSPoint Documentation
- Subject: Re: NSPoint Documentation
- From: <email@hidden>
- Date: Fri, 22 Mar 2002 15:10:04 -0600
Dan,
>
[...] I have searched the docs and headers on my machine and
>
Apple's site and only find a doc for the java implementation
>
of NSPoint. I am most interested in the method "distanceToPoint"
>
I figured that that method would work in Objective C too so I tried:
>
>
afloatvalue = [NSpoint1 distanceToPoint:NSpoint2];
>
>
And it couldn't find this method. Is this implemented in objective C?
No. In Objective-C, NSPoint is a simple record, not a class:
typedef struct _NSPoint {
float x;
float y;
} NSPoint;
There are some convenience functions that deal with NSPoints, but as far
as I know not for the distance that you are looking for. Look at
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/Functions/FoundationFunctions.html
Martin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.