• 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: MyDocument File Save Overrides.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MyDocument File Save Overrides.


  • Subject: Re: MyDocument File Save Overrides.
  • From: Kevin Bracey <email@hidden>
  • Date: Tue, 21 Nov 2006 13:46:55 +1300

Sorry Guy's my bug, I was losing the data before it arrived at fileWrapper...

On 21/11/2006, at 12:09 PM, Kevin Bracey wrote:

Hi All,

I've got a file saving problem. I think I'm missing an override in MyDocument somewhere but I'm unsure which.

I've implemented fileWrapperOfType: error: and readFromFileWrapper: ofType: error:

and these work great if the document hasn't been saved, I get presented with a Save Sheet and my Document or Package get saved.

but after making additional changes and the document becoming dirty, I then do a save and it doesn't save, in fact it zeros out the file leaving an empty file.

Do I need to override something else, if so which one? Or do I have a problem in my initial FileWrapper overrides.

Cheers
Kevin

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >MyDocument File Save Overrides. (From: Kevin Bracey <email@hidden>)

  • Prev by Date: Re: All-windows Exposé messes with NSFloatingWindow level
  • Next by Date: Re: All-windows Exposé messes with NSFloatingWindow level
  • Previous by thread: MyDocument File Save Overrides.
  • Next by thread: Manually loading into a Core Data model
  • Index(es):
    • Date
    • Thread