Use smaller size for xattrs, either Apple gives us the wrong maximum xattr size to use (4kB) or NSData does not use bytes. 
Use smaller size for xattrs, either Apple gives us the wrong maximum xattr size to use (4kB) or NSData does not use bytes. 

Some more checks for errors in loops writing notes. 
ycaihua/skim-app,WoLpH/skim,WoLpH/skim,ycaihua/skim-app,ycaihua/skim-app,ycaihua/skim-app,WoLpH/skim,WoLpH/skim,ycaihua/skim-app,WoLpH/skim