A question about versioning. Information seems a bit sparse on this according to a few Google/cocoa-dev archives/ADC/Apple Discussions searches.
I want to have a consecutive build number (an integer counting up each new build) displayed in my application (in an NSTextField, About dialog). Now I know how to access the Main/Major program version (string) from the main bundle (CFBundleVersion). But that's not the constantly increasing integer I am looking for. What I did so far: - in my project settings I set "Versioning System" to "Apple Generic" - in my project settings I set "Current Project Version" to 1 I now get a file $(PRODUCT_NAME)_vers.c built in the folder build/$(PRODUCT_NAME).build/Debug/$(PRODUCT_NAME).build/DerivedSources It contains two variables and it looks like I'm interested in the second const double $(PRODUCT_NAME)VersionNumber __attribute__ ((used)) = (double)1.; However, I still have two questions: 1) How do I get access to this const in my source code? I guess I have to declare a const as "extern" somehow somewhere?! agvtool doc says this generated c file gets linked into the binary... 2) Right now the file doesn't get built new every time I build my application. So the number isn't increasing yet. How can this be achieved? Thanks a lot! Stefan._______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com