Re: How do I use a NSTextBlock in an attributed string?

2017-03-09 Thread Peter Hudson
Yes, you've got the page I thought may be helpful. I hadn't really suggested it as a considered solution to your problem. I just thought I'd mention it in case you hadn't come across it. Peter > On 9 Mar 2017, at 23:43, Daryle Walker wrote: > > >> On Mar 9, 2017, at 11:59 AM, Peter Hudson

Re: NSOutlineView isn't restoring persistent state for expanded/collapsed

2017-03-09 Thread Quincey Morris
On Mar 9, 2017, at 09:59 , Steve Mills mailto:sjmi...@mac.com>> wrote: > > When and how should this be happening? FWIW, when I tried to use this persistent state facility (quite a few years ago now), I decided that it was working as advertised, but that the intended behavior was so weird that i

Re: needsDisplay and subviews

2017-03-09 Thread corbin dunn
> On Mar 8, 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? > > I’ve seen conflicting statements about this, but haven’t found anything in > Apple’s documentation. Just to be clear: if you want a view to

NSOutlineView isn't restoring persistent state for expanded/collapsed

2017-03-09 Thread Steve Mills
When and how should this be happening? My outline view has an autosave name, a datasource that implements outlineView:itemForPersistentObject: and  outlineView:persistentObjectForItem:, and autosaveExpandedItems is turned on. outlineView:persistentObjectForItem: is being called for items that I

Re: needsDisplay and subviews

2017-03-09 Thread Quincey Morris
On Mar 9, 2017, at 02:24 , Jeremy Hughes wrote: > > that disagrees with Ben’s conclusion: > > "Thus, it seems to follow that so long a custom view's display() calls super, > then all of its subviews should also be drawn when its needsDisplay is true.” I don’t see it as a contradiction. The pro

Re: How do I use a NSTextBlock in an attributed string?

2017-03-09 Thread Peter Hudson
Hi Daryle I don’t know if you’ve come across this - but I found it quite useful. Text Layout Programming Guide Just Google it and its on Apples site. Best Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-09 Thread Chris Ridd
> On 8 Mar 2017, at 22:56, Peter Edberg wrote: > >> >> On Mar 8, 2017, at 1:44 PM, David Reed wrote: >> >> Thanks Peter. >> >> I am going to try to find time in the next few days to file a bug report. >> I'll obviously include this information. Is there anything else you think I >> should

Re: How do I use a NSTextBlock in an attributed string?

2017-03-09 Thread Daryle Walker
> On Mar 8, 2017, at 4:17 PM, Daryle Walker wrote: > > I tried: > >>// Set the paragraph formatting for the body... >>let bodyAdvancement = bodyFont.maximumAdvancement >>let bodyIndent = max(bodyAdvancement.width, >> bodyAdvancement.height) / 2.0 >>

Re: needsDisplay and subviews

2017-03-09 Thread Jeremy Hughes
> On 9 Mar 2017, at 10:24, Jeremy Hughes wrote: > > So it seems that for layer-backed views, setting needsDisplay does cause the > view to be redrawn - but the value is never actually set. If I needed to work > with layer-backed views, it might be possible to get around this by > overriding wi

Re: needsDisplay and subviews

2017-03-09 Thread Jeremy Hughes
> On 9 Mar 2017, at 01:49, Quincey Morris > wrote: > > So, the correct answer to your original question, I think, is that if your > model data has changed in such a way that the representation in custom views > no longer reflects the data, then you should set “needsDisplay” on *every* > custo