• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPersistentDocument Tutorial (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPersistentDocument Tutorial (SOLVED)


  • Subject: Re: NSPersistentDocument Tutorial (SOLVED)
  • From: Ian Jackson <email@hidden>
  • Date: Thu, 13 Mar 2008 21:03:02 +1300

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 (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


References: 
 >NSPersistentDocument Tutorial (From: Ian Jackson <email@hidden>)
 >Re: NSPersistentDocument Tutorial (From: Adam P Jenkins <email@hidden>)

  • Prev by Date: Re: What is the status on the New Cocoa 2.0 Books?
  • Next by Date: Re: How to make a UI like in Mail?
  • Previous by thread: Re: NSPersistentDocument Tutorial
  • Next by thread: Setting the badgeValue in ToolbarItem in ViewController file.
  • Index(es):
    • Date
    • Thread