Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Daiwei Li
Hey Ken, Thanks for your detailed response. It does. Mission Control is part of the management of the desktop environment. The concept of focus doesn't apply to Mission Control. It's at a meta level conceptually above that. It's a means by which a different application can be made active,

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Daiwei Li
Thanks, Kyle. I've filed a radar as well. Could you let me know if you get a response from Apple? On Fri, Oct 12, 2012 at 9:07 AM, Kyle Sluder k...@ksluder.com wrote: On Oct 12, 2012, at 3:12 AM, Ken Thomases k...@codeweavers.com wrote: This is a problem for me because I don't receive

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Sean McBride
On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said: My scientific cocoa app (10.6-10.8) records acquired data from devices and store them in human-readable UTF8 text files that have specific extensions (different from .txt). I have two questions related to file extensions, default application,

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Kyle Sluder
On Oct 21, 2012, at 11:05 PM, Daiwei Li daiwe...@gmail.com wrote: You might try a Quartz event tap at kCGSessionEventTap. I suspect that -addGlobalMonitorForEventsMatchingMask:... is equivalent to kCGAnnotatedSessionEventTap, and maybe that's the wrong place for Mission Control. (Although

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Mike Abdullah
On 22 Oct 2012, at 16:54, Sean McBride wrote: On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said: My scientific cocoa app (10.6-10.8) records acquired data from devices and store them in human-readable UTF8 text files that have specific extensions (different from .txt). I have two

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Jean Suisse
Thank you very much for this very clear explanation. I will look for the APIS to perform #1 and #2. Best regards, Jean On 18 oct. 2012, at 20:29, Seth Willits wrote: On Oct 18, 2012, at 4:04 AM, Jean Suisse wrote: Thank you for your reply. I am not familiar with the topic, but if I

Re: Associate icon with file ext. / quick look

2012-10-22 Thread Jean Suisse
Thank you for your reply. I will try that. Jean On 22 oct. 2012, at 18:21, Mike Abdullah wrote: On 22 Oct 2012, at 16:54, Sean McBride wrote: On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said: My scientific cocoa app (10.6-10.8) records acquired data from devices and store them in

Re: Parsing XML Files Consisting of a Sequence of Top Level Elements

2012-10-22 Thread koko
/* Called to parse an element. We make a selector from the element name and then if we respond to selector it is called from here. Selectors we respond to have an attribute dictionary

Re: Parsing XML Files Consisting of a Sequence of Top Level Elements

2012-10-22 Thread Thomas Wetmore
Thanks for the responses. In the past I have always used NSXMLParser to take control of the structures built during parsing. However, for the past couple years I have used the DOM approach with NSXMLNode and its descendants. After some experimentation with very large XML files I have found

NSSearchField set Predicate Binding format dynamically

2012-10-22 Thread Heizer, Charles
Hello, I would like to set NSSearchField predicate binding format dynamically, but I'm not sure how. I tried to create a property called NSPredicate *aFilterPredicate; and set it's format and then tried to set the predicate format in Interface Builder to self. aFilterPredicate but it won't

Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
Dear List, I have an old transparent NSPanel, which shape is only defined by the painted portion of the views it contains. The NSPanel has the following attributes set: ExcludedFromWindowsMenu:NO BackgroundColor: [NSColor clearColor] AlphaValue:1.0 HasShadow:YES useOptimizedDrawing:YES

Re: Clear NSPanel View Shadow

2012-10-22 Thread Wim Lewis
On 22 Oct 2012, at 12:07 PM, Jean Suisse wrote: The issue: If the NSPanel opens with theView visible, when hiding it, theView's shadow remains. If the NSPanel opens with theView hidden, when displaying theView, theView doesn't get a shadow. It seems that the shadow for the panel is

Re: Clear NSPanel View Shadow

2012-10-22 Thread Ken Thomases
On Oct 22, 2012, at 2:07 PM, Jean Suisse wrote: The issue: If the NSPanel opens with theView visible, when hiding it, theView's shadow remains. If the NSPanel opens with theView hidden, when displaying theView, theView doesn't get a shadow. It seems that the shadow for the panel is

Importance of 'keys' and other options when creating bookmarks with NSURL?

2012-10-22 Thread Sean McBride
Hi all, I have recently been replacing all my Alias Manager use with NSURL bookmarks. One thing that has surprised and confused me is the 'keys' parameter to bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:. The docs say only An array of names of URL resource

Re: Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
Thank you very much for your reply. Indeed, calling invalidateShadow did the trick. Now I need to find a way to be notified when [[view animator] dosomething] completes, otherwise the shadow takes the shape of the window before the transformation. Cheers, Jean On 22 oct. 2012, at 22:06, Ken

Re: Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
On 22 oct. 2012, at 22:32, Jean Suisse jean.li...@gmail.com wrote: Thank you very much for your reply. Indeed, calling invalidateShadow did the trick. Now I need to find a way to be notified when [[view animator] dosomething] completes, otherwise the shadow takes the shape of the window

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Lee Ann Rucker
On Oct 22, 2012, at 9:09 AM, Kyle Sluder wrote: On Oct 21, 2012, at 11:05 PM, Daiwei Li daiwe...@gmail.com wrote: You might try a Quartz event tap at kCGSessionEventTap. I suspect that -addGlobalMonitorForEventsMatchingMask:... is equivalent to kCGAnnotatedSessionEventTap, and maybe

Re: Importance of 'keys' and other options when creating bookmarks with NSURL?

2012-10-22 Thread Mike Abdullah
On 22 Oct 2012, at 21:23, Sean McBride s...@rogue-research.com wrote: Hi all, I have recently been replacing all my Alias Manager use with NSURL bookmarks. One thing that has surprised and confused me is the 'keys' parameter to

Re: Importance of 'keys' and other options when creating bookmarks with NSURL?

2012-10-22 Thread Shane Stanley
On 23/10/2012, at 7:23 AM, Sean McBride s...@rogue-research.com wrote: And how about NSURLBookmarkCreationOptions? There's NSURLBookmarkCreationMinimalBookmark and NSURLBookmarkCreationSuitableForBookmarkFile. Are they mutually exclusive? I found them so. -- Shane Stanley

Subject: Re: Scene Kit

2012-10-22 Thread Thomas Cunningham
Thank you for your replies Daniel. I'm going back and re-read the docs, I would agree that I'm misunderstanding the hierarchy of the API and the object messaging. -- Thomas C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post