FROM : Nick Zitzmann
DATE : Wed May 14 19:47:32 2008
On May 14, 2008, at 11:19 AM, Davide Scheriani wrote:
> okkei,good,this is working,but I wanted to use NSArray instead a
> simple C-style array.
> In many case I have NSArray it hold NSValue for each NSRect.
You could write a category that does this. I posted one to the list a
while back that does something similar with NSArrays of NSStrings. You
should be easily able to modify it to suit your needs. If you search
for "cArrayUsingEncoding" you might find it. The only change you need
to make is the "NSMutableData dataWithBytesNoCopy" must be changed to
"NSData dataWithBytesNoCopy" instead.
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Wed May 14 19:47:32 2008
On May 14, 2008, at 11:19 AM, Davide Scheriani wrote:
> okkei,good,this is working,but I wanted to use NSArray instead a
> simple C-style array.
> In many case I have NSArray it hold NSValue for each NSRect.
You could write a category that does this. I posted one to the list a
while back that does something similar with NSArrays of NSStrings. You
should be easily able to modify it to suit your needs. If you search
for "cArrayUsingEncoding" you might find it. The only change you need
to make is the "NSMutableData dataWithBytesNoCopy" must be changed to
"NSData dataWithBytesNoCopy" instead.
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Davide Scheriani | May 14, 14:42 | |
| Graham Cox | May 14, 14:52 | |
| Heinrich Giesen | May 14, 16:30 | |
| Davide Scheriani | May 14, 19:19 | |
| Nick Zitzmann | May 14, 19:47 | |
| Hamish Allan | May 14, 23:53 |






Cocoa mail archive

