Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3444234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:53:23+00:00 2026-05-18T08:53:23+00:00

I am trying to Hook Cocoa API. I know cocoa provides a public api

  • 0

I am trying to Hook Cocoa API.

I know cocoa provides a public api for hooking, so it’s possible to hook the system function and retrieve information like the current font settings of the context.

I am also trying to hook that draw api from cocoa.

Can somebody point me to details on how it can be achieved. Or some references which talks about hooking of Cocoa APIs?

By Hooking , I mean “A fundamental technique of getting control over a particular piece of code execution. It provides an straightforward mechanism that can easily alter the operating system’s behavior as well as 3rd party products, without having their source code available.”

My requirement is, if any application/system is drawing something, then I want those draw instructions should first come to me. Then I cant to store those commands, for some processing later.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:53:23+00:00Added an answer on May 18, 2026 at 8:53 am

    The term you are looking for is something like “systemwide code injection,” and Cocoa does not provide an API for any such thing. You’d need to take a look at something like mach_star or SIMBL. But honestly, this is one of those things where, if you have to ask, it’s probably a little advanced for you. Modifying other processes’ code is a gigantic PITA and even harder to do right, even with as much help as mach_star offers. If you want to see just how hard, take a look at Unsanity’s site. That’s the company that pioneered code injection on OS X, and their entire product line is based around it — and many of their programs are still not compatible with OS X 10.6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to hook into the function comment_text() supplied by Wordpress API to wrap the
I don't know elisp, but I'm trying to do something like the following: (add-hook
I'm trying to hook into the OnSysCommand function but I'm getting a confusing error.
Trying to write a GLOBAL CBT HOOK, this is My code, but my hooking
http://developer.yahoo.com/yui/datasource/#events I'm trying to use the responseParseEvent but I don't know how to hook
I'm trying to write a bzr post-commit hook for my private bugtracker, but I'm
Trying to get my css / C# functions to look like this: body {
Trying to do this sort of thing... WHERE username LIKE '%$str%' ...but using bound
Is there an available API or functionality in cocoa where i can communicate with
I am trying to hook for example Notepad without sucess. Making a global hook

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.