Re: NSPersistentDocument Tutorial
Re: NSPersistentDocument Tutorial
- Subject: Re: NSPersistentDocument Tutorial
- From: Adam P Jenkins <email@hidden>
- Date: Wed, 12 Mar 2008 08:20:49 -0400
On Mar 12, 2008, at 5:15 AM, Ian Jackson wrote:
I was happily plugging through the NSPersistentDocument Tutorial,
when I got to the "Creating a Custom Class" chapter. The first
strange thing is that when I created the files, the next instruction
is to change the class name for the Employee entity from
NSManagedObject to Employee, but this had already happened without
me doing anything. That seemed like a good thing. I edited the class
files as instructed, and came to the bit that says in the nib file,
to change the model key path for the pop-up menu binding in
contentValues to fullNameAndID. But the fullNameAndID option is not
there. I tried dragging the Employee.h file into interface builder,
but it didn't help (to start with it crashed IB in fact, when I had
the bindings pane open). Is there a key part to this that I'm
missing, getting IB to recognise that the Employee entity should be
read from the Employee class?
Rather than dragging .h files onto IB like Apple's docs always
suggest, I just use the "Synchronize With Xcode" command under the
File menu in IB. That said, I find that synchronization doesn't
always make new properties appear as options in binding dialogs;
sometimes you just have to type property names in by hand. In general
IB is pretty buggy, including its integration with Xcode, so don't be
surprised when you run into other problems like inspector sheets which
mysteriously blank out when you change a property.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden