ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.86k stars 69 forks source link

To work in Catalina (macOS 10.15.7) NSToolbarSidebarTrackingSeparatorItemIdentifier had to be removed #11

Closed GrxE closed 3 years ago

GrxE commented 3 years ago

Hi, first of all, GREAT WORK! I had no problems getting some examples to run in 10.15.7 - but unfortunately the NSToolbarSidebarTrackingSeparatorItemIdentifier is part of macOS 11 and I got a compile error on my Catalina (10.15.7) system:

 note: Undefined symbols for architecture x86_64:
            "_NSToolbarSidebarTrackingSeparatorItemIdentifier", referenced from:
                cacao::macos::toolbar::enums::ItemIdentifier::to_nsstring::h93aee7ff60b47338 in libcacao-666ce155f0266e01.rlib(cacao-666ce155f0266e01.cacao.6ipigaqo-cgu.15.rcgu.o)
          ld: symbol(s) not found for architecture x86_64

I removed the Enum-entry and corresponding code and got the todo_list compiled and running. No Crashes or bugs (so far). Here is my modified enums.rs enums.txt

ryanmcgrath commented 3 years ago

Ah, yeah, I think I probably blanket replaced that - it should really just be hard coded to the enum value so it can compile on 10.15.7-, or there needs to be some kind of compile time check.

Will see what I can throw together… appreciate it!

On Sun, Jun 27, 2021 at 04:39, Gregor @.***> wrote:

Hi, first of all, GREAT WORK! I had no problems getting some examples to run in 10.15.7 - but unfortunately the NSToolbarSidebarTrackingSeparatorItemIdentifier is part of macOS 11 and I got a compile error on my Catalina (10.15.7) system:

note: Undefined symbols for architecture x86_64: "_NSToolbarSidebarTrackingSeparatorItemIdentifier", referenced from: cacao::macos::toolbar::enums::ItemIdentifier::to_nsstring::h93aee7ff60b47338 in libcacao-666ce155f0266e01.rlib(cacao-666ce155f0266e01.cacao.6ipigaqo-cgu.15.rcgu.o) ld: symbol(s) not found for architecture x86_64

I removed the Enum-entry and corresponding code and got the todo_list compiled and running. No Crashes or bugs (so far). Here is my modified enums.rs enums.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ryanmcgrath commented 3 years ago

@GrxE curious if the patch I just threw up works for you. If so, I can push a 0.2.1 to crates.io.

Thanks again!

ryanmcgrath commented 3 years ago

0.2.1 should fix this.