Re: NSScreen ID Unreliable

2012-10-10 Thread Gordon Apple
I¹m mostly using it for setting/retrieving/showing a capture region on the screen. If the user manually draws a capture region, I have to determine the relevant screen ID in order to know if the AVScreenCaptureInput object needs to be replaced with a new one. (You can only set it¹s capture screen

Re: Localising "dynamic" string resources in code

2012-10-10 Thread Gary L. Wade
A better approach when using NSLocalizedString and its variants is to always use a highly non-user-friendly string for the key that matches the definitive meaning behind the particular string. One benefit is that when you see that string in your UI, you know you don't have a translated string for

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Mike Abdullah
On 10 Oct 2012, at 17:57, Uli Kusterer wrote: > On Oct 10, 2012, at 6:39 PM, Mike Abdullah wrote: >> * NSPathControl is more aware of the sandbox, and doesn't try to fetch icons >> it doesn't have access to > > Not if NSPathControl runs out-of-process. The NSPathControl you create could > ju

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Uli Kusterer
On Oct 10, 2012, at 6:39 PM, Mike Abdullah wrote: > * NSPathControl is more aware of the sandbox, and doesn't try to fetch icons > it doesn't have access to Not if NSPathControl runs out-of-process. The NSPathControl you create could just be an IOSurface drawn into your process's window by anot

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Mike Abdullah
On 10 Oct 2012, at 15:04, "Sean McBride" wrote: > On Wed, 10 Oct 2012 09:46:15 +0100, Mike Abdullah said: > Sandboxed apps can resolve aliases and follow symlinks, but unless the destination is within their sandbox already they do not gain access to it, sadly. I recommend filing

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Sean McBride
On Wed, 10 Oct 2012 09:46:15 +0100, Mike Abdullah said: >>> Sandboxed apps can resolve aliases and follow symlinks, but unless the >>> destination is within their sandbox already they do not gain access to >>> it, sadly. I recommend filing a radar requesting this. >> >> I will. >> >> Do you agre

Re: Localising "dynamic" string resources in code

2012-10-10 Thread Luc Van Bogaert
On 10 Oct 2012, at 11:45, Ken Thomases wrote: > On Oct 10, 2012, at 4:25 AM, Luc Van Bogaert wrote: > >> I'm in the process of localising my application, and I'm having a problem >> getting some of the string resources in my code localised. In several places >> in my code, I'm using this kind

Re: Localising "dynamic" string resources in code

2012-10-10 Thread Ken Thomases
On Oct 10, 2012, at 4:25 AM, Luc Van Bogaert wrote: > I'm in the process of localising my application, and I'm having a problem > getting some of the string resources in my code localised. In several places > in my code, I'm using this kind of structure to implement "dynamic" menu > items: > >

Localising "dynamic" string resources in code

2012-10-10 Thread Luc Van Bogaert
Hi, I'm in the process of localising my application, and I'm having a problem getting some of the string resources in my code localised. In several places in my code, I'm using this kind of structure to implement "dynamic" menu items: if (action == @selector(toggleInspectorPanel:)) {

Re: dropping alias file on NSPathControl with App Sandbox

2012-10-10 Thread Mike Abdullah
On 10 Oct 2012, at 00:16, Sean McBride wrote: > On Sat, 6 Oct 2012 10:59:46 +0100, Mike Abdullah said: > >> Sandboxed apps can resolve aliases and follow symlinks, but unless the >> destination is within their sandbox already they do not gain access to >> it, sadly. I recommend filing a radar r