Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Gwynne Raskind
On Dec 13, 2012, at 7:28 PM, Kevin Perry wrote: > On Dec 13, 2012, at 4:24 PM, Greg Parker wrote: >> On Dec 13, 2012, at 4:13 PM, Robert Monaghan wrote: >>> I went ahead and created a really crude subclass of NSMutableData. It seems >>> to work for my situation. >>> Attached is the code, for po

Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Melissa J Turner
On Dec 13, 2012, at 4:28 PM, Kevin Perry wrote: > > On Dec 13, 2012, at 4:24 PM, Greg Parker wrote: > >> On Dec 13, 2012, at 4:13 PM, Robert Monaghan wrote: >>> I went ahead and created a really crude subclass of NSMutableData. It seems >>> to work for my situation. >>> Attached is the code

Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Kevin Perry
On Dec 13, 2012, at 4:24 PM, Greg Parker wrote: > On Dec 13, 2012, at 4:13 PM, Robert Monaghan wrote: >> I went ahead and created a really crude subclass of NSMutableData. It seems >> to work for my situation. >> Attached is the code, for posterity. (I am sure I won't be the only one >> worki

Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Greg Parker
On Dec 13, 2012, at 4:13 PM, Robert Monaghan wrote: > I went ahead and created a really crude subclass of NSMutableData. It seems > to work for my situation. > Attached is the code, for posterity. (I am sure I won't be the only one > working around this.) > > Any suggestions to make this a bit

Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Robert Monaghan
Thanks for the suggestion, Kevin! I went ahead and created a really crude subclass of NSMutableData. It seems to work for my situation. Attached is the code, for posterity. (I am sure I won't be the only one working around this.) Any suggestions to make this a bit more "Proper" are welcome. bo

Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Kevin Perry
NSMutableData currently ignores (and always has, to my knowledge) the no-copy "hint" and always copies the bytes into an internal buffer in case something tries to change the length of the NSMutableData. It would not be too difficult to make a subclass of NSMutableData that doesn't copy and thr

Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-13 Thread Kyle Sluder
On Tue, Dec 11, 2012, at 02:17 AM, jonat...@mugginsoft.com wrote: > > On 10 Dec 2012, at 19:13, Kyle Sluder wrote: > > > It's my understanding that the intent of NSStringDrawing is to provide > > the exact same drawing as NSTextFieldCell. > Is that stated anywhere? I swear it was stated somewhe

NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Robert Monaghan
Hi Everyone, I have just run head long into an issue with NSMutableData and existing buffers. I have the following code: UInt8 *sourcebytes = [clImgEngine srcBuffer]; [self setData:[NSMutableData dataWithBytesNoCopy:sourcebytes length:[clImgEngine

Re: Bindings validation for NSMutableArray of NSMutableDictionary

2012-12-13 Thread jonat...@mugginsoft.com
On 13 Dec 2012, at 11:54, jonat...@mugginsoft.com wrote: > I bind an NSArray of NSMutableDictionary instances to an NSTableView and > enable NSTableColumn editing.. > > How can I best implement KVO based validation when editing the view? > > Subclassing NSArray controller is a no go as validate

Re: split views, best practices for 10.8?

2012-12-13 Thread Peter Ammon
On Dec 12, 2012, at 4:20 PM, Chuck Soper wrote: > Your message helps a lot. Yesterday, I finally got it working. I had been > trying to load a custom view with constraints from a nib file into the > cell of an NSTableView which was inside an NSSplitView. By isolating the > constraints in my cust

Re: [MEET] CocoaHeadsNYC this Thursday, Dec 13

2012-12-13 Thread Andy Lee
Room change: this month we are meeting in "Inwood" rather than "Bakerfield". Same floor, just turn left instead of right. --Andy On Dec 11, 2012, at 1:07 AM, Andy Lee wrote: > When: Thursday, December 13, 2012, 6:30-8:00 PM, followed by pizza at Patsy's. > > What: Peter Hosey will be our spec

Re: LSOpenURLsWithRole failure

2012-12-13 Thread Vojtěch Meluzín
Thank you folks. The customer actually found the cause - permissions. The installers are distributed as ZIP files, and some extractors don't set the "x" permission on the extracted executables and Mac OS X stupidly reacts by doing, well, nothing... So that was it, but at least I now know what cause

Bindings validation for NSMutableArray of NSMutableDictionary

2012-12-13 Thread jonat...@mugginsoft.com
I bind an NSArray of NSMutableDictionary instances to an NSTableView and enable NSTableColumn editing.. How can I best implement KVO based validation when editing the view? Subclassing NSArray controller is a no go as validateValue:forKeyPath:error is never called. Subclassing the NSMutableDict

Re: URL Request from AppDelegate?

2012-12-13 Thread Mike Abdullah
You've given us an error message but no details at all about what your code is actually doing. Show us some code and it will be much much easier to debug. On 13 Dec 2012, at 01:22, berry hunt wrote: > Hi gurus, > > I am pretty new to cocoa development, and would like to ask for help on > some q