Does file-mapping a memory allocation work around RAM limits?

2017-05-03 Thread Rick Mann
Our iOS app works with very large data buffers (hundreds of MB). As you can imagine, we run into issues at times. I saw some sample code that used this technique, and it got me wondering if this actually works around the 600 MB limitation of some iOS devices (which begs another question: doss

Re: NSDocument autosavesInPlace and additional menu items

2017-05-03 Thread Quincey Morris
On May 3, 2017, at 08:03 , Eyal Redler wrote: > > my menu nib contains "Save" and "Save As...” items What is the IB action associated with your Save As item? It’s not clear how Cocoa recognizes the menu item, but the action seems like the likely mechanism. Or it could be by

Re: NSSplitView Problems

2017-05-03 Thread Quincey Morris
On May 3, 2017, at 09:27 , Richard Charles wrote: > > So it appears that simply allowing the the size of a subview to go negative > when autoresizing fixes an issue that has been around since the days of > NeXTSTEP. So what am I missing? I dunno, but I think you need to

Re: strange behaviour of hasPrefix

2017-05-03 Thread Ben Kennedy
> On 03 May 2017, at 8:25 am, Gerriet M. Denkmann wrote: > > NSString *test2 = [ @"/some/path" stringByAppendingPathComponent: pintu > ].lastPathComponent; > [ self printTestString: test2 ]; > // prints: length 2 0x2d 0xe3a “-ฺ” BAD: has no prefix "-"

NSSplitView Problems

2017-05-03 Thread Richard Charles
I have a vertical split view that does not use auto layout or constraints. The split view contains a custom subview that has the autoresizing mask set to NSViewWidthSizable. During normal operation the user moves the split view divider which results in a collapsed subview. When the split view

Reconnecting to a NetService after a stream error

2017-05-03 Thread Jeff Kelley
Hi all, I’m writing an app that begins a NetService on tvOS and connects to it from iOS. I’m creating the service with a port number of 0 to get an automatic port and publishing with the .listenForConnections option. On the client (iOS) side, once I resolve an address for the service I use its

strange behaviour of hasPrefix

2017-05-03 Thread Gerriet M. Denkmann
// strange behaviour for probably all combining marks (macOS 12.4): NSString *pintu = @"-ฺ";// HYPHEN-MINUS + THAI CHARACTER PHINTHU // ok NSString *test1 = pintu; [ self printTestString: test1 ]; // prints: length 2 0x2d 0xe3a “-ฺ” ok: has prefix

NSDocument autosavesInPlace and additional menu items

2017-05-03 Thread Eyal Redler
Hi, I'm working on a very old document based application. When autosave in place was introduced back in 10.7 I've added support for this and made it optional for my users. I know that the autosaving feature was tweaked a few times in subsequent releases but I'm really fuzzy about what these

Re: Mysterious write-only SMB behavior (Kirk)

2017-05-03 Thread Matthew Kozak
Microsoft updates the default negotiated version of SMB used in each release and in your situation it's a major bump from 2.x (Server 2008) to 3.x (as of Server 2012). See section 4, here, for a matrix of versions: