// BAS related
OSStatus junk;
// Create the AuthorizationRef that we'll use through this
application. We ignore
// any error from this. A failure from AuthorizationCreate is very
unusual, and if it
// happens there's no way to recover; Authorization Services just
won't work.
junk = AuthorizationCreate(NULL, NULL, kAuthorizationFlagDefaults,
&gAuth);
assert(junk == noErr);
assert( (junk == noErr) == (gAuth != NULL) );
// For each of our commands, check to see if a right specification
exists and, if not,
// create it.
//
// The last parameter is the name of a ".strings" file that
contains the localised prompts
// for any custom rights that we use.
CFStringRef bundleID = CFBundleGetIdentifier(CFBundleGetMainBundle());
//*** I'm getting correct bundleID here
//*** but the following code fails and bundle is nil after this
CFBundleRef bundle = CFBundleGetBundleWithIdentifier(bundleID);//
fails
// more code here
}
return self;
}
what could be wrong?
any help would be greatly appreciated.
Thanks,
Nick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com