Skip navigation.
 
mlAdding Structure in NSArray
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.

Related mailsAuthorDate
mlAdding Structure in NSArray omer riaz Aug 15, 15:10
mlRe: Adding Structure in NSArray Chris Hanson Aug 18, 08:06
mlRe: Adding Structure in NSArray Chris Suter Aug 18, 08:15
mlRe: Adding Structure in NSArray Chris Suter Aug 18, 08:20
mlRe: Adding Structure in NSArray Fredrik Olsson Aug 18, 09:30