objective c - Swizzle something that was retained -


hi don't understand retain well.

there code here:

mappicon = [[nsimage imagenamed:@"nsapplicationicon"] retain]; 

i trying swizzle whenever ask image name nsapplicationicon give custom icon. still see original icon come sometimes. think it's because of retain thing? right? possible clear retain? make swizzle works 100% of time instead of 80% :(

i read here retain wasnt able apply situation above: http://www.cocoawithlove.com/2010/06/assign-retain-copy-pitfalls-in-obj-c.html

very trying swizzle here: https://dxr.mozilla.org/mozilla-central/source/widget/cocoa/nsmacdocksupport.mm?offset=200#140


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -