I can't help but wonder how a titanium nitride coating would stack up against a Tenifer finish in terms of wear resistance...
I think it's safe to say that the titanium nitride coating itself, as a material, would be superior in wear resistance, but the question is whether it bonds to the steel strongly enough to be superior overall (i.e. will it flake off?); the coating would also be extremely thin out of necessity. That's in comparison to Tenifer, by the way, not the black finish on Glocks and some other Tenifer-treated guns, which is different (and not nearly as wear-resistant as either). Smith & Wesson uses PVD (I'm guessing TiAlN) coatings on some of their revolver cylinders, so you might want to look into that for research.
You'd need a barrel liner of steel, trigger groups of steel, firing pin of steel for centerfire.
Aren't titanium firing pins fairly commonplace in some circles?
You'd never be able to have a total 100% ti gun.
Manufacturers may never make one, but I think it would be physically possible. On the other hand, it wouldn't be the best gun possible, perhaps bulkier (particularly the barrel) and less durable than a gun using steel where applicable.
Titanium is super elastic and most machine tools out there have a very tough time maintaining accuracy on the material because it deflects so much.
Per volume, steel may not be much stronger than titanium, but it is far stiffer, which can be a very useful property, especially in compact machinery such as firearms as opposed to large structures such as airplanes and rockets. Each material has its uses.
Ti does not d well with repeated impact loading, thus the use of steel cylinders on Ti framed revolvers.
Some of S&W's aluminum-scandium-framed revolvers have titanium cylinders, and from what I've been hearing the cylinders have had fewer issues than the frames when shooting hot ammo.
You're going to have to describe the burning in a 100% nitrogen atmosphere for me.
Oxygen may be one of the best and best-known oxidizing agents (hence its element name), but not all burning requires oxygen. Some metals, such as titanium, can and do burn with nitrogen, as unusual as that may seem based on common experience.