Re: NSMutableArray to NSArray?
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