• 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
Cocoa and Gestalt?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa and Gestalt?


  • Subject: Cocoa and Gestalt?
  • From: Carl Bell <email@hidden>
  • Date: Tue, 11 Mar 2003 16:04:39 -0600

On Friday, March 7, 2003, at 07:23 AM, Nick Zitzmann wrote:

On Friday, March 7, 2003, at 05:44 AM, Marc Weil wrote:

I am now wondering, how does one go about detecting the version of the OS,
and then choosing whether to launch, or display an error message (telling
the user that they need to upgrade) and quit? I thought that was the
original question here.

<http://cocoadevcentral.com/articles/000067.php>

Howdy,

In my app I've decided to isolate the AddressBook functionality into a separate bundle and only load it if the user is running 10.2 or later. Rather than implement exporters as plug-ins, I'm just creating an ABGruntWork object that does the grunt work and my exporter simply calls it.

The above link gives good examples of detecting the OS version including a Gestalt based one. Is there a Cocoa, i.e., non-Carbon, equivalent to Gestalt? (I know that I can call the Carbon version.) In this specific case, I don't want to check for version 10.2 of the OS, I want to check to see if the AddressBook API is available. If there isn't a Cocoa Gestalt equivalent, does Apple maintain gestalt selectors for all the newfangled "Cocoa stuff"? If not, should I just punt and depend on the OS version?

-cb

--
Carl W. Bell - email@hidden
Senior Analyst/Programmer
Baylor University Electronic Library
<http://www3.baylor.edu/~Carl_Bell/>
_______________________________________________
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: Cocoa and Gestalt?
      • From: Sherm Pendley <email@hidden>
References: 
 >Re: Can I require 10.2? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSFileManager miscount
  • Next by Date: RE: Anyone developing Database apps?
  • Previous by thread: Re: Can I require 10.2?
  • Next by thread: Re: Cocoa and Gestalt?
  • Index(es):
    • Date
    • Thread