Search code examples
macosdataformat

Has anyone dig into the data format of the mac sticky notes database?


It's located under /Users/username/Library/StickiesDatabase.

I've tried to work on it. It seems to be an out-dated un-keyed Archive file, which nowadays are keyed. NSCoder will do the work, however I can't figure out the Document class organization.

Anyone with any suggestions?


Solution

  • Running class-dump on the Stickies application gave me the following interface, among others:

    @interface Document : NSObject <NSCoding>
    {
        int mWindowColor;
        int mWindowFlags;
        struct CGRect mWindowFrame;
        NSData *mRTFDData;
        NSDate *mCreationDate;
        NSDate *mModificationDate;
    }
    

    That looks like it's probably the class you're after!