Re: Two Core Data Questions
Re: Two Core Data Questions
- Subject: Re: Two Core Data Questions
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 18 Jun 2005 22:50:40 -0700
On Jun 18, 2005, at 3:08 PM, Tony S. Wu wrote:
[1] I know you can pick between XML, SQLite, and in memory store.
But how do you do that? I can't find a setting anywhere.
in the delegate class, replace "NSXMLStoreType" to
"NSSQLiteStoreType" or "NSBinaryStoreType".
also don't forget to change your document's extension.
These solutions are, for default set-ups at least, mutually exclusive
problems. You have a delegate class if you use the Core Data
Application template; you have document extensions if you use a Core
Data Document-based Application template...
[2] When I option-drag an Entity into a window in IB, and select
"create interface for one object", and then build and run, I can't
enter anything in it. Everything says "no selection".
try using "create interface for many objects".
Assuming that the OP did indeed want an interface for a single
object, this is not an appropriate solution. If you want an
interface for a single object, you create an interface for a single
object, and use an NSObjectController rather than an
NSArrayController. The reason interface elements say "No selection"
is probably that there is indeed no selection -- no object has been
created or fetched. See <http://developer.apple.com/documentation/
Cocoa/Conceptual/NSPersistentDocumentTutorial/04_Department/
chapter_5_section_1.html#//apple_ref/doc/uid/TP40001799-CH223> for
further details.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden