• 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: Damien Sorresso <email@hidden>
  • Date: Wed, 28 Jun 2006 00:39:01 -0500

Whoops, ignore that last one. I completely misread the problem. The method below works for Objective-C classes which are included at compile time. I doubt it works for bundles.
--


Damien Sorresso

"A mathematician is a device for turning coffee into theorems."
-Paul Erdos

On 28 Jun, 2006, at 12:35 AM, Damien Sorresso wrote:
On 27 Jun, 2006, at 11:41 PM, Mark Williams wrote:
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?


It sounds like you probably have your C functions declared inside

@interface
.
.
.
@end

Move their declarations outside of the `@interface ... @end' context, and you'll be able to call them from `main()' or wherever. You'll also still be able to call them from within the class. Also move the method definitions outside of the `@implementation ... @end' context in your implementation file.
--


Damien Sorresso

"Never ask a man what computer he uses. If it's a Mac, he'll tell you. If it's not, why embarrass him?"
-Tom Clancy


 _______________________________________________
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




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Re: Executing non objective-c code in a loaded bundle (From: Damien Sorresso <email@hidden>)

  • Prev by Date: Re: Executing non objective-c code in a loaded bundle
  • Next by Date: Store file properties alongside coredata?
  • Previous by thread: Re: 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