• 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: Saving a NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving a NSMutableArray


  • Subject: Re: Saving a NSMutableArray
  • From: Lorenzo <email@hidden>
  • Date: Fri, 16 May 2003 23:35:52 +0200

Hi,
thank you for your reply.
I remember in some cases, years ago I used to save only a part of the file,
locking for the exact point where saving the differences. May be I don't
remember very well.

As far as writing any time the whole file, I don't think it's a proper
behaviour for a database. Think about any time the user updates a record, I
have to quickly save the changes, so... a lot of disk usage.
Mmm...

Maybe something that sounds like FileWrapper can help me?


Best Regards
--
Lorenzo
email: email@hidden

> From: j o a r <email@hidden>
> Date: Fri, 16 May 2003 20:33:18 +0200
> To: Lorenzo <email@hidden>
> Cc: <email@hidden>
> Subject: Re: Saving a NSMutableArray
>
> You need to save the whole thing again.
> Is it a problem, have you benchmarked it?
>
> j o a r
>
> On Friday, May 16, 2003, at 20:09 Europe/Stockholm, Lorenzo wrote:
>
>> let's suppose I have a very large database in an NSMutableArray I did
>> read
>> early from the disk.
>> Each record is a NSMutableDictionary with 2 keys, Name and Surname.
>> If I change one only key, e.g. the Name, of one only record,
>> should then I save the whole NSMutableArray with
>>
>> - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Saving a NSMutableArray
      • From: Georg Tuparev <email@hidden>
    • Re: Saving a NSMutableArray
      • From: j o a r <email@hidden>
References: 
 >Re: Saving a NSMutableArray (From: j o a r <email@hidden>)

  • Prev by Date: Slow NSTableView
  • Next by Date: Re: Saving a NSMutableArray
  • Previous by thread: Re: Saving a NSMutableArray
  • Next by thread: Re: Saving a NSMutableArray
  • Index(es):
    • Date
    • Thread