Re: NSPoints in an NSMutableArray
Re: NSPoints in an NSMutableArray
- Subject: Re: NSPoints in an NSMutableArray
- From: Vince DeMarco <email@hidden>
- Date: Thu, 6 Feb 2003 11:05:16 -0800
On Thursday, February 6, 2003, at 10:14 AM, Arthur VIGAN wrote:
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?
Nope use this
@interface NSValue (NSValueGeometryExtensions)
+ (NSValue *)valueWithPoint:(NSPoint)point;
+ (NSValue *)valueWithSize:(NSSize)size;
+ (NSValue *)valueWithRect:(NSRect)rect;
- (NSPoint)pointValue;
- (NSSize)sizeValue;
- (NSRect)rectValue;
@end
_______________________________________________
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.