Re: Adding Structure in NSArray
Re: Adding Structure in NSArray
- Subject: Re: Adding Structure in NSArray
- From: Chris Suter <email@hidden>
- Date: Fri, 18 Aug 2006 16:15:50 +1000
On 18/08/2006, at 4:06 PM, Chris Hanson wrote:
On Aug 15, 2006, at 6:10 AM, omer riaz wrote:
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
The Foundation collection classes only support storing objects, not
C structures or arbitrary pointers.
-- Chris
You could use CFCreate with an appropriate value for the callBacks
parameter. It's toll-free bridged with NSArray so once created you
can use use it like an NSArray.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden