Re: memory leak
Ronald Oussoren <[email protected]>
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <[email protected]> |
On 8 May, 2011, at 23:56, Greg Ewing wrote: > Daniel Luis dos Santos wrote: > >> string = NSString.alloc().init() >> >> /Users/dlsa/code/cirrusstore/client/build/cirrusclient.app/Contents/Resources/menubaractions.py:44: UninitializedDeallocWarning: leaking an uninitialized object of type NSPlaceholderString >> string = NSString.alloc().init() > > Python strings get converted to NSStrings automatically where > needed, so is there some reason you can't use an empty Python > string instead? I don't know why Daniel wants to use an NSString, but there are reasons to use NSString instead of Python unicode strings, for example because NSString has a number of usefull methods with no easy native equivalent. Ronald > > -- > Greg > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Pyobjc-dev mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Pyobjc-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
smime.p7s
(application/pkcs7-signature, 2.2 KB) - not displayed