Re: Obj-C NSRect methods help
Re: Obj-C NSRect methods help
- Subject: Re: Obj-C NSRect methods help
- From: Shawn Erickson <email@hidden>
- Date: Wed, 12 Jan 2005 09:11:51 -0800
On Jan 12, 2005, at 9:06 AM, mark wrote:
Thanks for the pointer--I mistook "Object" for NSObject,
However, how does one use "isEqualToPoint"? It only takes one
parameter,
and talks about comparing against a receiver. I thought that implied
that
NSPoint was an object, not just a struct.
I'll use "NSEqualPoints", but I wanted to understand the terminology…
I think you are getting Cocoa Java and Cocoa Objective-C mixed up. In
the case of Java NSRect and NSPoint are objects (have to be because of
Java language requirements) and hence have methods like isEqualToPoint.
On the Objective-C side of things NSRect and NSPoint are standard c
structs and are not objects so they cannot be messaged.
Make sure to note which language docs you are looking at.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden