NOTE: All references to libobjc are referring to Apple's runtime. I'll deal with the GNU runtime later. I'm trying to get a handle on what exactly ...
NOTE: All references to libobjc are referring to Apple's runtime. I'll deal with the GNU runtime later. I'm trying to get a handle on what exactly ...
I'm testing perform(_:with:) with the following code class ObjectA: NSObject { let value: Int init(value: Int) { self.value = va ...
Hi all I'm currently developing tweak using Theos. in the tweak I hooked the viewController and add new blurEffect, Button, progressView, Label to sho ...
From here, we know if malloc_logger global function is defined, it will be called whenever there is a malloc or free operation. I want to use it to re ...
class A: NSObject { let value: Int init(value: Int) { self.value = value } } class B: NSObject { let value: Int ...
I would expect copy on an object to generate a new object. But it seems it will only generate a different one and may reuse it for another copy. Bu ...
This is a derivative of this and this. On iOS 15, if I just try to fetch and enumerate the classes of the objc runtime, waiting until viewDidAppear t ...
I'm developing a pod which should use method swizzling at some point and I have a problem to call swizzled method when calling original one. I checked ...
I'm learning Objective-C runtime, and try to use method_exchangeImplementations to exchange addObject: method and removeObject: method of NSMutableArr ...
Is there a default method of NSObject to simulate something similar to Python's getattr / setattr? I want to get and set the members of an instance ha ...
The warning below gets occasionally reported in the Xcode console. What does this warning mean and how do I stop it from happening? objc[4082]: Lazil ...
I'm toying with method injection but burning my fingers on this one. There are two classes, cats and dogs. The dogs are trying to figure out the secr ...
I wanted to expose an IBOutletCollection for all my UIViewController classes without using inheritance, so I tried like that using the objc runtime, b ...
I am aware this is not standard or conventional, please read on. I have a header file that defines the interface and implementation of an Objective-C ...
Context: I'm working on a Pharo/Smalltalk -> Objective-C bridge Scenario: In the following Objective-C ScriptingBridge snippet: iTunesApplication ...
How can I get this kind of method refactored better? This is just a sample in my objective-c project, and I am trying to do it all programmatically Im ...
I am writing a MacOS window application in pure C++ using objc/objc-runtime.h as an experiment. I am able to open and display an NSWindow, however whe ...
I am attempting to implement a solution from How to set canBecomeKeyWindow? Into my native C application using Objective-C runtime (The app is already ...
I have following view controller: My childView get's automatically resized due to autoresizing mask when superView is resized. But KVO observation ...
I'm trying to use CVOpenGLESTextureCacheCreateTextureFromImage in order to use the reference in OpenGL, with no luck: I have a CVPixelBufferRef pixel ...