Re: [Moderator] Sandboxing die.die.die

2012-09-04 Thread Scott Anguish
Correction, a typo, it is NOT appropriate for this list. On Sep 1, 2012, at 9:42 AM, Alex Zavatone z...@mac.com wrote: On Sep 1, 2012, at 12:11 AM, Scott Anguish wrote: This has gone far enough. The thread is closed. It is appropriate for this list. It is appropriate for this list.

[Moderator] Sandboxing die.die.die

2012-09-04 Thread Scott Anguish
Seems I made a typo that has confused one or two people This discussion is NOT appropriate for this list. So please take it elsewhere thanks. Scott On Sep 1, 2012, at 12:11 AM, Scott Anguish sc...@cocoadoc.com wrote: This has gone far enough. The thread is closed. It is appropriate for

Figuring out which NSView to send an event to

2012-09-04 Thread Akhil Jindal
Hi, I’m trying to use the Wacom’s Feel Multi-Touch API to capture touch events in my app. I have their cintiq hardware connected to my iMac. The problem I’m facing is that it gives me an event with the screen coordinates on which it happened, and I’m left to figure out on my own, as to which

Re: NSDocument package saving invalidates wrapper? Options?

2012-09-04 Thread Mike Abdullah
On 2 Sep 2012, at 21:29, Markus Spoettl ms_li...@shiftoption.com wrote: On 9/2/12 10:12 PM, Mike Abdullah wrote: OK, thanks a lot for that tip. Even though I overwrote -setFileURL: for some other task it never occurred to me to look if that's a better place. Feels very natural actually. I

Re: Figuring out which NSView to send an event to

2012-09-04 Thread Graham Cox
On 04/09/2012, at 9:28 PM, Akhil Jindal akhi...@gmail.com wrote: Using NSWindowList, and iterating over them, I find the window to which the event should belong. Now I have to find the NSView within the window. Ask the window for its firstResponder. That should be the object that events get

Re: Figuring out which NSView to send an event to

2012-09-04 Thread Ken Thomases
On Sep 4, 2012, at 6:28 AM, Akhil Jindal wrote: I’m trying to use the Wacom’s Feel Multi-Touch API to capture touch events in my app. I have their cintiq hardware connected to my iMac. Using NSWindowList, and iterating over them, I find the window to which the event should belong. Don't do

Re: Figuring out which NSView to send an event to

2012-09-04 Thread Ken Thomases
On Sep 4, 2012, at 8:20 AM, Graham Cox wrote: On 04/09/2012, at 9:28 PM, Akhil Jindal akhi...@gmail.com wrote: Using NSWindowList, and iterating over them, I find the window to which the event should belong. Now I have to find the NSView within the window. Ask the window for its

How to Identify a Phantom Write Operation

2012-09-04 Thread douglas welton
Hi All, I'm trying to get an app approved for the Mac App Store. The reviewer says that my app is writing to a certain user-selected file without the user's permission. I don't see any evidence of writing to this file, but my knowledge of the file system internals may be insufficient to help

Re: Figuring out which NSView to send an event to

2012-09-04 Thread Graham Cox
On 04/09/2012, at 11:41 PM, Ken Thomases k...@codeweavers.com wrote: Certainly, you don't expect a click outside of the main or key window, or on a button when a text field is the first responder, to only go to the first responder, do you? No, but do you expect to be able to use a tablet

Re: How to Identify a Phantom Write Operation

2012-09-04 Thread Graham Cox
On 05/09/2012, at 8:17 AM, douglas welton douglas_wel...@earthlink.net wrote: 2) I copy the selected file to the ~/Library/Caches folder within my sand box container (using NSFileManager's -movieItemAtURL: method). Well, that's not actually copying the file. Not sure if that makes a

Re: How to Identify a Phantom Write Operation

2012-09-04 Thread douglas welton
That's a typo on my part. I really do copy the file using NSFileManager's -copyItemAtURL: method. Sorry for the confusion. On Sep 4, 2012, at 6:47 PM, Graham Cox wrote: On 05/09/2012, at 8:17 AM, douglas welton douglas_wel...@earthlink.net wrote: 2) I copy the selected file to the

Sandboxing redux

2012-09-04 Thread Graham Cox
Just a follow up on the thread that shall not speak its name. Sandboxing makes integration of media files from other apps (e.g. iPhoto) somewhat difficult. By using temporary entitlements, these features can be made to work with iPhoto. However, I have just been informed that using such

Re: How to Identify a Phantom Write Operation

2012-09-04 Thread Todd Heberlein
On Sep 4, 2012, at 3:17 PM, douglas welton douglas_wel...@earthlink.net wrote: My question: Is there another way to check for writes to the user-selected source file? You can use Apple's BSM audit trails. It will show all attempted reads and writes and gobs of other things by your process.