FROM : omer riaz
DATE : Tue Aug 15 15:10:09 2006
Hi
I have a small problem. I wanted convert dynamic linklist, which is
composed of struct, into NSArray. Is there any method, I can take
this struct as a unit of NSArray. I have tried the following code but
it is not working. It gives me error at id songs
typedef struct track_item
{
// Some thing in here
}track_item_t;
track_item_t* head;
id songs = [[NSMutableArray alloc] initWithObjects:(track_item_t*)
head];
// some code to fill have an other list element.
after this try to fill this array using following code
[songs addObject:(track_item_t*) head];
Regards
Omer Riaz
--
This message has been scanned for viruses and
dangerous content by Streaming Networks, and is
believed to be clean.
DATE : Tue Aug 15 15:10:09 2006
Hi
I have a small problem. I wanted convert dynamic linklist, which is
composed of struct, into NSArray. Is there any method, I can take
this struct as a unit of NSArray. I have tried the following code but
it is not working. It gives me error at id songs
typedef struct track_item
{
// Some thing in here
}track_item_t;
track_item_t* head;
id songs = [[NSMutableArray alloc] initWithObjects:(track_item_t*)
head];
// some code to fill have an other list element.
after this try to fill this array using following code
[songs addObject:(track_item_t*) head];
Regards
Omer Riaz
--
This message has been scanned for viruses and
dangerous content by Streaming Networks, and is
believed to be clean.
| Related mails | Author | Date |
|---|---|---|
| omer riaz | Aug 15, 15:10 | |
| Chris Hanson | Aug 18, 08:06 | |
| Chris Suter | Aug 18, 08:15 | |
| Chris Suter | Aug 18, 08:20 | |
| Fredrik Olsson | Aug 18, 09:30 |






Cocoa mail archive

