Re: Limiting app installation

2016-09-05 Thread Greg Weston
> Does Apple allow a developer to limit the number of devices on which an app > can run? I have an app that requires you to pay more to install it on more > than one iPhone and two iPads. It should go without saying these are all on > the same Apple ID. > > I thought Apple didn't allow this.

Re: Limiting app installation

2016-09-05 Thread David Brittain
A consumable in-app purchase could be used for this. They are not restored to other devices. However if the user deleted the app and reinstalled it then the purchase would be lost unless you tracked it via some form of online account. On Monday, September 5, 2016, Rick Mann

Re: Window Opened Notification?

2016-09-05 Thread Andy Lee
Dave, can you clarify whether you want is: 1. a notification when the frontmost window changes, or 2. a notification when some application opens a new window? If #1, observing these NSWorkspace properties looks like the way to go. If #2, bear in mind that applications can open windows that

Re: Window Opened Notification?

2016-09-05 Thread dangerwillrobinsondanger
The two key properties in NSWorkspace ARE KVO observable. Reading the docs was easy ;) frontmostApplication And menuBarOwningApplication Sent from my iPhone > On Sep 6, 2016, at 8:36 AM, Alex Zavatone wrote: > > There are examples online for making NSArray observable if these

Re: Window Opened Notification?

2016-09-05 Thread Alex Zavatone
There are examples online for making NSArray observable if these are array structures. If you try this path, try it with a simple case where you make an NSArray and then change it. Sent from my iPhone > On Sep 5, 2016, at 4:25 PM, dangerwillrobinsondan...@gmail.com wrote: > > Not sure if

Re: Limiting app installation

2016-09-05 Thread dangerwillrobinsondanger
The developer forums are also a good place. Sent from my iPhone > On Sep 6, 2016, at 6:28 AM, M Pulis wrote: > > Have you even read the App Store guidelines yet? > > And Apple has a list of lists... try that. > > Finding you a list is still not a cocoa issue. > > Gary >

Re: Limiting app installation

2016-09-05 Thread M Pulis
Have you even read the App Store guidelines yet? And Apple has a list of lists... try that. Finding you a list is still not a cocoa issue. Gary On Sep 5, 2016, at 2:17 PM, Rick Mann wrote: Fine, can you suggest a better list? On Sep 5, 2016, at 14:08 , M Pulis wrote:

Re: Window Opened Notification?

2016-09-05 Thread dangerwillrobinsondanger
Not sure if it's KVO observable but NSWorkspace might be worth looking into as well as NSRunningApplication Sent from my iPhone On Sep 6, 2016, at 3:55 AM, Dave wrote: >> Would it be possible to observe which window becomes the front window and >> then send a

Re: Limiting app installation

2016-09-05 Thread Rick Mann
Fine, can you suggest a better list? > On Sep 5, 2016, at 14:08 , M Pulis wrote: > > If it isn't listed in the app store guidelines, either go for it or ask Apple > directly (perhaps a different mailing list) as this off-topic (not a cocoa > issue but a distribution

Re: Limiting app installation

2016-09-05 Thread M Pulis
If it isn't listed in the app store guidelines, either go for it or ask Apple directly (perhaps a different mailing list) as this off- topic (not a cocoa issue but a distribution issue). Gary On Sep 5, 2016, at 1:35 PM, Rick Mann wrote: Yeah, I know one has to roll their own. I'm asking if

Re: Limiting app installation

2016-09-05 Thread Quincey Morris
On Sep 5, 2016, at 13:35 , Rick Mann wrote: > > I'm asking if it's allowed by Apple. I think your restriction falls foul of: > 2.4.5 Apps distributed via the Mac App Store … > > (vi) They may not present a license screen at launch, require license keys, > or implement

Re: Limiting app installation

2016-09-05 Thread Rick Mann
Yeah, I know one has to roll their own. I'm asking if it's allowed by Apple. > On Sep 5, 2016, at 13:34 , M Pulis wrote: > > My bet would be "no" as that would already be part of submitting an app to > the store. > > You could prepare a business case to request this from

Re: Limiting app installation

2016-09-05 Thread M Pulis
My bet would be "no" as that would already be part of submitting an app to the store. You could prepare a business case to request this from Apple, but I'd suspect you'll need to roll your own code, and that won't be easy if not impossible without Apple's support. Perhaps Enterprise or

Re: How to silently use Proxy authentication credentials from Keychain, like Safari, Mail, etc.

2016-09-05 Thread Jens Alfke
> On Sep 5, 2016, at 6:51 AM, Motti Shneor wrote: > > 1. Why don’t Safari, Mail, Photos, and other standard apps trigger such > dialog when they clearly use proxy settings (including credentials) to go to > the internet? Is this behavior acceptable, and how is it done?

Re: Window Opened Notification?

2016-09-05 Thread Dave
> Would it be possible to observe which window becomes the front window and > then send a notification? > That’s what I am trying to find out…… Cheers Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Limiting app installation

2016-09-05 Thread Rick Mann
Does Apple allow a developer to limit the number of devices on which an app can run? I have an app that requires you to pay more to install it on more than one iPhone and two iPads. It should go without saying these are all on the same Apple ID. I thought Apple didn't allow this. But maybe

Re: Window Opened Notification?

2016-09-05 Thread Dave
> On 5 Sep 2016, at 18:27, dangerwillrobinsondan...@gmail.com wrote: > > Not really. > You could use CGWindowList but you'll be polling. I was wondering if it would be possible to make the Window list Key-Value observable? I’m Trying to avoid running a timer and polling the Window list.

Window Opened Notification?

2016-09-05 Thread Dave
Hi All, Is there any way other that using Accessibility that you can tell when a window is opened is any application? Something like a running app notification? If it is not possible using Cocoa? Is there any way of doing this via the Window Server? All the Best Dave

How to silently use Proxy authentication credentials from Keychain, like Safari, Mail, etc.

2016-09-05 Thread Motti Shneor
Hello everyone. We use C++ boost asyncio for cross-platform networking. Hence, on Mac OS-X, we can’t use higher-level APIs (such as NSURLSession). We use our own proprietary binary protocol, but we need to pass it sometimes through HTTP Proxy on client sites. We use the “HTTP Connect” command

Re: Running apps compiled for newer OS X versions on older versions (rant)

2016-09-05 Thread Alastair Houghton
On 5 Sep 2016, at 13:48, Mark Allan wrote: > > It's probably also worth noting that you *can* compile for 10.6 using the > tools on 10.11 by adjusting the deployment target. This is *usually* but not always true. There are sometimes backwards compatibility problems that

Re: Running apps compiled for newer OS X versions on older versions (rant)

2016-09-05 Thread Mark Allan
> On 22 Aug 2016, at 2:27 pm, Andreas Falkenhahn wrote: > > On 22.08.2016 at 13:34 Alastair Houghton wrote: > > >>> On 22 Aug 2016, at 12:15, Andreas Falkenhahn wrote: >>> Out of curiosity, I've just run a little test and compiled my app on the

Re: Init in Swift

2016-09-05 Thread Quincey Morris
On Sep 4, 2016, at 22:50 , Gerriet M. Denkmann wrote: > > I really want “onlyKnownBySubclass” to be a constant (i.e. let instead of var) There’s an easy way if you can declare both classes in the same file. Then, you can just declare the instance variable like this: >