Re: re-ordering the layers of NSView's subviews

2010-03-23 Thread Dave Carpeneto
Graham Cox wrote: On 24/03/2010, at 11:30 AM, Dave Carpeneto wrote: Hi all - I've got the following situation: * A 'parent' NSView, which in turn has a number of subviews * These subviews have been added via the [NSView addSubview:newView positioned:NSWindowAbove relativ

re-ordering the layers of NSView's subviews

2010-03-23 Thread Dave Carpeneto
Hi all - I've got the following situation: * A 'parent' NSView, which in turn has a number of subviews * These subviews have been added via the [NSView addSubview:newView positioned:NSWindowAbove relativeTo:nil] method (so each time a user adds a subview it's @ the top of the viewing list) *

Re: does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?

2010-02-05 Thread Dave Carpeneto
Nick Zitzmann wrote: On Feb 5, 2010, at 11:34 AM, Dave Carpeneto wrote: ... do I need to follow this advice if I enable garbage collection ? I would have thought that this was not needed, but the 'has to be' wording above kinda worries me. <http://developer.apple.co

does result of LSSharedFileListInsertItemURL() need to be released on return if GC is enabled ?

2010-02-05 Thread Dave Carpeneto
Hi all - the LaunchServices/LSSharedFileList.h file states: /* * LSSharedFileListInsertItemURL() ... * Result: *Reference to new item. Has to be released with CFRelease when the *item is not needed anymore. * ... do I need to follow this advice if I enable garbage collection ? I woul

Re: keyCode translation for various keyboards

2010-02-02 Thread Dave Carpeneto
Dave Carpeneto wrote: Hello list folk - I'm trying to print out strings representing various keyDown events I receive. Using OS 10.6.2. ... So far the two approaches I've seen are as follows: ... Approach #2: Get what you can via UCKeyTranslate, and then 'fill in the blanks

keyCode translation for various keyboards

2010-02-02 Thread Dave Carpeneto
Hello list folk - I'm trying to print out strings representing various keyDown events I receive. Using OS 10.6.2. It looks as though this was possible back in the classic days ( http://developer.apple.com/legacy/mac/library/documentation/mac/Toolbox/Toolbox-78.html ), however obviously that do