nsproxy Questions
2
Solved
How to create an NSProxy subclass in Swift?
Trying to add any of the init methods fails with error:
"Super init can't be called outside of the initializer", or
"Super init isn't called on all path...
Boehmer asked 18/4, 2018 at 15:20
2
I have been wondering why is NSProxy class so important. Why does an object need to keep its instance variables inside other objects? I need examples to understand when to use it. Thanks!
Chrysler asked 24/12, 2012 at 12:16
1
Solved
I need to create proxy pattern in iOS using swift
I have tried it using Objective C and here is the code
MyProtocol.h
#import <Foundation/Foundation.h>
@protocol MyProtocol <NSObject>...
1
Solved
In OCMockito, test doubles are implemented with NSProxy. A double standing in for an instance implements -respondsToSelector: as follows:
- (BOOL)respondsToSelector:(SEL)aSelector {
return [_mock...
Soulier asked 25/5, 2014 at 17:7
4
Solved
I am experimenting in adding functionality to my UIViews (configuring CALayers according to state) by setting up a NSProxy subclass to stand in for any UIView I choose. Here's what I've tried:
In m...
2
Solved
NSProxy seems to work very well as stand-in objects for those that don't yet exist. For example.
- (NSMethodSignature *)methodSignatureForSelector:(SEL)sel {
return [self.target methodSignatureFo...
Abernon asked 29/1, 2012 at 17:6
3
Solved
Under ARC, I have an object, Child that has a weak property, parent. I'm trying to write some tests for Child, and I'm mocking its parent property using OCMock.
Under ARC, setting an NSProxy subcl...
Rahel asked 1/2, 2012 at 22:47
2
Solved
What are some uses of the NSProxy class. Why would you want to be able to have the description of an object that doesn't exist?
Marchetti asked 22/11, 2011 at 5:52
2
Solved
The NSProxy Class Reference says this:
Typically, a message to a proxy is forwarded to the real object or causes the proxy to load (or transform itself into) the real object.
How exactly would...
Larkspur asked 7/8, 2011 at 1:55
2
Solved
I am currently looking into different ways to support distributed model objects (that is, a computational model that runs on several different computers) in a project that initially focuses on Mac ...
1
© 2022 - 2024 — McMap. All rights reserved.