View Single Post
Hi -

I implemented a custom OUIDocument class and used (NSData) dataWithContentsOfURL:options:error in my - (BOOL)ReadFromURL:error: override. Thought I was being smart by specifying NSDataReadingMappedIfSafe as an option only to realize (after a few sleepless nights) that it causes endless OFSDocumentStoreFileItem:presentedItemDidChange notifications which in turn posts OFSDocumentStoreFileItemContentsChangedNotificatio n.

This is fixed by using the simple (no option version) of dataWithContentsOfURL OR the following options:
NSDataReadingUncached - works
NSDataReadingMappedAlways - works

At this point, I'm just wondering why the NSDataReadingMappedIfSafe read option causes this behavior.
Just curious.

Thanks in advance.