examples: storing session in IDE

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41793 4005530d-fff6-0310-9dd1-cebe43e6787f
cocoa: fixed compilation with 2.7.1 and fixed TextOut with empty string

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41794 4005530d-fff6-0310-9dd1-cebe43e6787f