• 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: Using deprecated methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using deprecated methods


  • Subject: Re: Using deprecated methods
  • From: James Merkel <email@hidden>
  • Date: Sat, 05 Jul 2008 21:25:33 -0700

On Sat, 5 Jul 2008 05:08:45 -0700 (PDT) Keith Blount wrote:
Hi,

Something that has bothered me for ages in Cocoa, but which I've always put to one side, is how to handle certain deprecated methods when supporting more than one OS. In some instances it's as simple as checking at runtime which OS is being used and using the appropriate method accordingly, but I'm wondering here about the trickier instances. For instance:

I am currently overhauling printing in my application. I have a page layout accessory view and I now also want to add a print panel accessory view. My app runs on both Tiger and Leopard. - setAccessoryView: works on both Tiger and Leopard, for adding an accessory view to both NSPageLayout and NSPrintPanel. However, in both cases, -setAccessoryView: was (rather frustratingly in this case, I feel, as it worked fine) informally deprecated on Leopard. Instead, we are advised to use -addAccessoryViewController:, which uses an NSViewController. ...

This brings up another question. Is -setAccessoryView: deprecated across the board or just for NSPageLayout and NSPrintPanel? I just added an accessory view to an NSSavePanel. There wasn't anything in the NSSavePanel docs that said -setAccessoryView: was deprecated there.


Thanks,

Jim Merkel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using deprecated methods
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Highlight Layer on Mouseover
  • Next by Date: Re: multiple UndoManagers
  • Previous by thread: Re: Using deprecated methods
  • Next by thread: Re: Using deprecated methods
  • Index(es):
    • Date
    • Thread