Re: Basics of Cocoa Bindings

2015-09-09 Thread Quincey Morris
(reposted to the list in 2 parts because the whole thing was 1 byte over the stupid limit) On Sep 8, 2015, at 21:04 , Alex Hall mailto:mehg...@icloud.com>> wrote: > > and too little comprehension of how bindings work I think it’s both easier than you think, and harder. Bindings are not actually

Re: Basics of Cocoa Bindings

2015-09-09 Thread Quincey Morris
(continued from part 1) The clever thing about array controllers is that to metal pieces they look like plastic, and to plastic pieces they look like metal. Hence the name “mediating”. As in legal arbitration, the mediator looks to each side like the opposing side’s advocate. Their other genera

Auto Layout Log Warning Message

2015-09-09 Thread Dave
Hi, I made some changes and now I’m getting the following error message: 2015-09-09 13:26:34.424 LTWALTest1[16833:6675944] Layout still needs update after calling -[NSScrollView layout]. NSScrollView or one of its superclasses may have overridden -layout without calling super. Or, something ma

Re: Progress Bar Gripe

2015-09-09 Thread Jens Alfke
> On Sep 8, 2015, at 11:28 PM, Michael David Crawford > wrote: > > I invite you to continue our friendly debate. Then start a blog, enable comments, and post about these topics there. Cocoa-dev is not the right forum for high-level debate about Apple’s bug reporting/fixing policies or progre

Re: Handling close with multiple document windows

2015-09-09 Thread David Durkee
Thanks, Quincey and Mike, I wasn’t expecting it to be so simple! David > On Sep 8, 2015, at 4:52 PM, Quincey Morris > wrote: > > On Sep 8, 2015, at 14:40 , David Durkee > wrote: >> >> I haven’t been able to find a way to make trying to close the main window >> try

Setting the position of a NSScrollView

2015-09-09 Thread Dave
Hi All, I’m using the code below to set the position of a Scroll View: NSPoint pt = NSMakePoint(0,[[self.pValidationIssueScrollView documentView] bounds].size.height); [[self.pValidationIssueScrollView documentView] scrollPoint:pt]; However it doesn’t seem to do anything. The Clip View of the N

Setting the position of a NSScrollView

2015-09-09 Thread Dave
Also tried: NSPoint myScrollPosition; myScrollPosition = NSMakePoint(0,0); [[self.pValidationIssueScrollView documentView] scrollPoint:myScrollPosition]; This is being called in windowDidLoad but I’ve also tried calling it in awakeFromLib __

Setting the position of a NSScrollView

2015-09-09 Thread Dave
Found it! -(void) scrollToTopOfScrollView:(NSScrollView*) theScrollView { NSPoint myScrollPosition; if ([[theScrollView documentView] isFlipped] == YES) myScrollPosition = NSMakePoint(0.0,0.0); else myScrollPosition=NSMakePoint(0.0,NSMaxY([[theScrollView d

Swift: combining Obj-C enums

2015-09-09 Thread Rick Mann
I've not found a succinct way to do this. Is there one? let files = try fm.contentsOfDirectoryAtURL(inFile, includingPropertiesForKeys: nil, options: .SkipsSubdirectoryDescendants | .SkipsPackageDe

Re: Swift: combining Obj-C enums

2015-09-09 Thread Greg Parker
> On Sep 9, 2015, at 6:28 PM, Rick Mann wrote: > > I've not found a succinct way to do this. Is there one? > >let files = try fm.contentsOfDirectoryAtURL(inFile, > includingPropertiesForKeys: nil, >

Re: Swift: combining Obj-C enums

2015-09-09 Thread Rick Mann
> On Sep 9, 2015, at 18:43 , Greg Parker wrote: > > >> On Sep 9, 2015, at 6:28 PM, Rick Mann wrote: >> >> I've not found a succinct way to do this. Is there one? >> >> let files = try fm.contentsOfDirectoryAtURL(inFile, >> includingPropertiesFor

Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Jerry Krinock
In a Mac app, I need to display real-time video (as in “movies”) from a USB camera on the screen. Can someone please confirm that AVFoundation the way to go? I’ve read that QTKit is deprecated but, oddly, I cannot find any mention of deprecation here in the QTKit Programming Guide: https://de

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Jens Alfke
> On Sep 9, 2015, at 9:22 PM, Jerry Krinock wrote: > > In a Mac app, I need to display real-time video (as in “movies”) from a USB > camera on the screen. Can someone please confirm that AVFoundation the way > to go? I can confirm that it’s easy to use AVFoundation to display live video from

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Shane Stanley
On 10 Sep 2015, at 2:22 pm, Jerry Krinock wrote: > > In a Mac app, I need to display real-time video (as in “movies”) from a USB > camera on the screen. Have a look at the sample code AVRecorder. -- Shane Stanley ___ Cocoa-dev mailing list (Coc

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Quincey Morris
On Sep 9, 2015, at 21:22 , Jerry Krinock wrote: > > I’ve read that QTKit is deprecated but, oddly, I cannot find any mention of > deprecation here in the QTKit Programming Guide: The lack of a mention of deprecation isn’t so odd if you scroll to the bottom of the page and note that the last up

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Britt Durbrow
One of my projects (still on the back burner at the moment, but slowly progressing nonetheless) is a DIY pick-and-place machine for doing small-run electronics. It uses standard VGA-quality USB webcams (such as the type that you can get off of eBay for under $10 each… often under $4) to do the