Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add copyright information to a Nib file?

I've just finished a total re-write [1] of one of Apple's example applications and I am going to release my code as source only on GitHub, under a BSD license.

Adding the BSD license text to the .h and .m files is easy, and I can add copyright information to the .png assets that I will be including, but I am stumped as to how I can add the requisite license information to the xib files. XCode regenerates the files after an edit, so anything manually added to an xml comment will be stripped off.

I'd like to add the license to the nib files for completeness but I am not hung up on doing it - so can anyone offer any advice?

[1] The App was AccelerometerGraph and the re-write included displaying each accelerometer channel on a separate graph, providing additional signal inputs (sine, step and impulse) as well as additional filters (Butterworth 1st and 2nd order low high and bandpass).

like image 983
Peter M Avatar asked Jun 26 '12 12:06

Peter M


1 Answers

I don't think that there is something you can do on xib level since even the IB inspector doesn't have any associated fields that you can edit for this. One solution though could be to add an NSObject in your xib (at root level), name it Copyright (or whatever) and add your information on the Notes field (identity inspector).

Now if don't want to add a new object in your xib just to hold this information, you could just add your copyright notice into the File's Owner notes field. Either way, the information will be included in the xml.

I know it's a bit of a hack but it's just an idea. If anyone though can think of a more proper way for achieving this I would be glad to know as well.

enter image description here

like image 196
Alladinian Avatar answered Sep 28 '22 07:09

Alladinian