• 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: Using assembly in objective-c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using assembly in objective-c


  • Subject: Re: Using assembly in objective-c
  • From: Twisted Theory Software <email@hidden>
  • Date: Mon, 21 Jan 2008 18:26:28 -0600


On 21 Jan, 2008, at 5:00 PM, Andrew Farmer wrote:

On 21 Jan 08, at 12:46, Twisted Theory Software wrote:
On 21 Jan, 2008, at 2:38 PM, Kyle Sluder wrote:
You can turn the clock off in the Date and Time preference pane (the one provided by Apple). I have never had a problem when this is off. By 'replace' I mean "turn off and run another program that does something similar".


But, we're getting side-tracked. Can I somehow run that assembly from objective-c?

For the sake of brevity, I'll give a general answer. [Insert a bunch of dire warnings about using private frameworks here.] A C(*) function called xyzzy() will generate a symbol named _xyzzy. It can be called by simply declaring and calling a function called xyzzy(); no wrapper (or assembly!) is necessary.


*: C++ throws a monkey wrench into the works with function "mangling" (to disambiguate overloaded functions). In most cases, however, C++ library functions will either be called from other C++, or will have pure-C wrappers.

Yes, but you still have to link against some library containing xyzzy(). For the function I'm after is located in HIServices.framework, but linking against ApplicationServices.framework, its umbrella, results in a symbol not found error. This worked before, on Tiger, when they were seperate frameworks.


What I'm asking is can I use the assembly from the HIServices library (the binary file) in a function. If so, how?

Thank you.

Josh
_______________________________________________

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:
    • [OT] Re: Using assembly in objective-c
      • From: Alastair Houghton <email@hidden>
    • Re: Using assembly in objective-c
      • From: Andrew Farmer <email@hidden>
References: 
 >Using assembly in objective-c (From: Twisted Theory Software <email@hidden>)
 >Re: Using assembly in objective-c (From: glenn andreas <email@hidden>)
 >Re: Using assembly in objective-c (From: Twisted Theory Software <email@hidden>)
 >Re: Using assembly in objective-c (From: "Kyle Sluder" <email@hidden>)
 >Re: Using assembly in objective-c (From: Twisted Theory Software <email@hidden>)
 >Re: Using assembly in objective-c (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Annoying Superclass Implemenation Warning
  • Next by Date: Re: Using assembly in objective-c
  • Previous by thread: Re: Using assembly in objective-c
  • Next by thread: Re: Using assembly in objective-c
  • Index(es):
    • Date
    • Thread