OK, i'm returning to code, i'd some exams so, not any time to work on OOo, but now holidays and time !!!

First, i've started to read Apple instructions about Coco/Carbon integrations :

Chapter on Apple Doumentation :

http://developer.apple.com/documentation/Cocoa/Conceptual/ CarbonCocoaDoc/index.html


As i work onto cursors, i tried to modifiy the little example on this page :


http://developer.apple.com/samplecode/CarbonCocoa_PictureCursor/ listing1.html



With Eric, we tried to bind Cocoa as its aqua_cursors.h file :

#ifndef __cplusplus
NSImage *CreateNSImageFromCGImage( CGImageRef image )
CursorRef CreateCocoaCursor( CGImageRef cgImageRef, float hotSpotX, float hotSpotY )
void    ReleaseCocoaCursor( CursorRef cursor )
void    SetCocoaCursor( CursorRef cursor )
void    HideCocoaCursor()
void    ShowCocoaCursor()
#endif // ! __cplusplus


#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
// CursorRef is used here to allow main.c to compile as a plain C file. If main.c // were compiled as an Objective-C file (change File Type in Xcode's Info window), // then this file could include Cocoa/Cocoa.h and could use NSCursor directly in the
// prototypes.
typedef void *CursorRef;

//      C-based wrapper routines around NSCursor
CursorRef CreateCocoaCursor( CGImageRef cgImageRef, float hotSpotX, float hotSpotY );
void    ReleaseCocoaCursor( CursorRef cursor );
void    SetCocoaCursor( CursorRef cursor );
void    HideNSCursor();
void    ShowNSCursor();

#ifdef __cplusplus

        
This sample code, is false and bad, but the ifndef and ifdef constraints are some clues to begin... I'm working on it, try to join me, i'm very interested to help and understand how to work...

Damien

Le 22 juin 07 à 18:12, Michael Sicotte a écrit :

Damien and other MacPorters,

I have starting to work on issue #77592# Use of the Mac OS X spell checker, which will requiring using Cocoa code.

Eric has mentioned that Damien may have already started something using Cocoa. Damien, can you send me what you have, or point me to it?

In order to avoid duplicate work, and to try to have a 'standard' way to integrate Cocoa, can I ask that anyone who has already started something share your thoughts/methods so I don't do something completely different.

Thanks,

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to