Re: URLByResolvingBookmarkData: crashes on 10.8

2013-11-06 Thread Mike Abdullah
On 5 Nov 2013, at 20:01, patrick machielse wrote: > We're developing an application that needs to track a lot of files (say 10k). > > As recommended, we use url / bookmarks to store references to file system > objects. > > > We regularly see crashes that originate here: > > return [NSURL UR

Re: SKIndexAddDocument crashing

2013-11-06 Thread Mike Abdullah
On 6 Nov 2013, at 02:18, Eric Gorr wrote: > I've got a functioning sample project at > https://github.com/ericgorr/searchtest.git > > The relevant code is self contained in the applicationDidFinishLaunching > method in ELIZAppDelegate.m... > >NSBundle* mainBundle = [NSBundle mainBundle];

Re: Mutually exclusive item filtering-comparing

2013-11-06 Thread Graham Cox
On 5 Nov 2013, at 7:17 pm, Chris Paveglio wrote: > What is the most efficient way to compare a list of mutually exclusive items? This sounds like it could be a job for NS(Mutable)Set, where you can quickly form unions, intersections and exclusions of different sets. Presumably their internal

Re: SKIndexAddDocument crashing

2013-11-06 Thread Eric Gorr
On Nov 6, 2013, at 7:29 AM, Mike Abdullah wrote: > > On 6 Nov 2013, at 02:18, Eric Gorr wrote: > >> I've got a functioning sample project at >> https://github.com/ericgorr/searchtest.git >> >> The relevant code is self contained in the applicationDidFinishLaunching >> method in ELIZAppDele

Re: SKIndexAddDocument crashing

2013-11-06 Thread Jerry Krinock
Forgive me if you’ve already done this, Eric, but you didn’t say if you did this… When a function in an SDK crashes, the first thing you should do is check the parameters you’re feeding it. In this case, are your local variables searchIndexFile and doc valid? At least, not NULL? ___