Re: What makes OS X generate a hang report?

2012-01-11 Thread Mark Woods
tion. > But I do have a suggestion (fix): have you tried loading your QuickTime movie > on an other thread, and then attaching it to your main thread ? (you have to > detach it first). > > Jean > > On 11 janv. 2012, at 21:56, Mark Woods wrote: > >> Does anyone

What makes OS X generate a hang report?

2012-01-11 Thread Mark Woods
Does anyone know the criteria OS X uses to determine an application has hung? The reason I ask is that I've seen lots of inconsistencies. For example, OS X will kill a process and show the log if it hangs for 5 seconds, other times less than 1 second (is this even counted as a hang?) and sometim

CFTimeZoneCreate crash when using NSLog

2010-01-24 Thread Mark Woods
One of my customers on OS X 10.5.8 is reporting a crash when my app uses the NSLog command. It seems like his computer is having difficulty timestamping the log, as can be seen from the relevant part of the crash log below: Thread 1 Crashed: 0 libSystem.B.dylib 0x068

Re: Suppressing Crash Reporter dialogs for a task

2009-09-23 Thread Mark Woods
Thanks Ken. The link you gave me was very helpful and the crash dialog no longer appears using the code provided. I've verified that it works on 10.5 and 10.6. Thanks to everyone who posted. Mark. On Sep 23, 2009, at 5:57 AM, Ken Thomases wrote: On Sep 22, 2009, at 2:27 PM, Alastair Hough

Re: Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Mark Woods
Easier said than done. It's QuickTime that's crashing. I'm calling canInitWithFile first and checking for errors with movieWithFile:error: but in certain instances it will still crash. On Sep 22, 2009, at 5:53 PM, Kyle Sluder wrote: On Tue, Sep 22, 2009 at 9:47 AM, Mark Wood

Suppressing Crash Reporter dialogs for a task

2009-09-22 Thread Mark Woods
I have an application that launches an NSTask and checks to see if it returned successfully. The task checks the validity of certain files and in some cases, the task could definitely crash if the data is corrupt - that is the whole purpose of launching a separate task. This is not a proble

Adjusting menu bar transparency

2009-05-09 Thread Mark Woods
I'm making an app to adjust the opacity of the menu bar in Leopard. I am aware of the environment variables you can set within the com.apple.WindowServer.plist file but I do not like this method for two reasons: 1) You must restart the computer 2) If something goes wrong, it can render the

NSButtonCell recessed toggling fails in 10.4

2009-02-27 Thread Mark Woods
I'm writing an application that uses the 10.4 Universal SDK for compatibility reasons. Looking in the NSButtonCell documentation, it states that recessed cells are supported in 10.4 and above. However, if I add one and set its mode to Push On Push Off, it doesn't toggle as expected. It just

Re: Folder watching

2009-02-10 Thread Mark Woods
Many thanks for your help. On Feb 10, 2009, at 6:22 PM, I. Savant wrote: On Tue, Feb 10, 2009 at 10:30 AM, Mark Woods wrote: So all that leaves is kqueue. Is that my only option? If FSEvents won't work (for compatibility reasons), then yes, KQueue is probably your best shot. G

Folder watching

2009-02-10 Thread Mark Woods
I'm creating an application that watches certain folders for new files, and then performs various tasks on these files. I'm developing it as a Foundation Tool that will run in the background. I'm having difficulties deciding how best to implement the folder watching code. I was really hopin