Intel Mac -> Many Warnings (deprecated functions)

Post: #1
hey everyone.

I'm still working on a game in Carbon, and I recently upgraded my computer to an Intel iMac. I was under the impression that my code was already "universal," but compiling my code resulted in 40 warnings. Anyways, all my future projects will be in Cocoa, and my plan is to ignore the warnings. There doesn't seem to be an actual problem when executing the application.

[Image: picture3qa3.png]
Quote this message in a reply
Posts: 509
Joined: 2002.09
Post: #2
You should use the functions provided by CFString and CFNumber.

"When you dream, there are no rules..."
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #3
These functions are deprecated in 10.4, even on PowerPC. You won't see the warnings unless you tell Xcode that your minimum required OS is 10.4, though, which is the default on Intel ('cos there is no 10.3), but not on PowerPC.

You can continue to use these functions, but won't be able to build a 64-bit binary if you do.
Quote this message in a reply
Posts: 522
Joined: 2002.04
Post: #4
For hiding and showing the cursor, you want the CoreGraphics calls:

CGDisplayErr CGDisplayHideCursor(
    CGDirectDisplayID display);
CGDisplayErr CGDisplayShowCursor(
    CGDirectDisplayID display);

Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Functions not being initialised onKeyDown Yendall 1 4,496 Apr 15, 2014 01:31 PM
Last Post: OneSadCookie
  Some quick help getting started with certain Carbon functions zmwworm 12 13,221 Jan 10, 2008 01:14 AM
Last Post: zmwworm
  Arrays or variables containing executable functions Jones 4 7,534 Jun 2, 2006 08:35 AM
Last Post: Zekaric
  Struct based functions Jones 9 9,960 May 9, 2006 02:37 PM
Last Post: Zekaric
  Using OpenGL 1.5 functions ermitgilsukaru 8 11,547 Nov 14, 2005 08:41 PM
Last Post: ermitgilsukaru