FROM : Paul Sargent
DATE : Tue Nov 20 20:37:47 2007
On 20 Nov 2007, at 19:16, 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?
No, NSValues are for single values, not arrays of them.
If you're just looking for a way to encapsulate your array and pass it
around, try NSData.
DATE : Tue Nov 20 20:37:47 2007
On 20 Nov 2007, at 19:16, 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?
No, NSValues are for single values, not arrays of them.
If you're just looking for a way to encapsulate your array and pass it
around, try NSData.
| 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

