STATIC REDIRECTION FOR OBJECTIVE C
First Claim
1. A method to establish static redirection of a function that is a member of a class to an alternate implementation of the function, the method comprising using a processor configured to perform operations to:
- receive, by a software tool executing on a computer server, an executable file for an application and a location for an alternate implementation of the function, the function being written in Objective C;
locate, by the software tool, a structure for the function by traversing serialized metadata in the executable file;
modify, by the software tool, the metadata in the executable file by updating the value of a selector indicating the location of a current implementation of the function to indicate a location of the alternate implementation, the selector being included in a element of the structure for the class method; and
provide, by the software tool, the modified executable file for installation on client devices.
2 Assignments
0 Petitions
Accused Products
Abstract
Particular embodiments establish static redirection of a function that is a member of a class to an alternate implementation of the function. A software tool executing on a computer server receives an executable file for an application and a location for an alternate implementation of the function. The function may be written in Objective C. The software tool can be used to locate a structure for the function by traversing serialized metadata in the executable file. The software tool can then be used to modify the metadata in the executable file by updating the value of a selector indicating the location of a current implementation of the function to indicate a location of the alternate implementation. The selector may be included in a element of the structure for the class method. Finally, the application may provide the modified executable file for installation on client devices.
27 Citations
20 Claims
-
1. A method to establish static redirection of a function that is a member of a class to an alternate implementation of the function, the method comprising using a processor configured to perform operations to:
-
receive, by a software tool executing on a computer server, an executable file for an application and a location for an alternate implementation of the function, the function being written in Objective C; locate, by the software tool, a structure for the function by traversing serialized metadata in the executable file; modify, by the software tool, the metadata in the executable file by updating the value of a selector indicating the location of a current implementation of the function to indicate a location of the alternate implementation, the selector being included in a element of the structure for the class method; and provide, by the software tool, the modified executable file for installation on client devices. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. One or more computer-readable non-transitory storage media embodying software to establish static redirection of a function that is a member of a class to an alternate implementation of the function, the mobile device comprising a processor configured to execute the software, the software being operable when executed to:
-
receive, by a software tool executing on a computer server, an executable file for an application and a location for an alternate implementation of the function, the function being written in Objective C; locate, by the software tool, a structure for the function by traversing serialized metadata in the executable file; modify, by the software tool, the metadata in the executable file by updating the value of a selector indicating the location of a current implementation of the function to indicate a location of the alternate implementation, the selector being included in a element of the structure for the class method; and provide, by the software tool, the modified executable file for installation on client devices. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer server comprising a processor and a local storage, the processor configured to execute software to establish static redirection of a function that is a member of a class to an alternate implementation of the function, the software being operable when executed to:
-
receive, by a software tool executing on the computer server, an executable file for an application and a location for an alternate implementation of the function, the function being written in Objective C; locate, by the software tool, a structure for the function by traversing serialized metadata in the executable file; modify, by the software tool, the metadata in the executable file by updating the value of a selector indicating the location of a current implementation of the function to indicate a location of the alternate implementation, the selector being included in a element of the structure for the class method; and provide, by the software tool, the modified executable file for installation on client devices. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification