Hooking Cocoa API?

前端 未结 4 1607
南旧
南旧 2021-01-17 03:09

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 curren

4条回答
  •  情歌与酒
    2021-01-17 04:01

    Including...

    #import 
    #import 
    

    will allow you to have access to modifying the classes and objects at runtime. Although this is rather 'reckless.'

    A much better Idea is to use Objective-C Categories for a more 'safe' access.

提交回复
热议问题