kvo

2011-06-13 Thread Ariel Feinerman
Hi, how to cancel operation which is performing? I think it is not safe: - (void) beginOperation { [_operation cancel]; _operation = [[Operation alloc] initWithURL: [NSURL URLWithString: @" http://rss.cnn.com/rss/cnn_topstories.xml";]]; _queue = [NSOperationQueue new]; [_operation addObse

Re: Is it possible to create a Finder-like icon in Dock?

2011-06-13 Thread Ron Hunsinger
On Jun 12, 2011, at 5:22 PM, Nick wrote: > Would it be possible to create a similar icon? Is it hardcoded in Dock, or > by manipulating with Dock's plist or some other way I could make an another > application behave like this? Finder and Trash are hardcoded into the Dock. If you examine ~/Libra

Re: Memory Management for an Array

2011-06-13 Thread Alexander Spohr
The shown memory handling is wrong. Am 13.06.2011 um 16:31 schrieb Bing Li: > + (NSString *)read:(NSString *)xml Path:(NSString *)xPath This methods signature should be read:path: with a lowercase p. > { >// The Instruments indicated the following line got memory leaks. > The amount of

Re: Memory Management for an Array

2011-06-13 Thread Bing Li
Dear Scott and all, I checked the system carefully. I noticed that I made a mistake on an object design. Its dealloc method was not designed well. Now no memory leaks exist. I appreciate so much for your help! Best regards, Bing Li On Mon, Jun 13, 2011 at 10:36 PM, Scott Ribe wrote: > On Jun 1

Re: Memory Management for an Array

2011-06-13 Thread Tony Romano
Leaks is telling the line that allocated the memory. The problem maybe what you are doing with the object allocated some where else in the code. I would suggest you use heapshot to figure out how much your application is growing by calling this function and looking at the code paths that could aff

Re: Memory Management for an Array

2011-06-13 Thread David Duncan
On Jun 13, 2011, at 7:31 AM, Bing Li wrote: > I think the memory management in my system is much better. I just used > Instruments to check potential leaks. To my surprise, I was still notified > that the following method got memory-leaking although the amount was small. > Could you please tell me

Animating a NSProgressIndicator

2011-06-13 Thread mailist
I've got a sample project demonstrating the problem at: https://files.me.com/ericgorr/vboa2p (if for some reason you cannot access it, let me know and I'll send it direct...it's only ~39k.) If you run the application, pressing the Start Code Loop or Start Draw Loop buttons, will require a fo

Re: Animating a NSProgressIndicator

2011-06-13 Thread Fritz Anderson
On 13 Jun 2011, at 9:48 AM, mail...@ericgorr.net wrote: > But, the primary thing I would like to know is whether or not I can make the > progress bar animate while the while(1){} loop is running inside of the > drawRect: method of MyClass without using an additional window. While I wrote > the

Re: Memory Management for an Array

2011-06-13 Thread Bing Li
Dear Tito, Scott and all, Thanks so much for your replies! I think the memory management in my system is much better. I just used Instruments to check potential leaks. To my surprise, I was still notified that the following method got memory-leaking although the amount was small. Could you please