• 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: "Daniel T. Staal" <email@hidden>
  • Date: Thu, 4 Oct 2007 13:30:17 -0400 (EDT)
  • Importance: Normal

On Thu, October 4, 2007 1:22 pm, Dani said:
> 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?

NSMutableArray can be used as an NSArray whenever the latter is called
for: That's one of the results of it being an NSArray subclass.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

_______________________________________________

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: Distinguish between Directory and File
  • Next by Date: Re: NSMutableArray to NSArray?
  • Previous by thread: NSMutableArray to NSArray?
  • Next by thread: Re: NSMutableArray to NSArray?
  • Index(es):
    • Date
    • Thread