FROM : Jerry Krinock
DATE : Wed Dec 05 02:22:28 2007
On 2007 Nov, 23, at 22:38, Chris Hanson wrote:
> Is there any chance you can do a diff between what you have in your
> SCM system and what you have now, that works, and file a bug
> describing what you were doing previously?
Well, chief, fortunately I didn't have to do that.
The problem was that I had implemented validateForInsert:
(NSError**)error. I was returning NO, but ^I^ was not setting that
NSError. When I did, I then got it back in save:, as expected.
Apparently, if -validateForInsert: returns NO, save: simply passes on
whatever error it gets, or doesn't get. Not ideal behavior, but not a
bug. Something like, "You didn't give me an error in -
validateForInsert:, Stupid" would be better.
Thanks,
Jerry
DATE : Wed Dec 05 02:22:28 2007
On 2007 Nov, 23, at 22:38, Chris Hanson wrote:
> Is there any chance you can do a diff between what you have in your
> SCM system and what you have now, that works, and file a bug
> describing what you were doing previously?
Well, chief, fortunately I didn't have to do that.
The problem was that I had implemented validateForInsert:
(NSError**)error. I was returning NO, but ^I^ was not setting that
NSError. When I did, I then got it back in save:, as expected.
Apparently, if -validateForInsert: returns NO, save: simply passes on
whatever error it gets, or doesn't get. Not ideal behavior, but not a
bug. Something like, "You didn't give me an error in -
validateForInsert:, Stupid" would be better.
Thanks,
Jerry
| Related mails | Author | Date |
|---|---|---|
| Jerry Krinock | Nov 22, 04:34 | |
| Jerry Krinock | Nov 23, 18:24 | |
| mmalc crawford | Nov 23, 23:46 | |
| Jerry Krinock | Nov 24, 06:47 | |
| Chris Hanson | Nov 24, 07:38 | |
| Jerry Krinock | Dec 5, 02:22 |






Cocoa mail archive

