Thanks,

Then for application where the user can choose the location of document, you 
can use it safely only if the store is in a package. If the document is 
moved/copied, the extern data are also moved/copied.

I had made some test with stores in the Desktop and after your reply I had 
found many hidden folder for each of my test.


And, in the video I talked about, they speak about a new example for Lion that 
will be available in some weeks. Some weeks have passed since the WWDC and I 
can't find this example. Is it available only for Xcode 4.2 ?

Frédéric


Le 25 août 2011 à 20:20, Steven Vandeweghe a écrit :

> It seems that when the image (or data in general) is larger than 1MB, it's 
> stored in a hidden folder in the same place as your main database. For 
> example, if the application is called MyLionApp and its persistent store is 
> located in the ~/Library/MyLionApp folder, the external files would be stored 
> in ~/Library/MyLionApp/.MyLionApp_SUPPORT/_EXTERNAL_DATA/.
> 
> The documentation is indeed very sparse, so I've investigated a bit myself 
> and posted the results here :
> 
> http://bluecrowbar.com/blog/2011/08/coredata-external.html
> 
> Steven
> 
> 
> On Aug 3, 2011, at 10:29 PM, Frédéric Testuz wrote:
> 
>> Hello,
>> 
>> I looked at the Core Data release notes of Lion, I also looked the "What's 
>> new in Core Data on Mac OS X" video of the WWDC 2011. And I have a question 
>> about the new allowsExternalBinaryDataStorage option for binary attribute.
>> 
>> I did some test with an attribute for images. I can see that when I put an 
>> big image in the data, the file did not grow.
>> 
>> But where the external file/data is put? If the file is moved or copied, 
>> what about theses external data? I tried to find info, but the documentation 
>> is very sparse.
>> 
>> Frédéric_______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/steven%40bluecrowbar.com
>> 
>> This email sent to ste...@bluecrowbar.com
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to