Re: needsDisplay and subviews

2017-03-08 Thread Quincey Morris
On Mar 8, 2017, at 15:25 , Jeremy Hughes wrote: > > My conclusion (for now) is that “needsDisplay” causes subviews to be redrawn > - except when “wantsLayer” has been set to true. > > Does that make sense? Sure. In some cases, such as when using layers, the result

Re: needsDisplay and subviews

2017-03-08 Thread Jeremy Hughes
The situation in which subviews were not being redrawn seems to have been a xib problem. After spending some time getting nowhere I decided to recreate the xib by taking a different xib (which used the same custom view) and cutting it down. This worked without any problems. Then I compared the

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread Peter Edberg
> On Mar 8, 2017, at 1:44 PM, David Reed wrote: > > >> On Mar 8, 2017, at 4:35 PM, Peter Edberg wrote: >> >> >>> On Mar 8, 2017, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: >>> >>> Message: 1 >>> Date: Tue, 07 Mar 2017 15:03:41 -0500 >>> From:

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread davelist
> On Mar 8, 2017, at 4:35 PM, Peter Edberg wrote: > > >> On Mar 8, 2017, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: >> >> >> My app has the option to zip up the directories UIManagedDocument creates >> and email it (so users can back up their data or share it with others).

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-08 Thread Peter Edberg
> On Mar 8, 2017, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > > Message: 1 > Date: Tue, 07 Mar 2017 15:03:41 -0500 > From: davel...@mac.com > To: Alastair Houghton , David Duncan > > Cc: cocoa-dev list

How do I use a NSTextBlock in an attributed string?

2017-03-08 Thread Daryle Walker
I tried: > // Set the paragraph formatting for the body... > let bodyAdvancement = bodyFont.maximumAdvancement > let bodyIndent = max(bodyAdvancement.width, > bodyAdvancement.height) / 2.0 > let bodyParagraphStyle =

Re: needsDisplay and subviews

2017-03-08 Thread Ben Kennedy
> On 08 Mar 2017, at 8:46 am, Jeremy Hughes wrote: > > If needsDisplay is set to true for an NSView, does that also cause subviews > to be redrawn? Admittedly I've been mostly doing iOS development for the last several years and barely any Mac lately, but,

needsDisplay and subviews

2017-03-08 Thread Jeremy Hughes
If needsDisplay is set to true for an NSView, does that also cause subviews to be redrawn? I’ve seen conflicting statements about this, but haven’t found anything in Apple’s documentation. Jeremy ___ Cocoa-dev mailing list

Re: boundingRectForGlyphRange is very inaccurate

2017-03-08 Thread Ken Thomases
On Mar 8, 2017, at 12:42 AM, Gerriet M. Denkmann wrote: > > Both boundingRectForGlyphRange and enumerateEnclosingRectsForGlyphRange are > right in the case of lines just containing Ascii chars. > > But for more general cases (e.g. lines containing Thai chars) >