Mac OS X Porting - Cursors

From Apache OpenOffice Wiki
Revision as of 22:10, 22 January 2007 by Ybart (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Implementing custom cursors

What do we need ?

Of course, we need the standard cursors like arrow, i-beam cursor, that are defined in the Carbon with constants like kThemeArrowCursor or kThemeIBeamCursor. We have no problem for these, then can simply be called in Carbon with the function SetThemeCursor.

But we also need more specific cursors for example : help cursor, draw cursors… For these cursor the only function availables to to this are deprecated, so we should not use them. The only choice left is to make a Cocoa wrapper and using NSCursor to build our own cursors.

Personal tools