Le 15 oct. 2013 à 18:50, Jens Alfke <j...@mooseyard.com> a écrit :

> 
> On Oct 15, 2013, at 9:10 AM, Bill Cheeseman <wjcheese...@gmail.com> wrote:
> 
>> I can't talk about the "why?" part of my question in public because it's an 
>> issue unique to Mavericks. Let me just say that a certain common category of 
>> applications is going to want to know how to do this in Mavericks, for good 
>> and sufficient reason.
> 
> OK … sounds like you should take the question to Apple’s developer forums, 
> then, where you can talk about 10.9.
> 
>> What I find interesting is that NSWorkspace's -frontmostApplication and 
>> -menuBarOwningApplication and NSRunningApplication's currentApplication 
>> return different results in different circumstances.  … My guess is that the 
>> fact that one of them returns Xcode at launch is a bug that nobody has 
>> noticed, and I therefore shouldn't rely on it anyway
> 
> I agree, it’s almost certainly a bug.
> 
>> So I need a reliable way to find out. I know there is a way
> 
> There’s definitely a way. As an existence proof, the first thing I thought of 
> when you asked is the infamous behavior of iTunes — if you attach a debugger 
> to iTunes and then try to play any DRM-protected content, iTunes will 
> intentionally crash. It’s a way to deter people from either extracting the 
> decoded media data, or reverse-engineering the DRM. (Probably not a very 
> foolproof way...)


Nope.
The crash is not cause by iTunes.
iTunes tells the kernel it should not be attached, and the kernel kills it if 
somebody try to do it. iTunes never knows if somebody try to attach debug it.

-- Jean-Daniel





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to