Thursday, September 16, 2010

A word about OSX bundles

Hello,

One of the new concepts you will need to understand to work with applications inside OSX is how they can be organized. Inside Microsoft Windows we are used to have a host aplication executable and several other modules spreaded out into system known folders. Further, if we consider also .NET framework, we need to also consider the GAC.

In other hand, most of OSX applications are organized as bundles. A more detailed description of these structures (actually folders) is available here:

"Under NEXTSTEP, Mac OS X and GNUstep, a bundle is a directory (or file) that allows related resources such as software code to be grouped together. They were introduced into the Macintosh world as packages in Mac OS 9 and are similar in concept to the Application Directories used in RISC OS, on the ROX Desktop, as integrative technology into Ubuntu and Debian Linux with SpatialBundle, and on Super OS (RUNZ bundles)." - Wikipedia

Basically the concept is pretty simple, the bundle is the host and all its modules, resources, control files, etc. should be placed inside it. You can have as many sub-folders you want and organize your files as you wish. This self contained environment is firstly very good to keep your application isolated and avoid unwanted modifications from third party applications. Of course OSX also support shared components like frameworks placed into other folders.

If you get a typical OSX application, go to it using your Finder, right click and select "Show Package Contents" you will be able to see all its components (don't mess with them so your application may stop to work). So you may think bundles are folders with special behavior.

This is why most of OSX applications can be uninstalled by just deleting the main application bundle. It will carry all components to the Trash.

Ok, I don't want to go deeper than this but keep in mind that you will need to use bundle modules to organize your applications inside OSX.

Cheers!!!

Wednesday, September 15, 2010

AutoCAD for Mac Announced

Hello,

Welcome to my new Blog dedicated exclusively to AutoCAD Mac ObjectARX programming. For those who are used with my current Blog "ObjectARX & Dummies" I plan a slightly different approach here once we are dealing with a different platform.

Meanwhile, I would recommend some news about AutoCAD Mac along with some teaser videos about it.

AutoCAD for Mac was announced to be released this Fall:

http://www.youtube.com/watch?v=Lt12QkM_FSQ

http://www.autodesk.com/autocadformac

The event was last August 31st at Autodesk Gallery in San Francisco. I was there to present our company's (OFCDesk) product ported to AutoCAD Mac which will be made available also this Fall right after AutoCAD Mac starts to ship.

Some interesting videos about it can be found here at AutoCAD Exchange Youtube channel:

http://www.youtube.com/watch?v=3qyB_e8e3Zg

http://www.youtube.com/watch?v=e2Vl9rUnC6g

http://www.youtube.com/watch?v=hapdsyw8Ngs

Stay tuned on this Blog because I plan to cover all details about it in regards to API, how to create ObjectARX applications for it and how to port your current AutoCAD Windows applications to Mac.

In advance, I would recommend a deep study on XCode compiler and Cocoa language.

Cheers!