scrolling problem with window resize

2017-02-27 Thread James Walker
I have a cell-based outline view with one column, rows of variable height, and a vertical scroll bar. I'm trying to restore the previous window size, either by specifying an auto-save name in the nib, or by calling -[NSWindow setFrameUsingName:] after loading the nib, or by calling -[NSWindow

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-27 Thread Shane Stanley
On 28 Feb 2017, at 5:43 am, sumit bansal wrote: > > API: OpenDefaultComponent, whenever we call this API, we always get a new > instance to that component. > > *As per definition: *OpenDefaultComponent* Opens a connection to a > registered component of the component type and subtype specified by

Re: Memory-mapped sub-data?

2017-02-27 Thread Quincey Morris
On Feb 27, 2017, at 11:11 , Jens Alfke wrote: > >> On Feb 27, 2017, at 10:02 AM, Chris Ridd > > wrote: >> >> It isn’t NSData, but libdispatch’s dispatch_data_t might be a useful way >> forward. The dispatch_data_create(3) man page says it avoids "copying the >> repres

Re: KVC Validation w/ custom Formatter not working

2017-02-27 Thread Quincey Morris
On Feb 26, 2017, at 12:40 , Luc Van Bogaert wrote: > > my model class overrides > > validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer, > forKey inKey: String) throws > > After changing the text in the textfield, my validation method is not called. > When I replace my custom formatte

Re: Memory-mapped sub-data?

2017-02-27 Thread Jens Alfke
> On Feb 27, 2017, at 10:02 AM, Chris Ridd wrote: > > It isn’t NSData, but libdispatch’s dispatch_data_t might be a useful way > forward. The dispatch_data_create(3) man page says it avoids "copying the > represented memory as much as possible.” There’s some kind of bridging between the two —

Re: Need replacement of Component Manager::OpenDefaultComponent

2017-02-27 Thread sumit bansal
API: OpenDefaultComponent, whenever we call this API, we always get a new instance to that component. *As per definition: *OpenDefaultComponent* Opens a connection to a registered component of the component type and subtype specified by your application. * But with the following API, we always g

Re: Memory-mapped sub-data?

2017-02-27 Thread Chris Ridd
> On 27 Feb 2017, at 16:56, Jens Alfke wrote: > > >> On Feb 26, 2017, at 2:34 PM, Daryle Walker wrote: >> >> If I take a "subdata" of a memory-mapped (NS)Data, does it stay mapped (i.e. >> use a range and reference)? Or does a full copy get made? I'm thinking of >> making a parser be a sub-

Re: Memory-mapped sub-data?

2017-02-27 Thread Jens Alfke
> On Feb 26, 2017, at 2:34 PM, Daryle Walker wrote: > > If I take a "subdata" of a memory-mapped (NS)Data, does it stay mapped (i.e. > use a range and reference)? Or does a full copy get made? I'm thinking of > making a parser be a sub-parser too, and this would make the difference > between