开发者

Cocoa Core data filename?

开发者 https://www.devze.com 2022-12-22 21:00 出处:网络
I followed Apple\'s example for creating a managed object which btw was great... http://developer.apple.com/cocoa/coredatatutorial/index.html

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号