Re: Window With Transparent Background

2017-01-24 Thread Richard Charles
> On Jan 24, 2017, at 6:58 PM, Ken Thomases wrote: > > I can't explain the differences in the two cases, but are you also setting > the window's opaque property to NO? If not, then setting the background > color to partially transparent is not sufficient to reliably

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread じょいすじょん
You might take a look back at the TextEdit source. It should be pretty straight forward to save as .rtf or .rtfd, if by table you mean you have a rich text table. > On Jan 25, 2017, at 6:35, Peter Hudson wrote: > > I was trying to avoid having to go to Direct RTF markup.

Re: Window With Transparent Background

2017-01-24 Thread Ken Thomases
On Jan 24, 2017, at 11:17 AM, Richard Charles wrote: > > Consider a window presented as a sheet with background transparency. > > - (void)windowDidLoad > { >// Produces gray background with transparency. >NSColor *color = [NSColor colorWithRed:0.5 green:0.5

Re: Window With Transparent Background

2017-01-24 Thread Richard Charles
> On Jan 24, 2017, at 5:07 PM, dangerwillrobinsondan...@gmail.com wrote: > > What is the point of a transparent sheet? This is somewhat similar to the connections panel in Interface Builder. When dragging to create a connection the opaque panel will change to semi-transparent. The user

Re: Window With Transparent Background

2017-01-24 Thread dangerwillrobinsondanger
What is the point of a transparent sheet? I'm not sure that's supported. You might want to consider a child window instead. Much easier to be sure you can control its behaviors. Sent from my iPhone > On Jan 25, 2017, at 2:17, Richard Charles wrote: > > Consider a

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
I was trying to avoid having to go to Direct RTF markup. But as you say, it may be the answer. Peter > On 24 Jan 2017, at 21:13, Jens Alfke wrote: > > >> On Jan 24, 2017, at 12:58 PM, Peter Hudson wrote: >> >> I wondered about RTF - but I've built

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Jens Alfke
> On Jan 24, 2017, at 12:58 PM, Peter Hudson wrote: > > I wondered about RTF - but I've built everything into a view and I can't see > a method on NSView to produce rtf. > I've done it previously with, I think, an NSText. I meant producing it programmatically. It’s a

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
Hi Jens I wondered about RTF - but I've built everything into a view and I can't see a method on NSView to produce rtf. I've done it previously with, I think, an NSText. Peter > On 24 Jan 2017, at 20:27, Jens Alfke wrote: > > >> On Jan 24, 2017, at 11:54 AM, Peter

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Jens Alfke
> On Jan 24, 2017, at 11:54 AM, Peter Hudson wrote: > > But the bottom line is, I think, to get a Word doc that really behaves like a > Word doc ( in word ) I need to export straight to docx format. Have you tried exporting to RTF? It’s a simple text-based markup format,

Re: Math question

2017-01-24 Thread Jens Alfke
> On Jan 24, 2017, at 11:36 AM, Eric E. Dolecki wrote: > > Never mind on that one. with a 0-100, it's super simple. But if it's 0 - 15 > that could be quite different. I'll noodle on that. The formula I gave is general purpose for mapping any input range to any output

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
Many thanks for this Charles. I'll check it out. Peter > On 24 Jan 2017, at 20:11, Charles Jenkins wrote: > > There is an open specification for the file format, which will allow you to > easily (if tediously) write your own exporter. > > The spec is at: >

Re: PDF to Word ( docx) Conversion

2017-01-24 Thread Charles Jenkins
There is an open specification for the file format, which will allow you to easily (if tediously) write your own exporter. The spec is at: http://www.ecma-international.org/publications/standards/Ecma-376.htm (These are huge downloads) If you have access to a Windows PC, there is a

PDF to Word ( docx) Conversion

2017-01-24 Thread Peter Hudson
Hi All I have a report that I currently print to PDF. Its a simple table with text ( varying fonts ) in the table. I have tried to convert it to docx with a variety of proprietary converters. One or two of them do a reasonable job. But the bottom line is, I think, to get a Word doc that really

Re: Math question

2017-01-24 Thread Eric E. Dolecki
Never mind on that one. with a 0-100, it's super simple. But if it's 0 - 15 that could be quite different. I'll noodle on that. On Tue, Jan 24, 2017 at 1:57 PM Eric E. Dolecki wrote: > Thanks so much, that works perfectly! > > Another quick question. > > distance of 100 =

Re: Math question

2017-01-24 Thread Eric E. Dolecki
Thanks so much, that works perfectly! Another quick question. distance of 100 = minimum value (say 0) distance of 200 = maximum value (say 100) How can I apply that? I plan on Int for this value. On Tue, Jan 24, 2017 at 1:52 PM Saagar Jha wrote: > Not completely sure

Re: Math question

2017-01-24 Thread Jens Alfke
> On Jan 24, 2017, at 10:45 AM, Eric E. Dolecki wrote: > > So I am looking for a number between 100 and 200 which ends up being > between 1.0 and 3.0. Are you talking about linear interpolation? That would be Set up the constants, as given in your email: let dist0

Re: Math question

2017-01-24 Thread Saagar Jha
Not completely sure if this is what you want, but I think your “scale” would be: scale = (distance - minDistance) / (maxDistance - minDistance) * (maxScale - minScale) + minScale In this case, scale = (distance - 100) / 100 * 2 + 1 Saagar Jha > On Jan 24, 2017, at 10:45 AM, Eric E. Dolecki

Math question

2017-01-24 Thread Eric E. Dolecki
I have a situation where the distance of an onTouchesBegan in iOS produces a scale for an object. min distance of 100 = scale of 1.0 max distance of 200 = scale of 3.0 So I am looking for a number between 100 and 200 which ends up being between 1.0 and 3.0. I can get the distance easily enough,

Window With Transparent Background

2017-01-24 Thread Richard Charles
Consider a window presented as a sheet with background transparency. - (void)windowDidLoad { // Produces gray background with transparency. NSColor *color = [NSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.9]; self.window.backgroundColor = color; } - (void)windowDidLoad { //

FSEventStreamCallback in Swift

2017-01-24 Thread John Brownie
My app shows a representation of the contents of various folders, so using FSEvents to track modifications from outside the app seemed to be the way to go. I am running into difficulty with writing the code with a callback, all in Swift. I must be doing something wrong, as I get a crash in the