Re: UIView underlying rects for drawRect

2015-12-05 Thread Mike Abdullah
I thought CGContext had API to tell you the rects being drawn, but can’t see that now, so I think I imagined it! I’d say your next port of call is to ascertain whether the system is smart enough to be only drawing the required area or not. There are debugging tools to show you the portions of t

Re: Swift screensavers in Ubuntu?

2015-12-05 Thread dangerwillrobinsondanger
They open sourced a heck of a lot though. There's enough there to likely build a web server in no time for example. Or modules for one. Sent from my iPhone > On Dec 5, 2015, at 8:45 AM, SevenBits wrote: > >> On Friday, December 4, 2015, Juanjo Conti wrote: >> >> Now that Swift is open sour

Re: NSDocument and NSViewControllers

2015-12-05 Thread Jerry Krinock
> On 2015 Dec 04, at 16:32, Rick Mann wrote: > > I have an NSViewController subclass and SCNView subclass. I can get at the > document from the NSViewController subclass via a rather cumbersome "let doc > = self.view.window?.windowController?.document as? ModelDocument” I just happened to hav

Re: ARC and IBOutlet - strong vs weak......

2015-12-05 Thread Clark Cox
> On Dec 4, 2015, at 12:05, Mike Throckmorton > wrote: > > Quincey Morris Friday, December 4, 2015 10:04 AM > >> That sounds like a definitive answer. So you’re asking us because … why? > > Definitive for the leading question, but not the secondary: > >> If strong, do I need to set the outle

Re: NSDocument and NSViewControllers

2015-12-05 Thread Rick Mann
> On Dec 5, 2015, at 05:24 , Jerry Krinock wrote: > > >> On 2015 Dec 04, at 16:32, Rick Mann wrote: >> >> I have an NSViewController subclass and SCNView subclass. I can get at the >> document from the NSViewController subclass via a rather cumbersome "let doc >> = self.view.window?.windowC

Re: NSDocument and NSViewControllers

2015-12-05 Thread Quincey Morris
On Dec 5, 2015, at 12:20 , Rick Mann wrote: > > I'll probably make the document a delegate of the view controller so it can > be informed of changes to the model. This may not apply to your app, but what I usually end up doing in an app of any complexity is have (essentially) two data models.

Re: NSDocument and NSViewControllers

2015-12-05 Thread Rick Mann
> On Dec 5, 2015, at 12:40 , Quincey Morris > wrote: > > On Dec 5, 2015, at 12:20 , Rick Mann wrote: >> >> I'll probably make the document a delegate of the view controller so it can >> be informed of changes to the model. > > This may not apply to your app, but what I usually end up doing

debugging questions on NSScroll view with NSSpllit view

2015-12-05 Thread yuleo
Hi, I am new to cocoa app development. I have a question about debugging NSScroll view. I am trying to develop a Finder app like the mac Finder. I am using NSSplit view adding one vertical panel at a time dynamically in the code. basically, trying to simulate file directories drill down. I

Re: debugging questions on NSScroll view with NSSpllit view

2015-12-05 Thread Ken Thomases
Hi, On Dec 5, 2015, at 3:16 PM, yu...@aim.com wrote: > > I am trying to develop a Finder app like the mac Finder. I am using NSSplit > view adding one vertical panel at a time dynamically in the code. > basically, trying to simulate file directories drill down. I am also having > an NSScroll

Re: UIView underlying rects for drawRect

2015-12-05 Thread Roland King
You thought CGContext had it, I thought CALayer had it, neither of them appear to have it! AFAICT UIView is clearing the entire rectangle before drawing, so that idea doesn’t work either. That was a good way to confirm I was on the wrong road so thanks. So I implemented the code to capture s