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 ?



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

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.

This seems like a really bad move to me. There's a bigger world for applications than just MAC OS X, and confining full functionality to a language that's effectively platform specific, seems like an attempt at "lock in". Since it's easy to call C code from C++ and (presumably) Objective C, not to mention lots of other languages (ie. scripting languages), it would seem to me that the sensible approach is to create base system API's to be C compatible, and base other language bindings on top of that.

The alternative for cross platform development is probably a horrible
translation layer, where Objective C API's are encased in C, so that
they can be invoked from other languages. Needless to say, if
that is the only alternative, full MAC OS X support will probably
lag behind, and there will be fewer applications for the platform.

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.

It's not that complicated. For my particular window, I want to make sure that the cursor can't get in front of it. So either the cursor should be hidden whenever its in my window, or it should switch to a transparent cursor. Having the window manager switch the cursor is what I'd like, since I don't want to have to create a thread to service window events.

Graeme Gill.
_______________________________________________
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>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <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.