I've been experimenting with core data for a couple of days and have spent the past couple of hours trying to work out how to create a UI from an entity in xcode 4. According to the books I've been reading you have to option drag the core data entity into a window in interface builder but when I do this in xcode 4, nothing happens. The apple documentation has been no help since it hasn't been updated for xcode 4. I'm sure it's something really obvious but I just can't figure it out.
相关问题
- Core Data lightweight migration crashes after App
- Can two managed object context share one single pe
- NSOutlineView drag line stuck + blue border
- iphone sdk see size of local file (one created
- How can you detect the connection and disconnectio
相关文章
- Converting (u)int64_t to NSNumbers
- “getter” keyword in @property declaration in Objec
- Generate code for core data attributes in xcode 4
- NSMenuItem KeyEquivalent “ ”(space) bug
- Core Data sort descriptor with NSDate, iOS with Sw
- UITableViewController Background Image
- NSFetchedResultsChangeUpdate fired instead of NSFe
- Case Insensitive Compare with Core Data and Swift
Your question is perfectly timed for me as I recently started learning Mac / Cocoa development and have come across the same problem.
After looking at the documentation, searching Google, trying out all Xcode menu options and playing around with every possible mouse & keyboard shortcut I could think of I have come to the conclusion that it is not possible to invoke the wizard to generate your interface from your entities in Xcode 4.
This answers your question but leaves you with the same issue I had - Where do you go now?
This is what I did to get my application to work (note that this is also explained in the videos linked to by Erik Aigner):
Obviously this only caters for a very basic scenario but should be enough to get you started (If you're reading the same book as me then be prepared for everything to break again in the next chapter when you try binding to related entities!).
There are still a few gaps in my knowledge as i've only been learning Core Data for 2 days (and Cocoa / Objective-C for less than a week) so if any of the information above is wrong then the Cocoa experts should let me know and I will update my post accordingly.