argument types of undocumented Objective-C methods in Instruments (OSX)
NickName:maranas Ask DateTime:2010-03-26T21:23:36

argument types of undocumented Objective-C methods in Instruments (OSX)

Is there a way to determine the argument types of Objective-C methods traced by Instruments? I created a custom DTrace Instrument that just lists all Objective-C calls in a class. I am trying to swizzle one of the methods, but only the method name is listed.

Is there a way to determine the argument types? Or as an alternative, a way to swizzle the methods without knowing the argument types?

Copyright Notice:Content Author:「maranas」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/2523505/argument-types-of-undocumented-objective-c-methods-in-instruments-osx

Answers
Ken Aspeslagh 2010-03-27T21:46:15

If you use classdump, then you can see C data types in the method definitions. This should be sufficient for swizzling. Once you have the routines swizzled, you can print a description of objective-C types using NSLog.\n\nhttp://www.codethecode.com/projects/class-dump/",


More about “argument types of undocumented Objective-C methods in Instruments (OSX)” related questions

argument types of undocumented Objective-C methods in Instruments (OSX)

Is there a way to determine the argument types of Objective-C methods traced by Instruments? I created a custom DTrace Instrument that just lists all Objective-C calls in a class. I am trying to sw...

Show Detail

Objective-C delegate methods with more specific parameter types

In Objective-C, is it considered good or bad practice to replace argument types with more specific (subclass) argument types in your implementation of a delegate/protocol method? For instance, acc...

Show Detail

Profiling ncurses application with instruments on OSX

I have a C command-line application that uses ncurses and I am using Xcode 4.4 (OSX Lion) to develop this. So far I have been running the code from the terminal after building it with Xcode. Now I ...

Show Detail

Time profiling C program with OSX Instruments 7.2

I am using OSX El Capitan and Instruments 7.2. I want to time profile a very simple C program, just to get around Instruments environment. As you can see in the picture attached, for some reason,

Show Detail

How to find undocumented iPhone API calls?

In the early days of the iPhone development apps are often kicked out of the AppStore for using undocumented API calls. I always asked myself how people found out about these methods and what they ...

Show Detail

Laravel : use undocumented methods or not?

I want to know if there is any risk of using undocumented Laravel methods . such as latest() , oldest() ,attribute() . is there any reason not to use theme ?

Show Detail

Undocumented transaction types

While integrating with the Transactions API I noticed the following undocumented types: pro_deposit: seems to be equivalent to exchange_deposit pro_withdrawal: seems to be equivalent to

Show Detail

Instruments wants permission to analyze other processes Jenkins

So my problem is that on pure swift project (almost :-) ) with test written also in Swift I got this every build. Build is started via Fastlane 1.63. : ▸ DTServiceHub: Instruments wants permission...

Show Detail

Undocumented Methods: Use them or not?

I want to know what the risks are of using undocumented methods in the iPhone SDK. I haven't had any issues thus far, but I am worried that doing something like this might screw up the app. Any

Show Detail

How to read output from Instruments (OSX command line utility)

This seems so simple I'm embarrassed to ask... I'm developing code in a command-line-only environment. It seems that OSX has disabled traditional unix profiling, so I tried "instruments": instrum...

Show Detail