• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: float[4][3] into NSValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >float[4][3] into NSValue (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: KVO problems popping up in Leopard - KVO notifying a released object I never owned
  • Next by Date: Re: float[4][3] into NSValue
  • Previous by thread: float[4][3] into NSValue
  • Next by thread: Re: float[4][3] into NSValue
  • Index(es):
    • Date
    • Thread