• 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: Opening persistent data store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening persistent data store


  • Subject: Re: Opening persistent data store
  • From: Charles Srstka <email@hidden>
  • Date: Sun, 9 Nov 2008 20:55:09 -0600

On Nov 8, 2008, at 11:06 PM, Jerry Krinock wrote:

Try -[NSDocument readFromData:ofType:error:]. True, because you must read an sqlite database, you're not going to use the data that you are passed as an argument. But that's OK. It will be autoreleased and go away.

What if the file is a couple of GB large? That would make the VM page like crazy. It wouldn't be fun.


Just override readFromURL:ofType:error: instead.

Charles
_______________________________________________

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: 
 >Opening persistent data store (From: John Velman <email@hidden>)
 >Re: Opening persistent data store (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Inviting to comment on Cocoa categories
  • Next by Date: Re: Inviting to comment on Cocoa categories
  • Previous by thread: Re: Opening persistent data store
  • Next by thread: Re: Opening persistent data store
  • Index(es):
    • Date
    • Thread