Re: Points vs pixels in a bash script

2020-06-08 Thread Jeff Younker via Cocoa-dev
Just as an aside, points are not Apple-specifc. They are a typesetting unit equivalent to 1/72 of an inch. It's the same unit used for font sizes. -jeff On Mon, Jun 8, 2020 at 2:43 PM Gabriel Zachmann via Cocoa-dev < cocoa-dev@lists.apple.com> wrote: > I know this mailing list might not be the

What is the preferred way to set NSTextView content from NSAttributedString?

2020-02-02 Thread Jeff Younker via Cocoa-dev
Situation: - I am working in Swift 5. - I have an instance of an NSTextView. (Call it "V") - The value has already been set once. (Call this value "T1") - V is showing T1. - I have an NSAttributedString from another source. (Call this value "T2") Desired goal: - I want to se

Preferred methods for usig NSOutlineView

2019-12-18 Thread Jeff Younker via Cocoa-dev
I've been playing around with the NSOutlineView, and as seems to be the usual case, the documentation from Apple is seriously deficient. I've been trying to use bindings to a tree controller, but I'm having difficulty getting element selection to work. I'm guessing that this would be done by bindi

Re: Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-11-27 Thread Jeff Younker via Cocoa-dev
Wade wrote: > You want to use a file wrapper rather than data and specify the document > type in the attributes as RTFD. > -- > Gary L. Wade > http://www.garywade.com/ > > On Nov 27, 2019, at 10:18 AM, Jeff Younker via Cocoa-dev < > cocoa-dev@lists.apple.com> wrote:

Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-11-27 Thread Jeff Younker via Cocoa-dev
I am having some difficulty with saving NSAttributedStrings as RTFD and then recovering them with attachments intact. I generate a string containing an attachment and turn that into RTFD. When I turn that RTFD back into an NSAttributedString, I get the .string back, and I get an attachment, but th