NSView exitFullScreenModeWithOptions results in dimmed menus in document based app

2010-11-22 Thread Jon Gilkison
When I call exitFullScreenModeWithOptions in a document based app, the menu items are permanently dimmed out. I've tried making everything I can think of firstResponder, but still dimmed out. I tried a couple of alternate full screen methods, to see if I could get around it, but I'm using a

Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Jon Gilkison
Below is a simple test application that launches a process and logs the output as it runs. It works as expected when the app is set to no garbage collection, but as soon as I turn on garbage collection, the following notifications stop working: - NSTaskDidTerminateNotification -

Re: Garbage Collection, Standard Out, NSTask

2010-11-16 Thread Jon Gilkison
That was it, though further up the chain. The object that created/owned the task was being GC'd away. Thanks Bill and Quincy! On Nov 16, 2010, at 12:53 PM, Bill Bumgarner wrote: The issue [I'd bet -- don't have time to dive deep] is that you don't have a strong reference to the Tasker

Re: Creating a radar sweep effect

2009-09-27 Thread Jon Gilkison
You can do this with a single accumulating bitmap. 1. Create a bitmap the size of your view filled with the background color 2. Fill the bitmap with the background color using an alpha = 1 / number of steps 3. Draw the radar onto the bitmap 4. Draw the bitmap in the view 5. Go to step 2 (I have