Core Data versioning woes

2008-08-10 Thread Graham Perks
count]: unrecognized selector sent to instance 0x16577ca0 I get that line twice. Any ideas? I don't know where to even start with that one. My 10.4-style versioning code I optimistically removed from the project. Please don't make me bring that mess back :-) Thanks, Gr

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
thContentsOfUrl:... Not very useful. Nothing from Core Data about why the file couldn't be opened. I do get the "blah.new" file adjacent to my data file, so I know migration has been attempted. I swear Core Data costs me as much time as it saves me :-) Graham. On Aug 10, 2008, a

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
Astonishing: The migration happens for sure: I end up with a "foo.new" file adjacent to my original file. If I delete the original and open the .new file, it is the migrated version complete will all data, including the new attribute (with its default value) that I added in the new data mod

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
So after some too-late coding and placing my NSLogs in the wrong place, I now find the normal Multiple Validation Errors. After dumping the extra messages in NSDetailedErrorsKey I see the offenders are items that are marked as transient but non-optional. They're set in my entity's awakeFro

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
Now when I save my document I get a sheet saying, "This document's file has been changed by another application since you opened or saved it", and asking if I want to save or not. Eh? What's that all about? The document that's open post-migration is the "foo~" version - the backup of the

Re: Core Data question

2008-08-10 Thread Graham Perks
On Aug 10, 2008, at 8:39 PM, Sandro Noel wrote: So I think my question here, is, what should I use when inserting a detail object to properly set the relationship to Account. some example on how I should approach the problem would be nice, or a step-by-step :D I do this, where I have an Eve

Re: Core Data question

2008-08-10 Thread Graham Perks
use when inserting a detail object to properly set the relationship to Account. some example on how I should approach the problem would be nice, or a step-by-step :D Cheers, Graham Perks. http://www.asinglepixel.com ___ Cocoa-dev mailing list (Cocoa

Re: Get specified window from nib

2008-08-10 Thread Graham Perks
On Aug 10, 2008, at 9:01 PM, Fosse wrote: I have one nib containing more than ten dialogs and want to get the specified window after nib is loading.. Perhaps NSNib's instantiateNibWithOwner:(id)owner topLevelObjects: (NSArray **)topLevelObjects ? You'll get an array of top level objects, wh

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
n if you uncheck the Target checkbox for a file. So do a Clean before rebuilding, and the error will be gone. (I'm still puzzling out why I get the tilde version of the migrated file opened.) Cheers, Graham Perks http://www.asinglepixel.com __

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
On Aug 10, 2008, at 2:06 PM, Graham Perks wrote: The document that's open post-migration is the "foo~" version Is this a "feature" of migration? I tried the most basic migration app I could build. And when I try to save, it says "This document has been ren

Re: Core Data question

2008-08-10 Thread Graham Perks
On Aug 10, 2008, at 10:30 PM, Chris Hanson wrote: you should not need to do a thing to ensure that the other is set after doing the first. That's what marking relationships as inverses means; Core Data will set them for you automatically. Thanks for that Chris, I did not know that. Still, i

Re: Why use NSObjectController?

2008-08-10 Thread Graham Perks
On Aug 10, 2008, at 10:23 PM, Seth Willits wrote: What is it that NSObjectController offers me? Great question. You are on the long steep ascent to Bindings understanding. For me the top is still way up there shrouded in clouds. I'll take a stab at answering your question: 1) NSObjectContr

Re: Core Data versioning woes

2008-08-10 Thread Graham Perks
load the file. There's no need to override configurePersistentStoreCoordinatorForURL at all. I'll add some code using isConfiguration:compatibleWithStoreMetadata: to check if the upgrade is even needed, and that should wrap it up. What a day. Cheers, Graham Perks. http://www.asinglepixel.com

Core Data Versioning - more than two versions, how to map upgrades?

2008-08-12 Thread Graham Perks
lly chain upgrades. Is that how it's supposed to work? Cheers, Graham Perks. http://www.asinglepixel.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder