• 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: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date


  • Subject: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • From: Adam Swift <email@hidden>
  • Date: Thu, 4 Nov 2010 21:53:28 -0700

The NSPersistentStoreCoordinator class method works directly with the file at the specified URL and so writes the metadata to the the file immediately.  To modify the metadata on the store without saving automatically you need to use the store instance's setMetadata: method.  You can access the store by iterating through the PSCs list of persistentStores and matching on the URL you're looking for.

- adam

On Nov 4, 2010, at 4:39 PM, Jerry Krinock wrote:

>
> On 2010 Nov 04, at 15:37, Sean McBride wrote:
>
>> It's probably a bug.
>
> Absent any other responses, I agree.  Now filed as Apple Bug ID# 8633547.
>
> _______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
      • From: "Sean McBride" <email@hidden>
    • Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
      • From: Jerry Krinock <email@hidden>
References: 
 >Setting (not saving) NSPersistentDocument Metadata changes file Modification Date (From: Jerry Krinock <email@hidden>)
 >Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date (From: "Sean McBride" <email@hidden>)
 >Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Cannot find protocol declaration for 'NSTableViewDelegate'
  • Next by Date: Re: Cannot find protocol declaration for 'NSTableViewDelegate'
  • Previous by thread: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Next by thread: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Index(es):
    • Date
    • Thread