On 25/Oct/2012, at 9:26 PM, Alfred Van Hoek wrote:

> 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..

You can download my project over the next couple of days from
        https://dl.dropbox.com/u/46800854/simple2.zip

The zip archive contains the Xcode project for the Cocoa plugin, and a Real 
Studio test application to use the plugin.

The Xcode project is named "video capture.xcodeproj" but the video capture code 
has been replaced by a simple view that should appear with a blue background 
and a diagonal black line.

To run it this is what I do:
- I have a symbolic link in the Real Studio Plugin folder, pointing to the 
library simple2.dylib which is built by the Xcode project (I don't bother 
packaging the plugin into an rbx file at this stage)
- I launch Real Studio every time, to reload the latest version of the plugin, 
and build the test application "My Application.app"
- I have setup the Xcode scheme to have "My Application.app" as the executable 
for the library, so I can debug it.

I hope you can have a look at it and tell me what more I should do to get the 
drawRect function called.

Thanks.



_______________________________________________
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