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.

  • Invalid color System, labelColor (warning given only once)
  • iPhone Interface Builder - Moved resources to sub-directory, now IB can't see them!
  • Xcode changes unmodified storyboard and XIB files
  • How do I change “initwithNibName” in storyboard?
  • Swift - “use of unresolved identifier”
  • Is this a correct way of creating a universal iOS app? Xcode 4 - Seems to work?
  • 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).

    Solutions Collect From Internet About “How to add copyright information to a Nib file?”

    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