FROM : Hank Heijink
DATE : Tue Nov 20 20:37:08 2007
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_removed>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/hank.list
> %40runbox.com
>
> This email sent to hank.<email_removed>
>
Hank Heijink
hank.<email_removed>
DATE : Tue Nov 20 20:37:08 2007
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_removed>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/hank.list
> %40runbox.com
>
> This email sent to hank.<email_removed>
>
Hank Heijink
hank.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Nov 20, 20:16 | |
| Hank Heijink | Nov 20, 20:37 | |
| Paul Sargent | Nov 20, 20:37 | |
| Allen Smith | Nov 20, 20:57 | |
| Paul Sargent | Nov 20, 20:59 | |
| Lorenzo | Nov 20, 21:14 | |
| Nick Zitzmann | Nov 20, 21:32 | |
| David Spooner | Nov 20, 21:50 | |
| Ricky Sharp | Nov 20, 22:42 | |
| David Spooner | Nov 21, 01:04 |






Cocoa mail archive

