I assumed that fullNameAndID would be available among the choices presented in the bindings pane. That not being the case, I tried typing it in, and it worked. Yay!

Ian.


On 13/03/2008, at 1:20 AM, Adam P Jenkins wrote:


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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to