• 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: customizing save behavior in doc based apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customizing save behavior in doc based apps


  • Subject: Re: customizing save behavior in doc based apps
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 26 Dec 2005 18:54:59 -0800


On Dec 26, 2005, at 6:17 PM, email@hidden wrote:

[[self managedObjectContext] save:NULL];

You shouldn't do this (not check the return value from save: and dispose of the error). You need to check that there was no error on saving. First there's a chance you may not be able to individually validate every attribute in the user interface, second there may be inter-attribute constraints or relationship constraints that you don't capture before a save operation.

mmalc

_______________________________________________
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: 
 >customizing save behavior in doc based apps (From: Matthew Russell <email@hidden>)
 >Re: customizing save behavior in doc based apps (From: mmalcolm crawford <email@hidden>)
 >Re: customizing save behavior in doc based apps (From: email@hidden)
 >Re: customizing save behavior in doc based apps (From: Jim Correia <email@hidden>)
 >Re: customizing save behavior in doc based apps (From: Uli Kusterer <email@hidden>)
 >Re: customizing save behavior in doc based apps (From: email@hidden)
 >Re: customizing save behavior in doc based apps (From: mmalcolm crawford <email@hidden>)
 >Re: customizing save behavior in doc based apps (From: email@hidden)

  • Prev by Date: Re: customizing save behavior in doc based apps
  • Next by Date: Problems with large files
  • Previous by thread: Re: customizing save behavior in doc based apps
  • Next by thread: NSTextFieldCell Shadow and Single Line Editing
  • Index(es):
    • Date
    • Thread