message-forwarding
Passing setters/getters of an instance variable up to a class
I\'m working on creating a UIView subclass (which I\'m calling MarqueeLabel) that animates a subview UILabel ivar in a marquee fashion when the UILabel text is too long for the containing view.[详细]
2023-02-08 05:56 分类:问答Creating an Objective-C object that wraps another object with the same interface - KVC/KVO issues
I need to create an object in one class hierarchy that wraps an object from a different one. They both have very similar interfaces, and I\'d like to automatically have my wrapper forward messages it[详细]
2023-01-12 21:32 分类:问答Forwarding Class Messages
I know that I can forward message开发者_JAVA百科s to instances of a class using -forwardInvocation:. Can I do the same for messages sent to a class object (as in +forwardInvocation:)?Looks like I can.[详细]
2022-12-24 12:31 分类:问答Message Forwarding in Objective C
Can anyone give a brief explanation of how to use message forwarding? Links Apple documentation: Apple documentation tends to be good as a reference, but lengthy enough to not be the b开发者_运维问[详细]
2022-12-13 23:25 分类:问答