Cocoa Core data filename?
I followed Apple's example for creating a managed object which btw was great...
http://developer.apple.com/cocoa/coredatatutorial/index.html
However I now want to开发者_如何学Python know what "name" (filename) the user saved his data as. Does anyone know how to pull the filename from the core data object.
something like this would be great...
NSLog (@"the filename is %@", [coreData filename]);
Any ideas?
Managed objects have no inherent relationship with files; there's nothing saying they ever need to go in to or come out of a file at all.
In the case that they are, you'll be wanting to look at the NSPersistentStore object eventually associated with your managed object through its managed object context and persistent store coordinator.
精彩评论