Hi,
I have a Cocoa project that has two targets, WebDrive and GroupDrive. The functionality is the same, but the product name changes based on how it's built.
I have one MainMenu.xib file that has all my resources in it; menu, main window, etc, they all say WebDrive.
I would like that to change based on which target is built, or I would like to change it dynamically at runtime.
In the main awakeFromNib I tried
#ifdef _OEM_GROUPDRIVE_
[[NSApp mainWindow] setTitle
"GroupDrive"];
#else
[[NSApp mainWindow] setTitle
"WebDrive"];
#endif
but that did not update the main window Title.
Is there some way in IB to use ${TARGET_NAME} or ${PRODUCT_NAME} in the menus or window titles to have them set automatically?
thanks!
I have a Cocoa project that has two targets, WebDrive and GroupDrive. The functionality is the same, but the product name changes based on how it's built.
I have one MainMenu.xib file that has all my resources in it; menu, main window, etc, they all say WebDrive.
I would like that to change based on which target is built, or I would like to change it dynamically at runtime.
In the main awakeFromNib I tried
#ifdef _OEM_GROUPDRIVE_
[[NSApp mainWindow] setTitle
#else
[[NSApp mainWindow] setTitle
#endif
but that did not update the main window Title.
Is there some way in IB to use ${TARGET_NAME} or ${PRODUCT_NAME} in the menus or window titles to have them set automatically?
thanks!