• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding Structure in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Adding Structure in NSArray
      • From: Chris Suter <email@hidden>
References: 
 >Adding Structure in NSArray (From: omer riaz <email@hidden>)
 >Re: Adding Structure in NSArray (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Adding Structure in NSArray
  • Next by Date: Re: Adding Structure in NSArray
  • Previous by thread: Re: Adding Structure in NSArray
  • Next by thread: Re: Adding Structure in NSArray
  • Index(es):
    • Date
    • Thread