Distinguishing home and commercial use

2015-07-24 Thread 2551
Friends, Platform: OSX Distribution: Outside of App Store Aim: I want to distinguish “ordinary users” of my app from “commercial users”, where the latter might be defined as anyone installing my app on 5 or 10 (pick a number) different macs. Rationale: I want to offer my app for free to

Re: Distinguishing home and commercial use

2015-07-24 Thread Maxthon Chan
You can leave a small self-contained program running until the current user session is terminated once your app is started on a machine and expose its usage through Bonjour. And then when the free version of your app is starting it scans bonjour for such services, and refuse to launch if the

Re: Distinguishing home and commercial use

2015-07-24 Thread 2551
On 24 Jul 2015, at 21:13, Bill Cheeseman wjcheese...@gmail.com wrote: I find that the most important and effective use of the honor system is with big companies.” My commercial users are more likely to be small independent s/w / IT consultants, or educational institutions (i.e sysadmins

Re: Distinguishing home and commercial use

2015-07-24 Thread Bill Cheeseman
I do something similar in the licensing of my Objective-C accessibility frameworks (at pfiddlesoft.com/frameworks). You can use my frameworks for free if you use them in an application that you distribute for free, but you must pay a one-time licensing fee if you charge for your application.

Re: Can I show different content in different screens? (screensaver)

2015-07-24 Thread Juanjo Conti
I was able to use this code, but only after init var screens = NSScreen.screens() as! [NSScreen] for screen in screens { if screen == window?.screen! { NSLog(MY SCREEN \(screen)) } } On Wed, Jul 22, 2015 at 5:09 PM, Dave

Re: OsX - HTTP resource load blocked

2015-07-24 Thread Marc Danguy
Thank you It’s work for my help file (not for Sparkle but it’s less important) I never search in iOS doc… Merci Marc Le 24 juil. 2015 à 01:31, Charles Srstka cocoa...@charlessoft.com a écrit : On Jul 23, 2015, at 4:57 PM, Jens Alfke j...@mooseyard.com wrote: On Jul 23, 2015, at

Re: Can I show different content in different screens? (screensaver)

2015-07-24 Thread Juanjo Conti
I wonder why the second line doesn't' compile var screens = NSScreen.screens() as! [NSScreen] find(screens, window?.screen!) On Fri, Jul 24, 2015 at 1:19 PM, Juanjo Conti jjco...@carouselapps.com wrote: I was able to use this code, but only after init var screens =

Re: Can I show different content in different screens? (screensaver)

2015-07-24 Thread Roland King
On 25 Jul 2015, at 01:13, Juanjo Conti jjco...@carouselapps.com wrote: I wonder why the second line doesn't' compile var screens = NSScreen.screens() as! [NSScreen] find(screens, window?.screen!) On Fri, Jul 24, 2015 at 1:19 PM, Juanjo Conti jjco...@carouselapps.com

Re: Can I show different content in different screens? (screensaver)

2015-07-24 Thread Quincey Morris
On Jul 24, 2015, at 19:43 , Greg Parker gpar...@apple.com wrote: Downside: you must specify the variable's type. Incidentally, is there any conceptual reason why the type can’t be inferred in this case? The syntax doesn’t seem any harder to decode than 'let … = … ? … : …’ is.

Re: Cocoa Error Domain code symbols in Swift

2015-07-24 Thread Michael David Crawford
There is a market opportunity for a service that indexes software tips by software version. This because when I google for Xcode 6 NSInfiniteLoop ... I mostly get hits for the NSInfiniteLoop from XCode 4. I often think of doing this myself but I have too many ideas, even when they are good

Re: Can I show different content in different screens? (screensaver)

2015-07-24 Thread Greg Parker
On Jul 24, 2015, at 7:19 PM, Roland King r...@rols.org wrote: if let screen = window?.screen { find(…) } else { // handle the lack of a screen gracefully } it’s longer, but it’s clearer and it says I’ve considered what semantically it means to have a nil screen. You

Cocoa Error Domain code symbols in Swift

2015-07-24 Thread Rick Mann
In my code, I catch NSErrors and inspect them in the debugger, and see codes like NSCocoaErrorDomain Code=516. How can I get the symbolic constant for that error, especially in Swift? The error headers in swift don't show the values, and it seems the objective-C headers have moved about a bit

Re: Cocoa Error Domain code symbols in Swift

2015-07-24 Thread Jens Alfke
On Jul 24, 2015, at 5:14 PM, Rick Mann rm...@latencyzero.com wrote: In my code, I catch NSErrors and inspect them in the debugger, and see codes like NSCocoaErrorDomain Code=516. How can I get the symbolic constant for that error, especially in Swift? The error headers in swift don't show

Re: Cocoa Error Domain code symbols in Swift

2015-07-24 Thread Rick Mann
On Jul 24, 2015, at 17:28 , Jens Alfke j...@mooseyard.com wrote: http://osstatus.com has been my BFF since I discovered it. I knew that existed, but searching for things like cocoa error didn't turn it up. BOOKMARKING AGAIN. -- Rick Mann rm...@latencyzero.com

Re: Can I show different content in different screens? (screensaver)

2015-07-24 Thread Quincey Morris
On Jul 24, 2015, at 19:19 , Roland King r...@rols.org wrote: let myVar = ( let ifNotOptional = something?.something else ) ? ifNotOptional.stringName : “No Name” but can’t find any syntax to do something like that Can’t you do something like: let myVar =