Re: [Pyobjc-dev] memory leak
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2011-05-12 12:07:02
|
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 > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |