Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How Do I Use a Framework Only if Running 10.3?

How Do I Use a Framework Only if Running 10.3?
Thread Tools
Uncle Skeleton
Addicted to MacNN
Join Date: Nov 2002
Location: Rockville, MD
Status: Offline
Reply With Quote
Nov 2, 2003, 05:06 PM
 
I wan't to use DVDPlayback.framework in my app, but in 10.2 I still want the app to run, and just inform the user that DVD playback is not supported (instead of crashing on launch like it does normally when a framework it uses is not available). How do I do this?
     
Catfish_Man
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Nov 2, 2003, 05:14 PM
 
Originally posted by Uncle Skeleton:
I wan't to use DVDPlayback.framework in my app, but in 10.2 I still want the app to run, and just inform the user that DVD playback is not supported (instead of crashing on launch like it does normally when a framework it uses is not available). How do I do this?
hmmm... perhaps find out what the symbol defined for 10.3 is (it should be in a bunch of the header files) and do
Code:
#ifdef 10.3_symbol_whatever_it's_called import <Bla/Bla.h> #endif
not sure if that works though
     
Tritium
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Nov 3, 2003, 12:12 AM
 
#ifdef is a preprocessor define, it gets resolved at compile time and not runtime.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:09 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,