nsinvocation Questions
4
Solved
I am trying to call a method that returns a double using NSInvocation. But I found that it does not working in 64 bit iOS apps. It works on on OS X, in the simulator -- both 32-bit and 64 bit -- iP...
Slier asked 9/11, 2013 at 9:37
3
Solved
I have an array which I am iterating and looking for a particular flag. If the flag value is nil, I am calling a method which generates an invocation object and returns the result of invocation.
M...
Yoshieyoshiko asked 25/2, 2014 at 15:10
3
Solved
I am very new to GCD and threading. I have gone through the tutorials and getting very much confusion.
Can some one explain in simple words.Please don't suggest apple developer links..
Thanks in ...
Maximinamaximize asked 11/7, 2013 at 11:3
2
Solved
I'm trying to invoke a selector, with multiple (2+) arguments (the number of arguments can be determined). However, the selector is unknown at compile time (generated with NSSelectorFromString, act...
Fezzan asked 10/11, 2016 at 17:44
14
Solved
Is there any way to send a BOOL in selector ?
[self performSelector:@selector(doSomething:) withObject:YES afterDelay:1.5];
Or I should use NSInvocation? Could somebody write a sample please ?
Expiry asked 16/8, 2011 at 8:42
3
Solved
I'm using the Following NSInvocation code form Matt Gallagher for my Undo/Redo code. Though with the Latest version of xCode I'm not getting a Warning that says:
NSInvocation(ForwardedConstruction)...
Moleskin asked 12/2, 2013 at 21:34
3
Solved
Here is the example code I saw from Apple's "Timer Programming Topics":
NSMethodSignature *methodSignature = [self
methodSignatureForSelector:@selector(invocationMethod:)];
NSInvocation *invocatio...
Vadose asked 15/12, 2014 at 9:30
1
Solved
I'm trying to create a reusable test harness in Swift with the idea that subclasses will extend the test harness to provide the instance under test, and can add their own subclass-specific test met...
Kalong asked 30/6, 2014 at 21:42
7
Solved
I'm looking for a way to make an NSInvocation invoke a specific IMP. By default, it invokes the "lowest" IMP it can find (ie, the most-recently-overridden version), but I'm looking for a way to mak...
Salinometer asked 19/2, 2011 at 6:4
1
Solved
I have an object which implements various protocols (like 10 different ones).
For example
@interface MyClass <UITableViewDelegate,UITableViewDataSource,UISearchDisplayDelegate,...>
@end
...
Katz asked 30/7, 2014 at 5:40
2
NSInvocation's -retainArguments method is useful for when you don't run the NSInvocation immediately, but do it later; it retains the object arguments so they remain valid during this time.
As we ...
Cagliari asked 18/4, 2013 at 0:52
1
Solved
When I set the return value of an NSInvocation to be an NSString, the invoker is receiving an NSCFString.
In my case I'm mocking to pull a bundle path from file included by unit tests:
[[[_bundle...
Dulcinea asked 5/3, 2014 at 20:52
3
Solved
Here's a standalone test.m file that I'm using to test the behavior.
To compile: clang test.m -o test.app -fobjc-arc -ObjC -framework Foundation. Make sure the Xcode command-line tools are install...
Reconciliatory asked 8/8, 2012 at 22:20
1
Solved
I'm passing a block to an asynchronous method which executes this block later. My app crashes if I don't copy the block before passing it to someMethod:success:failure:
Is there a way to copy the ...
Minestrone asked 12/7, 2013 at 2:56
2
Solved
So I come from the Java world where we are blissfully ignorant of memory management issues. For the most part, ARC has saved my butt, but here is something that has got me stumped. Basically ...
Sociolinguistics asked 7/7, 2013 at 6:1
1
Solved
I'm trying to get the block argument from the NSInvocation in NSProxy's forwardInvocation:
Is this the correct syntax? Would it leak memory?
typedef void(^SuccessBlock)(id object);
void *successBl...
Nole asked 4/6, 2013 at 22:4
1
I'm trying to pass block arguments to a NSInvocation, but the app crashes. The invocation makes a network request and calls the success or failure blocks. I think the problem is that blocks are dea...
Karee asked 3/6, 2013 at 2:28
2
Solved
Looking only at the Objective-C runtime library, when a message is sent to an object that doesn't respond to it, the runtime system gives the receiver another chance to handle the message. So, the ...
Initiative asked 2/3, 2013 at 19:21
4
Solved
Which one is better to use to flow the data from one class to another in the whole project?
NSInvocation
NSNotificationCentre
delegate methods
or by any other methods i am unaware of ??
Melbamelborn asked 4/9, 2012 at 6:0
2
Solved
When trying to migrate my current code to ARC, I'm getting errors whenever I pass an NSString as an NSInvocation argument.
Example:
NSInvocation inv = ...;
NSString *one = @"Hello World!";
[inv s...
Glance asked 10/1, 2012 at 22:31
5
Solved
I need your help. I have some problems with NSInvocation 'getReturnValue:' method. I want to create UIButton programmatically, and even more, I want to create it dynamically using NSInvocation and ...
Menis asked 16/8, 2011 at 12:20
2
Solved
I'm trying to use an NSInvocation to invoke a superclass method from the subclass. The code involved is relatively straightforward, it goes like:
- (NSInvocation*) invocationWithSelector:(SEL)sele...
Song asked 14/5, 2012 at 6:47
1
Solved
In learning about NSInvocations it seems like I've got a gap in my understanding about memory management.
Here is a sample project:
@interface DoNothing : NSObject
@property (nonatomic, strong) N...
Allanallana asked 3/4, 2012 at 22:46
4
Solved
I try to invoke some block, but I run into a EXC_BAD_ACCESS.
-(void) methodA {
self.block = ^ {
[self methodB];
};
}
-(void) webViewDidFinishLoad:(UIWebView *)webView {
[block invoke]; // err...
Violante asked 28/2, 2012 at 14:50
3
Solved
when i say block i mean:
^(int a) {return a*a;};
besides, block is only support by iOS4 and above.
What is the difference between these two?
Diluvium asked 27/2, 2012 at 10:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.