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 6679145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:19:31+00:00 2026-05-26T04:19:31+00:00

Possible Duplicate: Find Mac OS X version number in objective c My application needs

  • 0

Possible Duplicate:
Find Mac OS X version number in objective c

My application needs to be run on (10.5,10.6,10.7) . I have some different implementation pieces for each of them. So I want to be able to check OSX version from my APP.

How can I do it?

What is the best way to do that? Is there any function like if([osx version])…?

P.S. I’m aware of this question How can I determine the running Mac OS X version programmatically? I just couldn’t find what I want for all that 3 versions.

Thanks a lot

  • 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-05-26T04:19:32+00:00Added an answer on May 26, 2026 at 4:19 am

    I use gestalt in one of my Apps succesfuly. Some code snippet to check wether the user is running 10.7.0 or higher:

    SInt32 OSXversionMajor, OSXversionMinor;
    if(Gestalt(gestaltSystemVersionMajor, &OSXversionMajor) == noErr && Gestalt(gestaltSystemVersionMinor, &OSXversionMinor) == noErr)
    {
        if(OSXversionMajor == 10 && OSXversionMinor >= 7)
        {
             // Foo
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: C#/.NET analysis tool to find race conditions/deadlocks I am debugging an application
Possible Duplicate: Algorithm to find minimum number of weighings required to find defective ball
Possible Duplicate: Where do I find a standard Trie based map implementation in Java?
Possible Duplicate: How to find number of days between two dates using php I'm
Possible Duplicate: How to find number of days between two dates using php If
Possible Duplicate: Is there a convenient function in objective-c / coca-touch to find a
Possible Duplicate: Find next match of a phrase with NSScanner I currently have the
Possible Duplicate: Find the number of columns in a table I would like to
Possible Duplicate: Cannot find window-based application on XCode I am pretty new to IOS
Possible Duplicate: Programmatically find the number of cores on a machine What is the

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.