• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Obj-C NSRect methods help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Obj-C NSRect methods help
      • From: mark <email@hidden>
References: 
 >Re: Obj-C NSRect methods help (From: mark <email@hidden>)

  • Prev by Date: Re: Obj-C NSRect methods help
  • Next by Date: Re: Obj-C NSRect methods help
  • Previous by thread: Re: Obj-C NSRect methods help
  • Next by thread: Re: Obj-C NSRect methods help
  • Index(es):
    • Date
    • Thread