Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
967 views
in Technique[技术] by (71.8m points)

ios - 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).

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...