26 CFAllocatorRef alloc = kCFAllocatorDefault;
36 alloc, cf_path.
get(), kCFURLPOSIXPathStyle,
true));
38 reset(::CFBundleCreate(alloc, bundle_url.
get()));
47 if (bundle_url.
get()) {
48 Boolean resolveAgainstBase = 0;
49 return ::CFURLGetFileSystemRepresentation(bundle_url.
get(),
51 (UInt8 *)dst, dst_len) != 0;
60 return ::CFBundleGetIdentifier(bundle);
67 return ::CFBundleGetValueForInfoDictionaryKey(bundle, key);
74 return CFBundleCopyExecutableURL(bundle);
CFStringRef GetIdentifier() const
bool SetPath(const char *path)
CFURLRef CopyExecutableURL() const
CFCBundle(const char *path=NULL)
CFTypeRef GetValueForInfoDictionaryKey(CFStringRef key) const
bool GetPath(char *dst, size_t dst_len)
void reset(CFBundleRef ptr=NULL)
CFStringRef SetFileSystemRepresentation(const char *path)