Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a custom cursor using Carbon ?




On May 22, 2006, at 9:37 PM, Graeme Gill wrote:

Eric Schlegel wrote:

As far as I can tell, NSCursor is Cocoa, so no good for my C only code,

Any particular reason? You can compile your C code with the ObjC compiler and thereby call ObjC APIs, and if your code really isn't compatible with ObjC (say you use variables named "id"), then you could just put the ObjC code into a separate source file.

Cross platform compatibility, historical reasons, and simplicity. If I mix in any other language, it will be C++ to be able to use WxWidgets, again for cross platform compatibility.

OK, but keep in mind that Objective C is probably the most common language being used today to provide new system services in Mac OS X. It will become more and more difficult to build a fully savvy Mac OS X application without using some Objective C-based APIs. It would behoove all Mac OS X developers to become familiar with Objective C.


Sounds overly complicated for something so simple on other platforms,
but I assume this is more flexible.

Could you describe again exactly what you're trying to accomplish? Maybe I've misunderstood your goals. You mentioned setting a custom cursor per window, but you also mentioned wanting to hide the cursor. I'm not quite sure how these intersect.


-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.