# Class name conflict on Mac OS X

**URL:** <https://discuss.pencil2d.org/t/class-name-conflict-on-mac-os-x/666>\
**Category:** Development\
**Created:** [2 August 2013 09:42 UTC](https://discuss.pencil2d.org/t/class-name-conflict-on-mac-os-x/666 "2013-08-02T09:42:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feeef](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/feeef/32/21_2.png) [@feeef](https://discuss.pencil2d.org/u/feeef)\
**Post date:** [2 August 2013 09:42 UTC](https://discuss.pencil2d.org/t/class-name-conflict-on-mac-os-x/666/1 "2013-08-02T09:42:44Z")

</div>

Hi,

I have a class name conflict when building the mac version. The class “Palette” is conflicting with a struct called “Palette” in the QuickDraw library under Mac OS X.

In order to build the nightly build I always refactor the code to call the class “PencilPalette”, build, and then cancel my changes.

This is not a good thing to do so I see 2 solutions :

1. Is there a way to make the build ignore the QuickDraw library? (but it may require it)

2. We refactor the class to change its name to something like PencilPalette.

What do you think? Has anyone had this problem on Mac OS X?

---

<div class="post-metadata">

**Author:** ![chchwy](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/chchwy/32/126_2.png) [@chchwy](https://discuss.pencil2d.org/u/chchwy)\
**Post date:** [2 August 2013 10:22 UTC](https://discuss.pencil2d.org/t/class-name-conflict-on-mac-os-x/666/2 "2013-08-02T10:22:57Z")

</div>

Hi, @feeef

I’ve renamed the class Palette, please check the latest source code. 🙂

---

<div class="post-metadata">

**Author:** ![feeef](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/feeef/32/21_2.png) [@feeef](https://discuss.pencil2d.org/u/feeef)\
**Post date:** [2 August 2013 11:21 UTC](https://discuss.pencil2d.org/t/class-name-conflict-on-mac-os-x/666/3 "2013-08-02T11:21:50Z")

</div>

Thank you so much @chchwy ! 🙂
