Obtaining version number of framework at runtime... API available?
Obtaining version number of framework at runtime... API available?
- Subject: Obtaining version number of framework at runtime... API available?
- From: Ray Rischpater <email@hidden>
- Date: Mon, 12 Nov 2001 15:21:33 -0800
I'm fairly new to Cocoa, and am in the process of designing a pluggable
architecture for an application.
For obvious reasons, NSBundle and the framework notion seem the obvious
choice. I've read over the System Overview document, which discusses the
internal representation of a framework, and how the framework can store
versioning information. All of this is well and good.
Query: how can I actually check a framework's version number at runtime?
Do I have to walk the framework's directory structure, or is there an
API? In other words, if I've loaded my framework as a bundle, is there a
quick-and-easy way to see what version it will support?
(I would think the answer is yes, but I'm still doing the documentation
dance. I'd hate to use a non-standard technique like having my framework
export a version method if it wasn't necessary...)
Thanks in advance,
Ray Rischpater