• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Checksum of App/NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checksum of App/NIB


  • Subject: Checksum of App/NIB
  • From: Luke Sands <email@hidden>
  • Date: Fri, 3 Aug 2001 14:56:46 +0000

Hi,

Someone suggested a few days ago it would be possible to lock access to
my program if the nib file has been modified by checking the nibs
checksum on startup of my app.

The trouble is, editing the nib file in Interface Builder doesn't seem
to make its checksum change. I think this is because the MainMenu.nib
file is actually a bundle of smaller nib files and all the checksum
routine is doing is a checksum of the container MainMenu.nib and not the
files inside.
I'm sure its not the routine itself that the problem beacause it can
checksum text files and single files succesfully..

The same thing is true with the application itself, the checksum always
stays the same if i change the 'insides'.

Code Snippet:

filename = [[NSBundle mainBundle] bundlePath];

or (depending on whether I want to checksum the whole app or just the
nib)

filename = [[NSBundle mainBundle]
pathForResource:@"MainMenu" ofType:@"nib"];

So can someone tell me how to get a path to one of the class.nib /
info.nib etc which is in a nib bundle which is in my app bundle....

Thanks for your help.

Luke.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: How to get cursor on an NSTextView to go to the top...
  • Previous by thread: How to get cursor on an NSTextView to go to the top...
  • Index(es):
    • Date
    • Thread