 |
 |
dealing with NSPoint
|
 |
|
 |
|
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status:
Offline
|
|
two questions really. first, how can i make an NSPoint return to a nil-value? i have tried:
Code:
myNSPoint = nil; // also NULL, null, etc.
but that doesn't seem to work.
second, how do i encode an NSPoint?
Code:
[coder encodeObject: myNSPoint];
yields "error: incompatible type for argument 3 of indirect function call" during builds.
|
|
"do unto others as you would have them do unto you" begins with yrself.
"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
NSPoint isn't an object. To encode a point, use encodePoint:. The zero value for NSPoint is NSZeroPoint, which is a struct that looks like {0,0}.
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status:
Offline
|
|
Originally posted by Chuckit:
NSPoint isn't an object. To encode a point, use encodePoint:. The zero value for NSPoint is NSZeroPoint, which is a struct that looks like {0,0}.
thanks!
|
|
"do unto others as you would have them do unto you" begins with yrself.
"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |