On Oct 25, 2012, at 2:40 AM, alex wrote:

> I don't know if it matters, but in the constructor the height and width of 
> the control are both zero.
> 
> Instead of using the video capture view I am now instantiating a simple 
> NSView subclass but drawRect never gets called.
> 
> Any suggestion ?

yes, show us essential code of the video capture view. 

1) It is true that the bounds will be zero, but REALstudio will do the right 
thing, if and only if the HandleGetter callback is used. Your cocoa 
implementation will need 

- (void) layout

where you layout your capture view

2) /**
 * Used to reposition our content depending on the size of the view.
 */
- (void) setFrame: (NSRect) newFrame

3) - (id) initWithFrame: (NSRect) frame

where you add your subviews in addition to initiation

4) You need to call either needsDisplay or setNeedsDisplay in your cocoa code.

Bottom line: Once you have created your capture view you return the unsigned 
long integer of your myVideoCaptureView in the handleGetter.

All of the above, including my original mail has to do when you run your sample 
project. If you are talking about drawing in the IDE, you will need to do some 
additional work, because you are then in the carbon world..

- Alfred Van Hoek
[email protected]
http://vanhoekplugins.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to