• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: deprecated warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deprecated warning


  • Subject: Re: deprecated warning
  • From: Ron Reuter <email@hidden>
  • Date: Fri, 24 Jan 2014 15:42:03 -0600

A deprecation is just a warning from the developer (Apple in this case) that the method you are using is no longer the best way to do something, and will probably go away in the future, so think about not using it anymore. In this case, they also tell you the new preferred replacement method you should use.

So if you were doing something like:

[myImage compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver fraction:0.5f];

replace it with:

[myImage drawAtPoint:NSZeroPoint fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:0.5f];

• Ron


On 23 Jan 2014, at 4:31 PM, Shane Stanley <email@hidden> wrote:

On 24 Jan 2014, at 5:57 am, Jim Skibbie <email@hidden> wrote:

I'm building an Applescript Obj-C app, and I keep getting this warning in the console: 

*** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.



Does anyone know what causes this?

No idea, but lots of apps are producing the same thing.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
Do not post admin requests to the list. They will be ignored. applescriptobjc-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: deprecated warning
      • From: Shane Stanley <email@hidden>
References: 
 >deprecated warning (From: Jim Skibbie <email@hidden>)
 >Re: deprecated warning (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: deprecated warning
  • Next by Date: Re: deprecated warning
  • Previous by thread: Re: deprecated warning
  • Next by thread: Re: deprecated warning
  • Index(es):
    • Date
    • Thread