Aspect ratio constraints multiplying

2016-01-19 Thread Rick Mann
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

[no subject]

2016-01-19 Thread Aandi Inston
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

Re:

2016-01-19 Thread Jake Petroules
> 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

Re:

2016-01-19 Thread Aandi Inston
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

Re:

2016-01-19 Thread Jens Alfke
> 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

Re: Screen <--> View Coordinate system conversion

2016-01-19 Thread Graham Cox
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

Re: Screen <--> View Coordinate system conversion

2016-01-19 Thread Ken Thomases
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