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 <j...@mooseyard.com> wrote: > > > On Aug 27, 2019, at 2:39 PM, Turtle Creek Software <supp...@turtlesoft.com> > 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com