Re: Encoding of Swift string literals?

2016-07-07 Thread Jens Alfke
> On Jul 7, 2016, at 6:16 PM, William Squires wrote: > > Is it NSASCIIStringEncoding, or UTF8 (or something else)? Is it dependent on > the system locale or language setting? (in my case, locale is US, and > language is US English, with a US keyboard). I think you’re asking about what string

Re: NSTextView pagination

2016-07-07 Thread Graham Cox
> On 8 Jul 2016, at 2:42 AM, Jonathan Mitchell wrote: > > could supply a new view that would correspond to the new page orientation (if > I could get an appropriate notification) but NSPrintOperation’s -view > is readonly. Do it this way. The textview can share the same NSTextStorage a

Encoding of Swift string literals?

2016-07-07 Thread William Squires
Is it NSASCIIStringEncoding, or UTF8 (or something else)? Is it dependent on the system locale or language setting? (in my case, locale is US, and language is US English, with a US keyboard). Also, do string literals in Swift still respect the '\' escape sequences, like in C?

WKWebView frame resizing doesn't animate WebGL frame resize

2016-07-07 Thread Rick Mann
I'm not sure if this is the right list for this. If not, please let me know a better place to post. We have a WebGL-based viewer for our 3D content. For the iOS version of the app, I wrap this in a WKWebView, and put a lot of native UI in the rest of the app. One of the things I want to be abl

Re: Emailing from a daemon process

2016-07-07 Thread Aandi Inston
> > Is there a way to fire off a simple email from an ObjC Foundation-only app running in the background "Just" sending email seems like such a simple thing. But remember, a Mac doesn't come out of the box able to send mail. It only gets that ability if it is set up to do so (during initialisation

Re: Emailing from a daemon process

2016-07-07 Thread Jonathan Mitchell
> On 7 Jul 2016, at 17:13, Carl Hoefs wrote: > > I have a daemon app built on Foundation (aka "command line tool") running in > the background and I need it to issue a textual email on certain conditions. > > The solutions for emailing that I've been able to find (NSWorkspace, > NSSharingSer

Re: Emailing from a daemon process

2016-07-07 Thread Gary L. Wade
Depending on your customers and product, sending these to your server and saving them there could be a support feature allowing you or the user to log in and review them when needed. Even if you don't, almost every web server is set up with sendmail such that you could utilize it instead. -- Gar

Re: Emailing from a daemon process

2016-07-07 Thread Carl Hoefs
> On Jul 7, 2016, at 9:55 AM, Jens Alfke wrote: > > >> On Jul 7, 2016, at 9:44 AM, Carl Hoefs > > wrote: >> >> It seems a bit odd to me that I can connect all sorts of little network >> devices (webcams, network monitors, remote power switches, etc) to a

Re: Emailing from a daemon process

2016-07-07 Thread Doug Hill
Another thing to bring up is that users may not want an open Sendmail server running on their machine just so a background process can send email without the user's intervention. Huh, this is almost like what malware does. Doug Hill > On Jul 7, 2016, at 10:46 AM, Jens Alfke wrote: > > >> On

Re: Emailing from a daemon process

2016-07-07 Thread Jens Alfke
> On Jul 7, 2016, at 10:01 AM, Carl Hoefs > wrote: > > I seem to recall that in the distant past I accomplished issuing emails from > a daemon process on Linux by directly interfacing to /usr/sbin/sendmail. Is > this the 'Postfix mail tools' you mentioned? Yes, and sendmail on macOS is just

Re: Emailing from a daemon process

2016-07-07 Thread Carl Hoefs
> On Jul 7, 2016, at 9:55 AM, Jens Alfke wrote: > > >> On Jul 7, 2016, at 9:44 AM, Carl Hoefs > > wrote: >> >> It seems a bit odd to me that I can connect all sorts of little network >> devices (webcams, network monitors, remote power switches, etc) to a

Re: Emailing from a daemon process

2016-07-07 Thread Jens Alfke
> On Jul 7, 2016, at 9:44 AM, Carl Hoefs wrote: > > It seems a bit odd to me that I can connect all sorts of little network > devices (webcams, network monitors, remote power switches, etc) to a LAN and > they can all be set to issue email. The manufacturers are probably running their own SMT

Re: Emailing from a daemon process

2016-07-07 Thread Carl Hoefs
> On Jul 7, 2016, at 9:33 AM, Jens Alfke wrote: > >> On Jul 7, 2016, at 9:13 AM, Carl Hoefs > > wrote: >> >> I have a daemon app built on Foundation (aka "command line tool") running in >> the background and I need it to issue a textual email on certain c

NSTextView pagination

2016-07-07 Thread Jonathan Mitchell
Is there a recommended way to change the content of an NSTextView subclass during an NSPrintOperation preview? My subclass needs to adjust its content depending on the NSPrintInfo page orientation. Drawing into the margin with NSView -drawPageBorderWithSize: is not an appropriate solution in thi

Re: Emailing from a daemon process

2016-07-07 Thread Jens Alfke
> On Jul 7, 2016, at 9:13 AM, Carl Hoefs wrote: > > I have a daemon app built on Foundation (aka "command line tool") running in > the background and I need it to issue a textual email on certain conditions. Do you mean daemon or agent? A daemon runs outside of any user login session and is

Emailing from a daemon process

2016-07-07 Thread Carl Hoefs
I have a daemon app built on Foundation (aka "command line tool") running in the background and I need it to issue a textual email on certain conditions. The solutions for emailing that I've been able to find (NSWorkspace, NSSharingService, LSOpenCFURLRef) all involve launching an email client

Re: UIStackView: Variable Spacing

2016-07-07 Thread Fritz Anderson
Confirming that your concern is now Auto Layout overhead? --- Long, long ago, when there were no iPads or Auto Layout (2009?), the scrolling-performance session at WWDC said if your cells had nontrivial subview trees, and the table was stuttering, bite the bullet and start aggregating subview