NSFitPagination

2014-11-18 Thread Leonardo
I cannot detect the value of the check-box Scale to fit paper size on the print panel. I would like to know whether I have to scale my view within the method - (NSRect)rectForPage:(NSInteger)pageNumber For sure it has nothing to do with NSFitPagination. In facts NSLog(@pMode %ld, %ld,

Deconstructing Text Tables

2014-11-18 Thread Charles Jenkins
It’s very easy to create an NSAttributedString that represents a text table, then show the table in a TextView so the user can edit information in the cells. The documentation on how to create a text table

Re: Deconstructing Text Tables

2014-11-18 Thread Keary Suska
On Nov 18, 2014, at 2:38 AM, Charles Jenkins cejw...@gmail.com wrote: It’s very easy to create an NSAttributedString that represents a text table, then show the table in a TextView so the user can edit information in the cells. The documentation on how to create a text table

help with debugging

2014-11-18 Thread sqwarqDev
Hi folks Pretty uneducated in anything other than the basics of debugging, so I have a bug in my app which I can't reproduce my end, but I get several user reports that all show the same console.log errors. The bug is near-fatal, i.e. doesn't crash the app, but stops it displaying a window

Re: help with debugging

2014-11-18 Thread Sean McBride
On Wed, 19 Nov 2014 00:52:13 +0700, sqwarqDev said: 0 CoreFoundation 0x7fff8cd5664c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x7fff975c86de objc_exception_throw + 43 2 CoreFoundation 0x7fff8cd564fd

Re: help with debugging

2014-11-18 Thread Jens Alfke
On Nov 18, 2014, at 10:04 AM, Sean McBride s...@rogue-research.com wrote: Those offsets tell you how far into the function (in bytes I think) it was. You can indeed bring that back to a line number. See here: http://lldb.llvm.org/symbolication.html

Re: help with debugging

2014-11-18 Thread Sean McBride
On Tue, 18 Nov 2014 10:25:07 -0800, Jens Alfke said: Those offsets tell you how far into the function (in bytes I think) it was. You can indeed bring that back to a line number. See here: http://lldb.llvm.org/symbolication.html http://lldb.llvm.org/ symbolication.html That info is for live

Re: help with debugging

2014-11-18 Thread KappA
Just a thought off the top (please excuse me if I'm far off)... but what about wrapping in a @try/@catch to handle the exception and get more details? Again, sorry if I'm far off, still having my first cup of coffee.

Re: Deconstructing Text Tables

2014-11-18 Thread Charles Jenkins
Keary, Thanks for responding. :-) Your answer is what I was afraid of… If “index” only applies to characters, and therefore index 0 is the position of the first visible character in the TextView’s NSAttributedString, I could iterate through, finding the range of each cell’s characters, then

Re: Deconstructing Text Tables

2014-11-18 Thread Ken Thomases
On Nov 18, 2014, at 6:38 AM, Charles Jenkins cejw...@gmail.com wrote: It’s very easy to create an NSAttributedString that represents a text table, then show the table in a TextView so the user can edit information in the cells. The documentation on how to create a text table

Re: NSFitPagination

2014-11-18 Thread Graham Cox
It should just work without you having to do anything. It'll ask your view to image the rect, then it will scale it using a transform it has calculated to scale it to fit the paper. The pagination settng will be set to NSFitPagination when scaling the page to fit, just as you found. Unless the