Unsigned Modulo

2015-08-12 Thread Gerriet M. Denkmann
OS X 10.10.4, Xcode 7 beta 3 This code produces some (for me) unexpected results: NSUInteger unsignedSize = 3; NSInteger signedSize = 3; for ( NSInteger rawValue = -6; rawValue < 5; rawValue++ ) { NSInteger modValueU = rawValue; NSInteger modValueS = rawValue; modValueU %

Re: Unsigned Modulo

2015-08-12 Thread Bavarious
> On Aug 12, 2015, at 07:12, Gerriet M. Denkmann wrote: > > OS X 10.10.4, Xcode 7 beta 3 > > This code produces some (for me) unexpected results: > > NSUInteger unsignedSize = 3; > NSInteger signedSize = 3; > > for ( NSInteger rawValue = -6; rawValue < 5; rawValue++ ) > { > NSInteger mo

Re: Unsigned Modulo

2015-08-12 Thread Bavarious
> On Aug 12, 2015, at 07:12, Gerriet M. Denkmann wrote: > > OS X 10.10.4, Xcode 7 beta 3 > > This code produces some (for me) unexpected results: > > NSUInteger unsignedSize = 3; > NSInteger signedSize = 3; > > for ( NSInteger rawValue = -6; rawValue < 5; rawValue++ ) > { > NSInteger mo

Re: Unsigned Modulo

2015-08-12 Thread Scott Ribe
On Aug 12, 2015, at 4:12 AM, Gerriet M. Denkmann wrote: > > This code produces some (for me) unexpected results: % is remainder NOT modulus. Unfortunately early editions of K&R had it misnamed, and that has stuck despite that error having been corrected well over 20 years ago. -- Scott Ribe

Re: Unsigned Modulo

2015-08-12 Thread Jens Alfke
> On Aug 12, 2015, at 6:06 AM, Scott Ribe wrote: > > % is remainder NOT modulus. There was a long (too long…) thread about that last year, either on this list or xcode-users or objc-language, which pretty much beat the issue into the ground. If anyone feels strongly about this topic they sho

Draggable area of NSPopover

2015-08-12 Thread thatsanicehatyouhave
Hi, I’ve implemented an NSPopover. Currently part of the view is empty, and part contains a graph (of class CPTGraphHostingView, an NSView subclass from Core Plot). When the popover is attached, the entire view is draggable, which means I can’t interact with the plot as the mouse events are bei

Sharing Prefs between Main and Helper App

2015-08-12 Thread Alex Kac
I have an OS X app signed with Developer ID. It is NOT sandboxed (I suppose I could, but I'd prefer to stay away from that for a bit longer). I need my helper and main app to share prefs. There must be a simple way to do this for now. I know that initWithSuite works with App Groups and sandbox…but

Re: Sharing Prefs between Main and Helper App

2015-08-12 Thread Alex Kac
Maybe its just Xcode and El Cap…I thought it was working too, but just now it wasn't. I did a clean and now it seems to be working again… On Wed, Aug 12, 2015 at 4:58 PM, Sean McBride wrote: > On Wed, 12 Aug 2015 15:50:35 -0600, Alex Kac said: > >>I have an OS X app signed with Developer ID. It i

Mavericks vs Yosemite line spacing

2015-08-12 Thread Trygve Inda
I have an NSTextField that is static and has multiple lines. Because of the different font used in Yosemite, the line spacing is thicker and when running on Yosemite, it requires more vertical space. Is there a way to align the text to the bottom of the content box, rather than the top? Horizontal

Re: Request iOS setting to disable ALL UI animation.

2015-08-12 Thread Alex Zavatone
Yeah, I'd love it on the Mac OS too. All this "animated everything" approach makes for an annoyingly distracting UI. Motion acts to pull the focus of our attention on the thing that is suddenly moving and away from wherever our attention is. I don't want my attention pulled away from the tas

Initialisation pattern

2015-08-12 Thread André Francisco
Hi all, I've been reading about object initialisation in Objective-c, as well as the recent additions of NS_UNAVAILABLE and NS_DESIGNATED_INITIALIZER. It's been confusing what the correct approach would be, mostly due to limitations imposed by the compiler. My main goal is obviously to ensure pr

Re: Initialisation pattern

2015-08-12 Thread Jens Alfke
> On Aug 12, 2015, at 8:07 PM, André Francisco > wrote: > > I've been reading about object initialisation in Objective-c, as well as the > recent additions of NS_UNAVAILABLE and NS_DESIGNATED_INITIALIZER. It's been > confusing what the correct approach would be, mostly due to limitations > i

RE: Initialisation pattern

2015-08-12 Thread André Francisco
I've read that too :) still, the problem sticks. I'm writing a framework, not an app, so it's important that callers initialise objects properly. And I wish I was using swift, honestly. Subject: Re: Initialisation pattern From: j...@mooseyard.com Date: Wed, 12 Aug 2015 20:22:36 -0700 CC: cocoa-d

Another Xcode update, another failure to build.

2015-08-12 Thread Graham Cox
Hi all, OK, so I updated Xcode to 6.4,and one of my builds is now failing.This seems to happen on every update. I usually manage to stumble around and fix it, but this time it’s not yielding. My app includes an embedded framework. This framework is built within the same workspace as the app, b