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 layer backed view and they didn't work or
flickered too bad.

Any pointers on where to look?

Thanks,

Jon.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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
- NSFileHandleReadCompletionNotification
 
It's been stumping me for a few days.
 
The sample app and source is at:
 
http://sessionsplus.com/TaskTester.zip
 
Thanks!
 
Jon.___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 instance.
 
 Since notification observers don't hold strong references to observers, 
 either, the garbage collector sees Tasker as garbage and collects it.
 
 You could fix this any number of ways; 
 
 - keep a reference to the Tasker instance as an iVar
 - keep a global set around of active taskers and have 'em remove themselves 
 when they are done
 - use CFRetain or the NSGarbageCollector API to tell the collector not to 
 collect the tasker before done.
 
 b.bum

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


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 done this exact thing on Win32, but not Cocoa so buyer beware).
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com