On Tue, Aug 18, 2009 at 12:38 PM, Thomas Van Lenten <thoma...@chromium.org>wrote:
> Anyone adding more resources (xibs, etc.) to the Mac, please remember > always fetch them from mac_util::MainAppBundle() (base/mac_util.h) and do > *not* use any Cocoa apis that assume [NSBundle mainBundle]. As part of the > l10n, packaging, and updating, where resources live and what bundle is > running as the main bundle isn't always what you expect. > TVL > Also helpful is nsimage_cache::ImageNamed(), which loads (and caches) an NSImage from mac_util::MainAppBundle() via just an image file name. rsesek / @chromium.org --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---