/*
* $Id: STUtilities.m 198 2010-01-06 23:05:30Z stuart $
*
* SafariTabs
* http://stuconnolly.com/projects/safaritabs/
*
* Copyright (c) 2010 Stuart Connolly. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "STUtilities.h"
#import "STConstants.h"
/*!
* Returns SafariTabs' bundle version.
*
* @return SafariTabs' bundle version as an integer.
*/
{
return [[STPluginBundle() infoDictionary] objectForKey:@"CFBundleVersion"];
}
/*!
* Returns SafariTabs' version string.
*
* @return SafariTabs' version string
*/
{
return [[STPluginBundle() infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}
/*!
* Returns Safari's version string.
*
* @return Safari's version string
*/
{
return [[STSafariBundle() infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}
/*!
* Returns Safari's bundle version.
*
* @return Safari's bundle version as an integer.
*/
{
return [[STSafariBundle() infoDictionary] objectForKey:@"CFBundleVersion"];
}
/*!
* Returns a pointer to SafariTabs' bundle.
*
* @return SafariTabs' bundle
*/
{
return [NSBundle bundleWithIdentifier
:STBundleIdentifier
];
}
/*!
* Returns a pointer to Safari's bundle.
*
* @return Safari's bundle
*/
{
}
/*!
* Returns the localized version of the string associated with the supplied key.
*
* @param key The key associated with the required string
*
* @return The localized version of the string associated with the supplied key
*/
{
return NSLocalizedStringFromTableInBundle(key, @"Localizable", STPluginBundle(), @"");
}