On 28 May 2009, at 16:36, Nikhil Khandelwal wrote:

Hi all,

I want to find out which application is the default one for .x extension file in my application and to make my application the default one for that extension.

For finding out who is "owning" an extention you should use the Launch Services (http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/Reference/reference.html#/ /apple_ref/c/func/LSGetApplicationForInfo). And to make your application the default for that extention, it is the same service... but another method (http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/Reference/reference.html#/ /apple_ref/c/func/LSSetHandlerOptionsForContentType)


Its an urgent project requirement, so please reply as soon as possible.

Thanks,
NIKHIL


Filip van der Meeren
[email protected]


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please 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/filip%40code2develop.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please 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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to