Re: Call NSView's -drawRect method manually

2011-05-10 Thread Guillem Palou
You may bypass the message queue by calling [theView display] but be aware not to draw too many times. Guillem On 10/05/2011, at 18:59, Kyle Sluder wrote: > On Tue, May 10, 2011 at 9:45 AM, Nick wrote: >> But there is no way to call "drawRect" manually? Maybe to call it >> manually and then te

Re: Instantly delete a directory without recursion?

2010-10-04 Thread Guillem Palou
t. > Is it possible? > > Thanks. > > On Mon, Oct 4, 2010 at 11:18 AM, Guillem Palou > wrote: >> When removing directories, the OS should remove all the tree created in the >> filesystem. I think you cannot do anything else? >> Is it so critical? How many f

Re: Instantly delete a directory without recursion?

2010-10-04 Thread Guillem Palou
When removing directories, the OS should remove all the tree created in the filesystem. I think you cannot do anything else? Is it so critical? How many files do you have to delete? On Oct 4, 2010, at 10:12 AM, Oleg Krupnov wrote: > Let me make the question more clear: I am aware of functions li

Re: Core Graphics wants 10 petabytes of RAM

2010-09-07 Thread Guillem Palou
On Sep 7, 2010, at 2:07 PM, Thomas Davie wrote: > I'm having a problem with CoreGraphics periodically deciding it wants to > allocate an enormous amount of RAM, the code in question is simply trying to > create an NSImage from raw data: > >CGContextRef context = CGBitmapContextCreate(imgDa

Problem with Service and PasteBoards

2009-06-27 Thread Guillem Palou
Hi all, I have a problem with a nsservice provider. The problem is that I correctly call the service using NSServiceProvider without errors and the service executes perfectly. But at the time to return my Data Type, it fails. I declared a custom data type named @"dictionaryPBoardType" but I

Re: Service not working

2009-06-23 Thread Guillem Palou
Hi all, I've just solved the problem! Thanks for the answers! On Jun 22, 2009, at 11:37 PM, Guillem Palou wrote: Hi folks, I'm trying to develop an application that acts as a service, but I cannot make it appear on the Services Menu and I cannot execute it on the applications

Service not working

2009-06-22 Thread Guillem Palou
Hi folks, I'm trying to develop an application that acts as a service, but I cannot make it appear on the Services Menu and I cannot execute it on the applications. I tried to search for similar posts with no success and looked at the documentation at least 4 times with no luck either. Se

Re: Help with this code

2008-03-22 Thread Guillem Palou
wrote: > > On 22 Mar '08, at 12:19 PM, Guillem Palou wrote: > > > It crashes when I call the setMovie method of the QTMovieView > > Object. The > > code seems to work with movieWithFile instead of > > movieWithQuicktimeMovie. > > > Use the debugger,

Help with this code

2008-03-22 Thread Guillem Palou
Hi all, anyone knows what's wrong with this code? -(void)loadStateChanged:(NSNotification *) notification { QTMovie *movie = [notification object]; long loadState = [[movie attributeForKey:QTMovieLoadStateAttribute] longValue]; if (loadState >= 2) [clipMovieView setMovi