¡@

Home 

2014/10/15 ¤U¤È 10:11:21

iphone Programming Glossary: megapoint

What's the best way to put a c-struct in an NSArray?

http://stackoverflow.com/questions/4516991/whats-the-best-way-to-put-a-c-struct-in-an-nsarray

that allows for the minimal tidy handling of arrays ... So the original question... For example typedef struct _Megapoint float w x y z Megapoint So what's the normal best idiomatic way to store one's own structure like that in an NSArray and.. minimal tidy handling of arrays ... So the original question... For example typedef struct _Megapoint float w x y z Megapoint So what's the normal best idiomatic way to store one's own structure like that in an NSArray and how do you handle memory.. idiom for actually putting structs in an array thanks. BTW here's the NSData approach which is perhaps not best... Megapoint p NSArray a NSArray arrayWithObjects NSData dataWithBytes p length sizeof Megapoint NSData dataWithBytes p length sizeof..