• 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: NSMutableArray to NSArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray to NSArray?


  • Subject: Re: NSMutableArray to NSArray?
  • From: Dani <email@hidden>
  • Date: Thu, 4 Oct 2007 19:31:35 +0200

Thanks for your response. I will take a look.

El 04/10/2007, a las 19:28, Benjamin Stiglitz escribió:

Is there a way to create a NSArray from a NSMutableArray? I tried with methods -writeToFile and -initWithContentsOfFile but I've got a problem with the encoding of the contents. Better If I explain what I'm trying to do. I have a NSMutableArray full of NSStrings objects, in my case of paths to files, and I want to put all these content in a NSTableView, but the problem is, that NSTableView only accepts NSArray for dataSource. What can I do to solve my problem?

You need to use either an NSArrayController or a custom table view data source. Check out the NSArrayController documentation.


-Ben

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSMutableArray to NSArray? (From: Dani <email@hidden>)

  • Prev by Date: Re: NSMutableArray to NSArray?
  • Next by Date: Re: NSMutableArray to NSArray?
  • Previous by thread: Re: NSMutableArray to NSArray?
  • Next by thread: Re: NSMutableArray to NSArray?
  • Index(es):
    • Date
    • Thread