Re: Creating NSStrings without copying memory

2017-05-02 Thread Ken Thomases
On May 2, 2017, at 3:11 PM, Jens Alfke wrote: > > I’ve got a heap block containing many UTF-8 strings, and I’m looking for the > cheapest way to create NSString objects from them, i.e. without copying all > the characters. > > -initWithBytesNoCopy:length:freeWhenDone:

Re: Mysterious write-only SMB behavior (Kirk)

2017-05-02 Thread Ken Thomases
You should have the Windows network admin examine the files for their attributes, ACLs, and other metadata. Compare with files which show up properly to see if you can identify the problematic ones. Regards, Ken On May 1, 2017, at 11:11 AM, Kirk Kerekes wrote: > >

Re: Creating NSStrings without copying memory

2017-05-02 Thread Jens Alfke
> On May 2, 2017, at 1:42 PM, Mike Abdullah wrote: > > Drop down to CFString. It has similar api to the NSData one you like. Oh, you mean CFStringCreateWithBytesNoCopy? You’re right, I can use that the same way. I was being fixated on something that takes a block, and

Re: Creating NSStrings without copying memory

2017-05-02 Thread Mike Abdullah
Drop down to CFString. It has similar api to the NSData one you like. Mike. Sent from my iPhone > On 2 May 2017, at 22:11, Jens Alfke wrote: > > I’ve got a heap block containing many UTF-8 strings, and I’m looking for the > cheapest way to create NSString objects from

Creating NSStrings without copying memory

2017-05-02 Thread Jens Alfke
I’ve got a heap block containing many UTF-8 strings, and I’m looking for the cheapest way to create NSString objects from them, i.e. without copying all the characters. -initWithBytesNoCopy:length:freeWhenDone: would be perfect, except that the string bytes are not an individual malloc block

Re: Cocoa-dev Digest, Vol 14, Issue 154

2017-05-02 Thread Steve Mills
On May 2, 2017, at 14:40:59, J. Scott Tury wrote: > > In short, use Instruments to see what your app is really processing for your > collectionView. You may be surprised at what is happening. Once those > interactions are cleaned up, performance should be good. Thanks, but

Re: Cocoa-dev Digest, Vol 14, Issue 154

2017-05-02 Thread J. Scott Tury
Hi Steve, I recently moved an iOs project over the macOS. We had the exact same though at first. After analyzing what was happening in the app using Instruments, I was able to pin point performance issues within our own iOS engine, which caused the performance issues I was seeing on

Substitute for NSCollectionView?

2017-05-02 Thread Steve Mills
Has anybody written something better than NSCollectionView to display a scrolling matrix of cells that has good performance with thousands of items and works with an array controller? NSCollectionView is a complete mess. Everything I do is met with crummy behavior. -- Steve Mills Drummer, Mac