I have an object which is forwarding receiving messages. It does not implement forwarding them to other objects using forwardInvocation. However, methodSignatureForSelector will not always return a valid method signature at certain times because of the way the program is organized. How can I swallow the exception generated from the missing method signature? Overriding doesNotRecognizeSelector does not work. Thanks.
Swallow doesnotrecognizeselector exception from an NSInvocation forwardInvocation call
567 Views Asked by user26691 At
1
There are 1 best solutions below
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in OBJECTIVE-C-RUNTIME
- How do I fix this error: MapFileParser.sh: Permission denied Command PhaseScriptExecution failed with a nonzero exit code
- How to dynamically set a getter for an Objective-C object property?
- Objective-C ISA pointer on disk vs when object being instantiated
- Convert CFArray to pointer
- What's the format for `objc_method_description.types` for swift blocks?
- Mac dylib and executable problem, help needed
- OC memory continued to grow after using method swapping(swizzle)
- Handling a third party library in iOS as optional/-weak_framework
- Mac native function (ObjC / LibC) to call function with arguments
- Uncaught exception handler on iOS for particular threads
- KVO-compliant dependent readonly property in category
- Is the number before selector name in crash log meaningful to developer?
- @autoreleasepool with no foundation or corefoundation (libobjc only)
- How arguments are passed in performSelector
- Is it possible to get class name when implementing malloc_logger function in iOS?
Related Questions in NSINVOCATION
- NSInvocation getArgument NSString/CFString will lead to bad access
- ios invoke block target with copy method,but crashed
- Memory Leak NSInvocationOperation
- why the instance method that is "methodSignatureForSelector:" can be invoke by the class object
- NSInvocation whith multiple arguments not working in Action Extension in iOS 13.0 beta
- Why NSInvocation return value creates a zombie?
- Can I use NSInvocation to hide or show a subclassed UIView without redrawing it?
- Check if on ObjC selector (SEL) has a parameter
- How to extract an argument of 'function' type from NSInvocation
- NSProxy forwardInvocation: Return an new NSProxy instance cause memory leak
- Is there any alternative for NSInvocation in Swift?
- NSInvocation with an enum?
- Step into -[NSInvocation invoke] during debugging
- NSMethodSignature & NSInvocation equivalent in swift 2
- Calling a block though runtime, anything similar to NSInvocation?
Related Questions in MESSAGE-FORWARDING
- Forwarding messages coming from Kafka Topic
- Message Forwarding is not working (Objective-C)
- Get the true responder to an ObjC method when it is being forwarded
- I have a class I want some method transfer to an array's object
- Maintain order of messages while forwarding messages between two ActiveMQ brokers
- iOS Message Forwarding methodSignatureForSelector
- Get object array argument from NSInvocation with ARC
- iOS message forwarding - negotiate a CLASS method and forward
- Defining a class that uses different classes depending on the platform
- Message forwarding chain
- How to forward an HttpRequestMessage to another server
- RabbitMQ Shovel basic example
- How does Objective-C messaging work? Where is `super`? How to make sure a class has an implementation from its super before method swizzling?
- ARC and Message Forwarding
- Swallow doesnotrecognizeselector exception from an NSInvocation forwardInvocation call
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You must generate some signature (even if a dummy one, e.g.
v@:, a signature of a method that returnsvoidand takes no arguments) and then remember to do nothing when it gets toforwardInvocation:.