Re: Cocoa-dev Digest, Vol 16, Issue 72
Re: Cocoa-dev Digest, Vol 16, Issue 72
- Subject: Re: Cocoa-dev Digest, Vol 16, Issue 72
- From: Turtle Creek Software via Cocoa-dev <email@hidden>
- Date: Tue, 27 Aug 2019 22:21:37 -0400
There is an option in Build Settings, Apple Clang, to Compile Sources As.
That converts everything at once.
Previously I didn't notice Obj-C++ at the bottom. The C++ classes do build
and run OK with that selected.
Using the hybrid forward declaration that Uli suggests, I converted one of
our C++ linkers
to have a Cocoa object pointer member, rather than void *. Much tidier.
What I can't find is where the __bridge cast should go. The compiler
complains at all locations.
The app runs the same, but will ARC be OK without it?
Casey McD
On Tue, Aug 27, 2019 at 7:38 PM Jens Alfke <email@hidden> wrote:
>
>
> On Aug 27, 2019, at 2:39 PM, Turtle Creek Software <email@hidden>
> wrote:
>
> I tried changing the build from C++ to Obj-C but it gives way too many
> errors.
>
>
> Not Objective-C. Objective-C++. (Do you know about Objective-C++?)
>
> The way I know of to do this is to select the C++ source files in the
> Xcode navigator, open the inspector, and change their Type to Objective-C++:
>
>
> I think this can be set as a default per target using the Build Rules tab,
> but I'm not sure how.
>
> —Jens
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Turtle Creek Software via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Jens Alfke via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Turtle Creek Software via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Jens Alfke via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Turtle Creek Software via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Jens Alfke via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Turtle Creek Software via Cocoa-dev <email@hidden>) |
| >Re: Cocoa-dev Digest, Vol 16, Issue 72 (From: Jens Alfke via Cocoa-dev <email@hidden>) |