On 2 Jan 2010, at 13:42, Bengt Nilsson wrote: > Thanks for the advice. Some extreme newbie questions: > > A) Any documentation on this subject? Can this be done in IB?
http://www.google.com/search?client=safari&rls=en&q=cocoa+overlay+window&ie=UTF-8&oe=UTF-8 > > B) What is the simplest object that will draw a simple line? I have found > NSBox (from IB) and NSBezierPath from docs, both with lots of bells and > whistles... Is there no NSLine, NSPath? Considering the nature of your questions, how about investing in a good Cocoa book? I assure you, you will get nowhere trying to dive in above your level. This is Core Image territory anyway, so view classes are no good here. > > C) > > D) Not supported in IB, so I will wait with this for a while. Short of finding an IB Plugin for the job, nothing is likely to be an immediate drop-in solution purely from IB. While checking out that Cocoa book, why not pick up one on Core Animation too? It will almost certainly be to your benefit. > > 1 jan 2010 kl. 13.13 skrev Mike Abdullah: > >> QTCaptureView is almost certainly internally using something along the lines >> of OpenGL internally to draw onscreen with acceptable performance. This >> means you can't draw on top of it with standard Cocoa drawing techniques. >> The options: >> >> A) Use an overlay window >> >> B) Implement the -view:willDisplayImage: delegate method and return a new >> image that will draw with the crosshairs >> >> C) Place the capture view in a layer-backed view hierarchy and add an >> overlay view – I don't know if QTCaptureView supports being layer-backed, or >> if an overlay view will then work. >> >> D) Switch to QTCaptureLayer. Add an overlay layer for the crosshairs. >> >> On 31 Dec 2009, at 16:14, Bengt Nilsson wrote: >> >>> I need to draw a cross-hair on top of a QTCaptureView with a video preview >>> from a USB camera. >>> For this app, I am starting from the sample project QTRecorder. >>> I create the cross-hair line in the Interface Builder. >>> Problem is that the video is always on top, overwriting the cross-hair >>> lines. >>> Is there a way to let the cross-hair lines be drawn in front of the video, >>> by some property setting in IB for the lines? >>> I tried different settings, like "move to front", defining "parent", etc., >>> but nothing seems to help. >>> Or do they need to be drawn programatically? >>> >>> BN >>> >>> _______________________________________________ >>> >>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >>> >>> Please do not post admin requests or moderator comments to the list. >>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com >>> >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net >>> >>> This email sent to cocoa...@mikeabdullah.net >> > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com