I was laying out a number keypad of UIButtons. I gave a button a 1:1 aspect
ratio constraint, and set up a few other constraints. Then I option-dragged it.
The aspect ratio constraint was copied with it, and I created additional
external constraints (e.g. next to the previous button, same height
I have this handy routine:
int MacNSOpenFileWithDefaultApp ( char *path )
{
NSString *nsstring = [NSString stringWithUTF8String: path] ;
BOOL ok = [[NSWorkspace sharedWorkspace] openFile:nsstring] ;
return ok ;
}
Suppose we pass a folder name. The intention is to open the folder in the
Fi
> On Jan 19, 2016, at 7:44 AM, Aandi Inston wrote:
>
> I have this handy routine:
>
> int MacNSOpenFileWithDefaultApp ( char *path )
> {
>NSString *nsstring = [NSString stringWithUTF8String: path] ;
>BOOL ok = [[NSWorkspace sharedWorkspace] openFile:nsstring] ;
> return ok ;
> }
>
> Su
Thank you. The problem turned out to be a foolish mistake in the caller,
but this has alerted me to the need for a systematic check of the
conversion between BOOL and C integers.
On 19 January 2016 at 17:15, Jake Petroules
wrote:
Note that BOOL is a typedef for signed char in the legacy (32-bit
> On Jan 19, 2016, at 10:11 AM, Aandi Inston wrote:
>
> Thank you. The problem turned out to be a foolish mistake in the caller,
> but this has alerted me to the need for a systematic check of the
> conversion between BOOL and C integers.
The only thing likely to cause problems is if values oth
OK, I got this working - thanks for all the help.
There is a follow-up issue though. On 10.11 (others not yet tried), the drawing
only appears on the main screen. When I make my transparent window, I size it
to the union of all NSScreens, thinking that would cover the entire desktop no
matter h
On Jan 19, 2016, at 6:30 PM, Graham Cox wrote:
>
> OK, I got this working - thanks for all the help.
>
> There is a follow-up issue though. On 10.11 (others not yet tried), the
> drawing only appears on the main screen. When I make my transparent window, I
> size it to the union of all NSScree