• 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: Executing non objective-c code in a loaded bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executing non objective-c code in a loaded bundle


  • Subject: Re: Executing non objective-c code in a loaded bundle
  • From: "stephen joseph butler" <email@hidden>
  • Date: Wed, 28 Jun 2006 00:20:34 -0500

2006/6/27, Mark Williams <email@hidden>:
I have a bundle with a couple of plain old C functions in it. When I
load it I have no trouble executing any objective-c code but I do not
know how to execute a regular c function from the loaded bundle like
somefunction(); Is it possible to do this or do I have to convert it
all to obj-c?

You have to use the CFBundle API (which isn't toll-free-bridge with NSBundle). Specifically: http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/Tasks/loading.html#//apple_ref/doc/uid/20001127 _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Executing non objective-c code in a loaded bundle (From: Mark Williams <email@hidden>)

  • Prev by Date: RE: Set text color of text field
  • Next by Date: Re: Executing non objective-c code in a loaded bundle
  • Previous by thread: Executing non objective-c code in a loaded bundle
  • Next by thread: Re: Executing non objective-c code in a loaded bundle
  • Index(es):
    • Date
    • Thread