This probably isn't relevant, but NSBoxes aren't the best way to create
crosshairs. It would be cleaner to just make a (very) simple NSView subclass
that draws the 2 lines.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-03, at 9:30 AM, Bengt Nilsson wrote:
> Hi
Hi again,
After reading about layer-backed views in
http://www.macresearch.org/tutorial-intro-core-animation, I enabled it in IB
and this was the solution.
The cross-hair by two NSBox-es added in IB stayed on while the USB camera
review was running.
Thanks for all the support.
1 jan 2010 kl. 1
Hi again,
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
On 03/01/2010, at 12:42 AM, Bengt Nilsson wrote:
> 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?
NSBezierPath. For a simple line, there is the class
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
Thanks for the advice. Some extreme newbie questions:
A) Any documentation on this subject? Can this be done in IB?
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, N
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:willDisplay
On 31 dec 2009, at 08.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
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 ther