remove unused variable
replace deprecated NSSavePanel -filename with -URL -path
explicit cast to (unichar) to avoid compiler warnings, replace 'Song Regular' by 'STSong' to display Chinese
compiler warning - casting to (long)
silence compiler warning with parenthesis