Changeset 409 for trunk/Cocoa/F-Script Anywhere/Source/FSAApp.mm
- Timestamp:
- 02/24/08 10:12:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/F-Script Anywhere/Source/FSAApp.mm
r342 r409 227 227 /* under new rules for task_for_pid, only processes with proper permissions can call task_for_pid successfullly */ 228 228 int ourPid = [[NSProcessInfo processInfo] processIdentifier]; 229 NSLog(@"our pid %d", ourPid); 230 if(task_for_pid(taskOfOurProcess, ourPid, &machPortForProcess) == KERN_SUCCESS){ // launchd should always be pid 1 229 if (task_for_pid(taskOfOurProcess, ourPid, &machPortForProcess) == KERN_SUCCESS) { // launchd should always be pid 1 231 230 mach_port_deallocate(taskOfOurProcess, machPortForProcess); 232 231 } else { 233 232 int result = NSRunInformationalAlertPanel( 234 NSLocalizedString(@"Certificate not trusted", " Framework not found alert title"),235 NSLocalizedString(@"Due to new security features in Leopard, F-Script Anywhere requires you to to trust the signature on the current application. 236 "You have several options:\n "237 "1. You can add the signing certificate automatically to your keychain, in which case you should click \"OK\" in the next dialog box to add the certificate to your keychain, and then \"Always Trust.\"\n "238 "2. You can quit F-Script Anywhere, create a signing authority on your local machine, trust it, and then sign the application binary yourself.\n "233 NSLocalizedString(@"Certificate not trusted", "Certificate not trusted alert title"), 234 NSLocalizedString(@"Due to new security features in Leopard, F-Script Anywhere requires you to to trust the signature on the current application.\n\n" 235 "You have several options:\n\n" 236 "1. You can add the signing certificate automatically to your keychain, in which case you should click \"OK\" in the next dialog box to add the certificate to your keychain, and then \"Always Trust.\"\n\n" 237 "2. You can quit F-Script Anywhere, create a signing authority on your local machine, trust it, and then sign the application binary yourself.\n\n" 239 238 @"Note that if you add the certificate properly and you still get an F-Script Anywhere error when injecting, you may need to restart your computer to clear the proper keychain caches.", @"no certificate warning message"), 240 NSLocalizedString(@"Add certificate", " 'add certificate button title"),239 NSLocalizedString(@"Add certificate", "Add certificate button title"), 241 240 NSLocalizedString(@"Quit", "Quit button title"), 242 241 NULL);
Note:
See TracChangeset
for help on using the changeset viewer.