RE: NSPoints in an NSMutableArray
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.