#45 accepted
Aron Cedercrantz

Usage of deprecated API

Reported by Aron Cedercrantz | November 6th, 2009 @ 01:49 PM

In NSImage+BWAddition.m (on the lines 45, 46 and 76) the method "bestRepresentationForDevice:" is used, this method has been marked as deprecated in 10.6. When I build BWToolkit using the 10.6 SDK as a standalone I don't see these warnings, even though BWToolkit have the "warn about deprecated functions" compiler option checked. Though if I include the BWToolkit source as a sub-project in a 10.6 project I do get the deprecation warnings (see below).

/.../Vendor/BWToolkit/NSImage+BWAdditions.m:45:0
'bestRepresentationForDevice:' is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/
AppKit.framework/Headers/NSImage.h:128)

/.../Vendor/BWToolkit/NSImage+BWAdditions.m:46:0
'bestRepresentationForDevice:' is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/
AppKit.framework/Headers/NSImage.h:128)

/.../Vendor/BWToolkit/NSImage+BWAdditions.m:76:0
'bestRepresentationForDevice:' is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/
AppKit.framework/Headers/NSImage.h:128)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.

Shared Ticket Bins

People watching this ticket

Pages