Carbon Custom Cursor

Discussion in 'Mac Programming' started by printf, Apr 22, 2010.

  1. printf macrumors regular

    Joined:
    Aug 27, 2008
    #1
    is this possible? i'm familiar with SetThemeCursor, but there isn't a ThemeCursor enumeration available that i need. can i create one from scratch like from a CGContext or something?

    i found some old quickdraw functions, but obviously those are deprecated.
     
  2. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    There is nothing in Carbon that isn't deprecated, and nothing that works in 64 bit. Try adding a bit of Cocoa to your code.
     
  3. printf thread starter macrumors regular

    Joined:
    Aug 27, 2008
    #3
    uhhgg... i was really hoping to avoid that. this is using an adobe plug-in sdk which is a pure carbon project. the whole thing's done except for a single stupid cursor :/

    i know cocoa apps can be written in straight c/c++, is the reverse true? can this carbon bundle employ the use of obj-c?
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Yes Carbon can use Cocoa. There used to be a technote or sample code on Apple's website that showed how to use NSCursor in Carbon, but I can't find it. I imagine you're going to want to convert all your Carbon UI to Cocoa for CS5 anyways :)

    Edit: found it CarbonCocoa_PictureCursor
     
  5. printf thread starter macrumors regular

    Joined:
    Aug 27, 2008

Share This Page