Re: Core Data Form

2008-09-05 Thread Jon Buys
> NSManagedObject *hostObj = [NSEntityDescription > insertNewObjectForEntityForName:@"Host" inManagedObjectContext:[[NSApp > delegate] managedObjectContext]]; > Ahhh... there's what I was missing: the [NSApp delegate] part of declaring a new entity. I'm not at my Mac right now, but I'll give tha

Re: Core Data Form

2008-09-05 Thread Jim Turner
Jon, First off, unless you're doing something special you don't need to create custom classes for each entity. If your managed object really is just slinging strings, leave the class as NSManagedObject and create a new entity with: NSManagedObject *hostObj = [NSEntityDescription insertNewObjectF

Core Data Form

2008-09-04 Thread Jon Buys
Hello, I have a problem with my app that is most likely very simple for someone with experience. I have a core data based application that I would like to be able to add objects to via a sheet that drops down when the user clicks the + button (or presses Command-N). On the sheet are two