Re: What is creating this Console message in Tiger
Re: What is creating this Console message in Tiger
- Subject: Re: What is creating this Console message in Tiger
- From: Luc Heinrich <email@hidden>
- Date: Thu, 30 Jun 2005 08:21:35 +0200
On 30 juin 05, at 04:22, Ian G. Gillespie wrote:
When I run my app I get this message in the Console application,
"The function CGSDictionaryObjectForKey is obsolete and will be
removed in a Tiger update. Unfortunately, this app, or a library it
uses, is using this obsolete function, and is thereby contributing
to an overall degradation of system performance."
Are you using the "old" CGSReadObjectFromCString/
CGSSetGStateAttribute drop shadow trick [1] ? This triggers these
kind of error messages on Tiger because it internally calls
deprecated functions.
You can fix this by removing this "trick" (which is bad anyway) and
use public calls like CGContextSetShadow or NSShadow (both 10.3 and
upward only).
[1] Described here:
<http://www.cocoabuilder.com/archive/message/cocoa/2001/10/7/47687>
--
Luc Heinrich - email@hidden - http://www.honk-honk.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden