• 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: koko <email@hidden>
  • Date: Fri, 04 Oct 2013 16:43:31 -0600

You set me on the right path … I ran the app from the Finder and attached to it from Xcode …

The problem …
 running from Xcode the destination was 32 bit
running from Finder we run in 64 bit
a supporting library containing the call in question would not operate correctly in 64 bit

thx …

-koko


On Oct 4, 2013, at 11:20 AM, Fritz Anderson <email@hidden> wrote:

> 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


References: 
 >C++ Function Call from Obj-C (From: koko <email@hidden>)
 >Re: C++ Function Call from Obj-C (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Doc Viewer in 5.0.1
  • Next by Date: Re: Autolayout fixed size centering in VFL
  • Previous by thread: Re: C++ Function Call from Obj-C
  • Next by thread: why isn't id<MyCellDelegate> an id?
  • Index(es):
    • Date
    • Thread