• 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: NSPoints in an NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSPoints in an NSMutableArray


  • Subject: RE: NSPoints in an NSMutableArray
  • From: "Josh Ferguson" <email@hidden>
  • Date: Thu, 6 Feb 2003 13:06:34 -0600
  • Thread-topic: NSPoints in an NSMutableArray

Arthur,

This has been discussed on this list before. NSArrays are designed to hold Objects, and an NSPoint is not an Object (it's a struct). Perform a search on cocoa.mamasam.com for other options. You might think about just using a plain C Array.

Josh

-----Original Message-----
From: Arthur VIGAN [mailto:email@hidden]
Sent: Thursday, February 06, 2003 12:15 PM
To: Cocoa Development List
Subject: NSPoints in an NSMutableArray


Hi,

I have a little problem with the NSPoint class. I try to store NSPoint
objects in an NSMutableArray with:

[myArray addObject:NSMakePoint(x, y)];

but when I compile I got the following error for the previous line:

PlotView.m:83: incompatible type for argument 3 of indirect function
call


Is it a known problem?

Thanks in advance,

Arthur
_______________________________________________
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.
_______________________________________________
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.

  • Prev by Date: Re: NSPoints in an NSMutableArray
  • Next by Date: Re: drag and drop sample is incorrect: it does not use the pasteboard contents
  • Previous by thread: Re: NSPoints in an NSMutableArray
  • Next by thread: Re: NSPoints in an NSMutableArray
  • Index(es):
    • Date
    • Thread