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: What is creating this Console message in Tiger



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >What is creating this Console message in Tiger (From: "Ian G. Gillespie" <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.