• 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: Core Data and Document Packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and Document Packages


  • Subject: Re: Core Data and Document Packages
  • From: Tim Perrett <email@hidden>
  • Date: Fri, 13 Jul 2007 10:16:16 +0100

Hey Sergio

I found the problem in my code, so now it saves, save as etc etc and re-opens :)

I followed your example but in my recent menu items i still see "data.xml" - im guessing I need to write some code to strip off the "/ data.xml" part of the url string in NSDocumentController::packageURLFromDataStoreURL(url) ?

Are you just using some kind of string manipulation to do that?

Thanks

Tim



On 12 Jul 2007, at 16:14, sergio wrote:

If you have more troubles, if you like, you can send me your code, so
that I take a look at it... in my case, I can create a new document and
save it as many times as I need (there used to be problems with the
second save), open a document and edit/save it at will, revert a
document, and save as. Thanks to a reader of my blog I also discovered
that this solution is resilient to moving the package around while it is
being edited -- and this actually surprised me a lot... now, it would be
even more surprising discovering that it works only on my system (which
could perfectly be the case)... :-)

_______________________________________________

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: 
 >Re: Core Data and Document Packages (From: sergio <email@hidden>)

  • Prev by Date: Re: NSSlider and doube-click event
  • Next by Date: What are the official limits of Cocoa when it comes to the length of path names?
  • Previous by thread: Re: Core Data and Document Packages
  • Next by thread: Re: Core Data and Document Packages
  • Index(es):
    • Date
    • Thread