Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > dealing with NSPoint

dealing with NSPoint
Thread Tools
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
Mar 16, 2005, 02:36 PM
 
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
Reply With Quote
Mar 16, 2005, 02:44 PM
 
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'."
     
adamk  (op)
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
Mar 16, 2005, 02:49 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2