On Jun 4, 2012, at 5:50 PM, Antonio Nunes wrote:

> I have implemented window state restauration in an app. This works fine for 
> re-opening documents that were open when the app was last quit. What I now 
> want to do is extend that functionality to files that were not necessarily 
> open when the app was last quit, but simply that have been opened at any time 
> before. I can't put state information into the files themselves, since they 
> are files that need to remain clean and that are not "owned" by my app.

I was recently looking at some old finder api's. and some of it involves fields 
that are pretty much obsolete. 
I was trying to figure out which flag bit setting corresponded to the locked 
checkbox in File>Get Info. At first I thought it was the name locked flag in 
finder flags. It turned out insted to be the node locked setting of a different 
flag. Name locked apparently had something to do with files in the old classic 
System folders. 
Assuming this bit is now never set, and not contents unpredictable, you could 
abscond with it as a user field associated with every file on the machine. Set 
it to mean whatever you want until someone else has the same idea.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to