chflag() family functions
Some basic code in AppKit