# Mac Cocoa vs Mac x86-64

**URL:** <https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236>\
**Category:** Plugins\
**Created:** [January 16, 2016, 5:54pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236 "2016-01-16T17:54:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Fausey](https://forum.xojo.com/user_avatar/forum.xojo.com/matt_fausey/32/2271_2.png) [@Matt\_Fausey](https://forum.xojo.com/u/Matt_Fausey)\
**Post date:** [January 16, 2016, 5:54pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236/1 "2016-01-16T17:54:57Z")

</div>

Hi. I’m confused as to why there are separate directories for “Mac x86-64” and “Mac Cocoa” under the “Build Resources” directory. Maybe I’ll answer my own question with the following thoughts, but please let me know if I’m misunderstanding something.

The only exported function of a plugin (whether it be a Windows DLL, Linux .so, or Mac .dylib) is the REALPluginMain function. This has no relation to the Cocoa Framework. If the internal implementation of the plugin makes no references to the Cocoa framework, would it make sense to put the identical .dylib in each Mac sub-directory (i.e. both “Mac x86-x64” and “Mac Cocoa”). I would imagine that if a plugin utilizes the Cocoa framework within its internal implementation, then a .dylib would exist under “Mac Cocoa”, but not under “Mac x86-64”, right? Also, what about universal dylibs? Should only the x86\_64 architecture be contained within the .dylib for both? Or should both i386 and x86\_64 be contained in the .dylib?

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [January 16, 2016, 6:18pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236/2 "2016-01-16T18:18:59Z")

</div>

You should have the correct dylib for each to prepare for the day the IDE ships as 64 bit

---

<div class="post-metadata">

**Author:** ![Matt\_Fausey](https://forum.xojo.com/user_avatar/forum.xojo.com/matt_fausey/32/2271_2.png) [@Matt\_Fausey](https://forum.xojo.com/u/Matt_Fausey)\
**Post date:** [January 16, 2016, 6:25pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236/3 "2016-01-16T18:25:42Z")

</div>

Thanks Norman. Are you saying that “Mac Cocoa” really means “32-bit”? (In other words, when Cocoa was first introduced, only 32-bit was possible, and then when x86-64 came along the “Mac x86-64” directory was added?)

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [January 16, 2016, 6:28pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236/4 "2016-01-16T18:28:25Z")

</div>

Yeah the names are not as clear as they should have been  
But thats a legacy thing and we cant change them without breaking a fair number of things

---

<div class="post-metadata">

**Author:** ![Matt\_Fausey](https://forum.xojo.com/user_avatar/forum.xojo.com/matt_fausey/32/2271_2.png) [@Matt\_Fausey](https://forum.xojo.com/u/Matt_Fausey)\
**Post date:** [January 16, 2016, 6:32pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236/5 "2016-01-16T18:32:55Z")

</div>

Thanks Norman! I completely understand. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:08pm UTC](https://forum.xojo.com/t/mac-cocoa-vs-mac-x86-64/29236/6 "2020-10-29T18:08:46Z")

</div>


