• 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: mark <email@hidden>
  • Date: Wed, 12 Jan 2005 09:42:57 -0800

Arrgh!  That WAS my mistake--I didn't look at what the "language" was--I was
just looking a the API.  I didn't realize that I had novigated into JavaŠ

Thanks again!

mark

> From: Shawn Erickson <email@hidden>
> Date: Wed, 12 Jan 2005 09:11:51 -0800
> To: mark <email@hidden>
> Cc: Cocoa-Dev Dev <email@hidden>
> Subject: Re: Obj-C NSRect methods help
>
>
> 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

References: 
 >Re: Obj-C NSRect methods help (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Example needed to show how to overlay images upon a single view
  • Next by Date: Re: Example needed to show how to overlay images upon a single view
  • Previous by thread: Re: Obj-C NSRect methods help
  • Next by thread: Re: Obj-C NSRect methods help
  • Index(es):
    • Date
    • Thread