Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
I am using some Mono functionality along with Cocoa. So, when my applications starts, I want to check whether Mono framework (along with particular version or above) is available on my Mac or not. Is there any method to look for a framework on Mac?
 

Soulstorm

macrumors 68000
Feb 1, 2005
1,887
1
I am using some Mono functionality along with Cocoa. So, when my applications starts, I want to check whether Mono framework (along with particular version or above) is available on my Mac or not. Is there any method to look for a framework on Mac?

If I remember correctly, Mono installs a .framework file inside the system Library, along with other things. If that is indeed the case, use NSFileManager to check wether that framework exists in the computer.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
If you're linking against the framework directly, you'd have to change it to a weak link, or write a little wrapper app that checks it directly, and launches the main app if found.
 

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
If you're linking against the framework directly, you'd have to change it to a weak link, or write a little wrapper app that checks it directly, and launches the main app if found.

Can you please help me in writing wrapper?
Is the wrapper to be written in form of apple scrip or shell script or XCode item itself?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.