Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8029031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:18:55+00:00 2026-06-05T00:18:55+00:00

Without going into specifics and breaking NDA… If a developer preview of OSX shows

  • 0

Without going into specifics and breaking NDA…

If a developer preview of OSX shows me that a certain API is now part of the AppKit where I previously had to implement the API as a category of the class how do I arrange things so something built and linked against that future SDK will still run on on the current OS.

So in an abstract sense in the current SDK for Lion I have the method coolThing defined in a Category of the class NSFooBar so I can call

object.thing = fooBarInstance.coolThing

However the future SDK shows me that coolThing is now provided by the SDK and hence my category conflicts at build time.

Can I ensure that my Application still works on Lion (where the symbol will not be available) when Im linked against the future SDK without this sort of mess.

if(OSVersion == Lion) {
    return myImplementation;
}
else {
    return SDKNativeImplementaion;
}

Which I suppose I could hide away in the Category but it seems like a bit of mess.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:18:56+00:00Added an answer on June 5, 2026 at 12:18 am

    That’s the reason you should prefix your category methods. So instead of coolThing, you could call it wb_coolThing or something like that. Your category method could check at runtime whether there is a coolThing method, call that if available or use your own implementation if not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Without going into whether this is a good or bad idea: Is it possible
I have a LARGE datatable (500k-1m rows), without going into detail this is a
Without going into detail about what I'm trying to achieve, is it possible (and
I'm currently working on a project that's based on Android. Without getting into many
Without going into details, I have the following jQuery code: $(nav ul ul).each(function ()
Without going into every single one of my repos (I suppose I could with
I am testing my new image file format, which without going into unnecessary detail
While refactoring some C# classes, I've run into classes that implement IDisposable. Without thinking,
I last used EF at v1, and without going into too much depth. Code-first
Is it okay to get a read-only collection from an aggregate without going through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.