Does Objective-C Method Swizzling affect code in other process?

Does Objective-C Method Swizzling affect code in other process?

For example, I do the method swizzling on the -[NSArray count] in my app. Will the code in other processes be affected by that method swizzling?

AFAIU method resolution should be within the process. But I'm not sure about the code from system frameworks. Do they have their own method resolution shared between processes or they have the method resolution per process

Upvotes: 2

Views: 266

Answers (1)

bbum
bbum

Reputation: 162712

No. Think about the security holes if it did.....

Btw: why in he world would you want to swizzle ‘count’?

In general, sizzling is bad. Fragile, a maintenance nightmare, and a good way to get rejected from the store.

Upvotes: 2

Related Questions