Re: float[4][3] into NSValue
Re: float[4][3] into NSValue
- Subject: Re: float[4][3] into NSValue
- From: Hank Heijink <email@hidden>
- Date: Tue, 20 Nov 2007 14:37:08 -0500
I don't believe you can. Try NSData instead. You can store pretty much
everything in there, but watch out for endianness issues if you store
floats and/or structs. Check
http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/
Specifically the chapter on Encoding and Decoding C Data Types. It has
some more pointers on what your options are.
Good luck,
Hank
On Nov 20, 2007, at 2:16 PM, Lorenzo wrote:
Can I store a float[4][3] into an NSValue object?
Or can I store my own struct in an NSValue?
If yes, how to do that?
And how to get back the float[4][3] from the NSValue?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@runbox.com
This email sent to email@hidden
Hank Heijink
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden