Posted: July 27th, 2016 | Author: Timac | Filed under: macOS, Mail, Programming | Tags: 10.12, compatibility, DisableSwipeGesture, MacOS, Mail, Mail.app, plugin, Sierra, Supported10.12PluginCompatibilityUUIDs, SupportedPluginCompatibilityUUIDs | 1 Comment »
Mail.app in macOS 10.11 and earlier used to check the plugins compatibility using the SupportedPluginCompatibilityUUIDs key in the plugin’s Info.plist. For example a Mail plugin would only be compatible with macOS 10.11.6 if its Info.plist contained the following:
Mail.app version 10.0 in macOS Sierra (10.12) now uses a different key to check the plugins compatibility. It now requires a key with the format Supported%ld.%ldPluginCompatibilityUUIDs where “%ld.%ld” is the operating system version like “10.12”.
If you want to make your Mail.app plugin compatible with macOS Sierra, you will need to add a key in your Info.plist like:
Note that the UUID “36CCB8BB-2207-455E-89BC-B9D6E47ABB5B” is for macOS Sierra 10.12 beta 3.
Also by default the Mail plugins support is disabled. In order to enable it you first need to run in the Terminal the following:
defaults write com.apple.mail EnableBundles -bool true
Related post: Disable swipe to delete in Mail.app on OS X 10.11
Posted: March 6th, 2010 | Author: Timac | Filed under: macOS, Programming | Tags: 10.6, 32-bit, 64-bit, K64, kernel, MacOS, MacOSX, snow leopard | 1 Comment »
It might be useful in some cases to know if the MacOS kernel is running in the 32-bit or 64-bit (K64) mode. This is useful for example if you write an application like ‘System Profiler’ that displays the details of the currently running system:
Obviously this post only applies to intel machines running on Snow Leopard (see my previous post ‘Intel 64-bit summary’). To simplify the code, I assume that you compiled your application with the 10.6 SDK.
In the IOKit framework on 10.6 the function OSKextGetRunningKernelArchitecture is defined as followed in the OSKext.h header:
* @function OSKextGetRunningKernelArchitecture
* @abstract Returns the architecture of the running kernel.
* The architecture of the running kernel.
* The caller does not own the returned pointer and should not free it.
* This function consults the kernel task and returns a pointer to the
NXArchInfo struct representing its architecture.
* The running kernel's architecture does not necessarily match that
* of user space tasks (for example, a 32-bit user space task could be
* running with a 64-bit kernel, or vice-versa).
CF_EXPORT const NXArchInfo *
This function is the one I use to determine the current running kernel mode:
// OSKextGetRunningKernelArchitecture is not available in
// the 10.6 SDK headers, but exported since 10.6.
extern const NXArchInfo *OSKextGetRunningKernelArchitecture(void);
static BOOL Is64BitKernel()
BOOL isK64 = NO;
const NXArchInfo *archInfo = OSKextGetRunningKernelArchitecture();
if (archInfo != NULL)
isK64 = ((archInfo->cputype & CPU_ARCH_ABI64) != 0);
int main (int argc, const char * argv)
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
fprintf(stderr, "Is 64-bit kernel: %d\n", Is64BitKernel());
And don’t forget to link against the IOKit framework.
Also note that it is quite easy to make the previous code compiling with the 10.5 (or earlier) SDK by dynamically getting the address of the OSKextGetRunningKernelArchitecture function and checking if the address is not NULL.
Posted: January 8th, 2010 | Author: Timac | Filed under: macOS | Tags: 10.4, 10.5, 10.6, 64-bit, intel, kernel, leopard, MacOS, MacOSX, snow leopard, tiger | 6 Comments »
Since people are confused regarding Intel 64-bit, here is a brief summary of what can run on which Intel processor.
To run a 64-bit application, you obviously need a 64-bit processor. All the machines that Apple currently ships have a 64-bit processor.
- Only the ‘Intel Core Solo‘ and ‘Intel Core Duo‘ processors are 32-bit. On such machines, you won’t be able to run 64-bit apps.
- The ‘Intel Core 2 Duo‘ and ‘Xeon‘ processors are 64-bit.
Useful link on Apple Support: How to tell if your Intel-based Mac has a 32-bit or 64-bit processor.
If you have a 64-bit processor (‘Intel Core 2 Duo’ or better), there are 3 levels of 64-bit applications:
- to run a 64-bit faceless application: you need 10.4 and later.
- to run a 64-bit application with UI (Cocoa): you need 10.5 and later.
- to run the 64-bit kernel (and run 64-bit kernel extensions): you need 10.6 and later and a K64-capable machine (the EFI needs to be 64-bit). By default only the Xserve (2008 and later) will run the 64-bit kernel. On other K64-capable machines, you have to explicitely turn on the 64-bit kernel to use it.
Useful link on Apple Developer: Introduction to 64-Bit Transition Guide.