• 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: Question about Deprecated Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about Deprecated Methods


  • Subject: Re: Question about Deprecated Methods
  • From: Charles Srstka <email@hidden>
  • Date: Fri, 26 Mar 2004 21:37:14 -0600

Well, you could use the old

if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_2)
{
// do 10.3 stuff
}
else
{
// do 10.2 stuff
}

but frankly, I just continue to use selectedRowEnumerator. Having to use the above construct every time you wanted to access the selected item(s) in a table view would be a pain. And besides, can Apple really remove those methods? They would break so much software by doing so that it's not even silly. If they do, it will be a very, very long time before they are able to do so. When I write an app that has 10.3 as the minimum requirement, then and only then will I use these new methods.

Just my two cents.

Charles

On Mar 26, 2004, at 8:44 PM, Seth Willits wrote:

How do you guys handle deprecated methods when you want to be both current and backwards compatible? For example, the selectedRowsEnumerator in NSTableView is deprecated and selectedRowIndexes is now the current method. While I can use selectedRowsEnumerator in 10.3 and earlier, I'm wondering how you would use one method for 10.3 and the other for 10.2 within the same application.



Seth Willits
----------------------------------------------------------------------- ----
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"It's okay. We can't all have three digit IQ levels."
-- Seth Willits
----------------------------------------------------------------------- ----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Question about Deprecated Methods
      • From: Chris Hanson <email@hidden>
    • Re: Question about Deprecated Methods
      • From: Seth Willits <email@hidden>
References: 
 >Question about Deprecated Methods (From: Seth Willits <email@hidden>)

  • Prev by Date: Question about Deprecated Methods
  • Next by Date: Re: Question about Deprecated Methods
  • Previous by thread: Question about Deprecated Methods
  • Next by thread: Re: Question about Deprecated Methods
  • Index(es):
    • Date
    • Thread