Thanks for responding Claude31. I'll need to move my "func possibleCombos()" into my ViewController as it is currently remote. Yes, I'm beginning to see. Since the progressBar must be a member of the ViewController, the "when" and "progressBar.doubleValue" assignment must be made within the class also.
I thought (hoping) maybe there was a way to have remote functions "use" or "pass" messages into or out-of the ViewController.
It will take me a while to study and assimilate this. Thanks!
Post
Replies
Boosts
Views
Activity
In both cases (with and without 1...4) ordinateMinimum should = 0 and ordinateMaximum = 7
For the "little better set" ordinateMinimum should = 1 and ordinateMaximum = 7
It seems the min and max functions abort the sieve if the first pass doesn't yield a value.
actually this set is a little better in illustration:
let ranges = [
1...4
,0...0
,1...6
,3...5
,0...0
,2...4
,3...7
]
Ah, excellent OOPer. I replaced my code with yours a got something that resembles the TV test pattern. I was worried about my storyboard being buggered, but now I know that's OK. Thanks.
The key changes to my code (which now works!) are:
declaring let layer = CAShapeLayer() within the loop. I had let shapeLayer = CAShapeLayer(). before the function declaration
analysisView.layer?.addSublayer(layer) which provides the missing tie-in to the Outlet
Thank you so much!
Ah, so the order of the Outlet statement controls. I tried the order in the StoryBoard without effect. Good to know.