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 applicatio

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 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 I would ho

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 >> u

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 st

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 that

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 ta

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 Opaque:NO

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

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

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 prope

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 Th

Re: Clear NSPanel & View Shadow

2012-10-22 Thread Jean Suisse
On 22 oct. 2012, at 22:32, Jean Suisse 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 before the transfo

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 wrote: > >> >> You might try a Quartz event tap at kCGSessionEventTap. I suspect that >>> -addGlobalMonitorForEventsMatchingMask:... is equivalent to >>> kCGAnnotatedSessionEventTap, and maybe that's the

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 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 > bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:err

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 wrote: > And how about NSURLBookmarkCreationOptions? There's > NSURLBookmarkCreationMinimalBookmark and > NSURLBookmarkCreationSuitableForBookmarkFile. Are they mutually exclusive? I found them so. -- Shane Stanley 'AppleScriptObjC Explored'

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