Intel Mac -> Many Warnings (deprecated functions)

dave05
Unregistered
 
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
Moderator
Posts: 508
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
Luminary
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
Moderator
Posts: 522
Joined: 2002.04
Post: #4
For hiding and showing the cursor, you want the CoreGraphics calls:

Code:
CGDisplayErr CGDisplayHideCursor(
    CGDirectDisplayID display);
CGDisplayErr CGDisplayShowCursor(
    CGDirectDisplayID display);
http://developer.apple.com/technotes/tn/...#Section10

-Jon
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Functions not being initialised onKeyDown Yendall 1 259 Apr 15, 2014 01:31 PM
Last Post: OneSadCookie
  New Space Simulator - light speed functions gooncorp 3 7,125 Jan 2, 2013 12:52 AM
Last Post: NikG
  Some quick help getting started with certain Carbon functions zmwworm 12 7,693 Jan 10, 2008 01:14 AM
Last Post: zmwworm
  Arrays or variables containing executable functions Jones 4 4,389 Jun 2, 2006 08:35 AM
Last Post: Zekaric
  Struct based functions Jones 9 5,115 May 9, 2006 02:37 PM
Last Post: Zekaric