Re: NSOperationQueue and for-loop

2012-10-03 Thread Koen van der Drift
On Tue, Oct 2, 2012 at 10:30 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: Thanks, I'll Google for some examples. For now, I still get an EXC_BAD_ACCESS (code=13, address = 0x0) error in one of the threads after several iterations. Some more digging reveals:*** -[MyObject

Re: NSOperationQueue and for-loop

2012-10-03 Thread Mike Abdullah
On 3 Oct 2012, at 13:37, Koen van der Drift koenvanderdr...@gmail.com wrote: On Tue, Oct 2, 2012 at 10:30 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: Thanks, I'll Google for some examples. For now, I still get an EXC_BAD_ACCESS (code=13, address = 0x0) error in one of the

Re: NSOperationQueue and for-loop

2012-10-03 Thread Koen van der Drift
On Wed, Oct 3, 2012 at 8:48 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Regardless, your posted code is going to blow up sooner or later. NSMutableArray is not safe to modify from more than a single thread at a time. If two of your worker blocks happen to finish at the same time and call

Re: NSOperationQueue and for-loop

2012-10-03 Thread Koen van der Drift
On Wed, Oct 3, 2012 at 9:03 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Good point, thanks. So are there any workarounds for that? I'm sure this pattern (doing lots of calculations concurrently, and store the results in a common object for later), is used in other situations as

Re: NSOperationQueue and for-loop

2012-10-03 Thread Mike Abdullah
On 3 Oct 2012, at 14:17, Koen van der Drift koenvanderdr...@gmail.com wrote: On Wed, Oct 3, 2012 at 9:03 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Good point, thanks. So are there any workarounds for that? I'm sure this pattern (doing lots of calculations concurrently, and

Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Marshall Houskeeper
Our document file format currently stores file paths and file alias to external files. We can potentially have several thousand references to external files stored in a document. When we move to a sandbox environment, we will store Security-Scoped Bookmarks. What is the suggested method to

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Sean McBride
On Wed, 3 Oct 2012 11:15:48 -0400, Marshall Houskeeper said: Our document file format currently stores file paths and file alias to external files. We can potentially have several thousand references to external files stored in a document. When we move to a sandbox environment, we will store

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Charles Srstka
On Oct 3, 2012, at 12:18 PM, Sean McBride s...@rogue-research.com wrote: On Wed, 3 Oct 2012 11:15:48 -0400, Marshall Houskeeper said: Our document file format currently stores file paths and file alias to external files. We can potentially have several thousand references to external files

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Quincey Morris
On Oct 3, 2012, at 11:06 , Charles Srstka cocoa...@charlessoft.com wrote: is there a way to just ask for permission to open a specific file and have a Cancel or allow box come up You can use the 'NSOpenSavePanelDelegate' protocol to validate whatever the user chooses, or you can just

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Sean McBride
On Wed, 3 Oct 2012 11:38:10 -0700, Quincey Morris said: If an item is in your sandbox, you don't need the bookmark at all (for security reasons, anyway). If the item is *not* in your sandbox, then you're going to have to ask the user for access -- possibly thousands of times. Which is of course

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Charles Srstka
On Oct 3, 2012, at 1:38 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 3, 2012, at 11:06 , Charles Srstka cocoa...@charlessoft.com wrote: is there a way to just ask for permission to open a specific file and have a Cancel or allow box come up You can use the

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Marshall Houskeeper
Our plan is to use Security-Scoped Bookmarks for all new documents to store external file references when we go to the sandbox environment. In our use case, I would guess that none of the external referenced files would be stored in our sandbox. The problem that I have is opening old

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Quincey Morris
On Oct 3, 2012, at 12:44 , Marshall Houskeeper mhouskee...@media100.com wrote: Our plan is to use Security-Scoped Bookmarks for all new documents to store external file references when we go to the sandbox environment. In our use case, I would guess that none of the external referenced

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Marshall Houskeeper
Hi Quincey, I have no problem with the use of the open panel ( security-scoped bookmark )for creating new documents. The problem is for pre sandboxed documents or documents that come from Windows. Having the user re-authorize each external file would be very problematic and time consuming.

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Quincey Morris
On Oct 3, 2012, at 14:02 , Marshall Houskeeper mhouskee...@media100.com wrote: I have no problem with the use of the open panel ( security-scoped bookmark )for creating new documents. OK, understood. The problem is for pre sandboxed documents or documents that come from Windows. Having

NSURLConnection working OK on iOS 6?

2012-10-03 Thread Laurent Daudelin
Anybody extensively using NSURLConnection seeing more failure with timed outs with devices running on iOS 6? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software

APN and various apps determining each other present on a device?

2012-10-03 Thread William Squires
Let's say a company, IMakeGamesCo, has several games in the App Store (iOS). Is there an API for determining (from one app) if another app from the same developer is installed? I'm guessing yes because I've seen several apps that can do this; most of them by PocketGems (example: Tap Paradise

Re: APN and various apps determining each other present on a device?

2012-10-03 Thread Jeff Kelley
It’s relatively simple: App A registers for a URL scheme, let’s say AppA://. App B asks the system if it knows how to handle AppA:// links. Jeff Kelley On Oct 3, 2012, at 10:36 PM, William Squires wsqui...@satx.rr.com wrote: Let's say a company, IMakeGamesCo, has several games in the App

Re: APN and various apps determining each other present on a device?

2012-10-03 Thread Rick Mann
On Oct 3, 2012, at 19:46 , Jeff Kelley slauncha...@gmail.com wrote: It’s relatively simple: App A registers for a URL scheme, let’s say AppA://. App B asks the system if it knows how to handle AppA:// links. I was looking for how this is done. How does an app ask? I found a document that's