• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++ Function Call from Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ Function Call from Obj-C


  • Subject: Re: C++ Function Call from Obj-C
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 04 Oct 2013 12:20:18 -0500

On 4 Oct 2013, at 11:27 AM, koko <email@hidden> wrote:

> I have a stack variable in an Obj-C Interface which is a C++ Class.  I call a function of this class. If I run the app from XCode it works as expected, i.e. the function is called.
>
> But, if I run the app from the Finder the function is not called.
>
> What am I missing or should I say "How can this be?"

From your description, there is absolutely no way of knowing. There could be any number of conditions in the stack above the call site that only you know about.

Try running the application from the Finder, modified if necessary to loop before getting to the call site, and attach command-line lldb (or even the Xcode debugger) to it.

The canonical reason a Mac application behaves differently in Xcode and in real life is that you're depending on the working directory Xcode gives you. Last I looked, it was the application directory under Xcode, and / from the Finder.

(Xcode. Lower-case c.)

	— F


_______________________________________________

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


  • Follow-Ups:
    • Re: C++ Function Call from Obj-C
      • From: koko <email@hidden>
References: 
 >C++ Function Call from Obj-C (From: koko <email@hidden>)

  • Prev by Date: Re: NSControl subclass is not becoming initial first responder without Full Keyboard Access
  • Next by Date: Re: why isn't id<MyCellDelegate> an id?
  • Previous by thread: C++ Function Call from Obj-C
  • Next by thread: Re: C++ Function Call from Obj-C
  • Index(es):
    • Date
    • Thread