Obj-C NSRect methods help
Obj-C NSRect methods help
- Subject: Obj-C NSRect methods help
- From: Mark Dawson <email@hidden>
- Date: Tue, 11 Jan 2005 19:18:21 -0800
If I want to compare two NSRect pieces, I thought I could do the
following (modification of the Sketch example program):
if (![_bounds.origin isEqualToPoint:_shadowBounds.origin])
where
NSRect _bounds;
NSRect _shadowBounds;
I get the following errors:
DocumentModel.subproj/SKTGraphic.m:74: warning: invalid receiver type
`untagged struct '
DocumentModel.subproj/SKTGraphic.m:74: warning: cannot find method
`-isEqualToPoint:'; return type `id' assumed
DocumentModel.subproj/SKTGraphic.m:74: error: cannot convert to a
pointer type
I know NSRect is a struct; however, NSPoint is an object, so I should
be using the message format, right? I must be missing some subtle
pieceā¦
Thanks for any enlightenment!
Mark
_______________________________________________
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