开发者

Access Aperture library and import XML

The library of Aperture is visible in the file system as a package. Inside this package, there's an XML file (among other things) that I want to get access to. The problem is that I can't simply use the path to that XML file due to the fact that the file is contained in a package (which needs to be opened first).

Is there a way in Cocoa to open such a p开发者_运维问答ackage and then access the files it contains?

Thanks,

Bart


Your best bet is probably to repurpose code from the open source iMedia framework.


It seems using NSBundle will do the trick. Aperture's library is a package that can be opened by using NSBundle. NSBundle provides methods to access the files inside the package.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜