Re: [NSPointerArray copy] problem

2014-02-07 Thread Graham Cox
Darn. What about -allObjects? Is that OK on <10.7? I don't care about any NULLs, so that should give me a functional copy. --Graham On 8 Feb 2014, at 9:45 am, Greg Parker wrote: > On Feb 7, 2014, at 4:26 AM, Graham Cox wrote: >> I'm using NSPointerArray to hold a list of weak references. >

Re: [NSPointerArray copy] problem

2014-02-07 Thread Greg Parker
On Feb 7, 2014, at 4:26 AM, Graham Cox wrote: > I'm using NSPointerArray to hold a list of weak references. > > In one case, I need to enumerate these in a mutation-safe way, so I make a > copy of the pointer array before iterating it. That works fine on 10.7 and > later, but on 10.6.x, I get a

[NSPointerArray copy] problem

2014-02-07 Thread Graham Cox
I'm using NSPointerArray to hold a list of weak references. In one case, I need to enumerate these in a mutation-safe way, so I make a copy of the pointer array before iterating it. That works fine on 10.7 and later, but on 10.6.x, I get a runtime exception that [NSConcretePointerArray copyWit

Re: Copy problem

2012-12-19 Thread Sean McBride
On Wed, 19 Dec 2012 16:38:29 +1300, tridiak said: > if ([fm fileExistsAtPath:fps]) { > if (![fm removeItemAtURL:dest error:&e]) { Not sure what your exact problem is, but you might want to read up on file system race conditions:

Copy problem

2012-12-18 Thread tridiak
Have a problem with a copying error. This occurs on 10.8, not 10.7. This is for a custom installer. Basically copies a plugin (for DirTree) to a user-defined (or default) location. (gdb) po plugFile file://localhost/Users/tridiak/DTPlugInstaller.app/Contents/Resources/BunchOfFilters.bundle/ (gdb)