Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preference Pane require version test?



On Dec 19, 2006, at 1:45 AM, Trygve Inda wrote:

I have a System Preference Pane that needs to require 10.4. How can I tell
the System Preference app that my pane needs 10.4?

There may be a formal method of doing that (I haven't actually tried to write one, so I don't know for sure), but if not here are some possibilities for doing something in code:


1. If preference panes can return a result that prevents them from being used, add a call to Gestalt to check that the system version is >= 10.4 and bail with an appropriate error code if not?

2. If the preference pane loading mechanism assumes that "if the preference pane exists, it can be loaded," add a call to an innocuous Carbon API routine that is only available on 10.4 and later, and have your build set up such that your OS deployment version is also 10.4. That should prevent your preference pane from being able to load on pre-10.4 since it won't be able to resolve all the symbols.

steve

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Preference Pane require version test? (From: Trygve Inda <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.