Monobjc / monobjc

Git Repository for the Monobjc Project
http://www.monobjc.net/
17 stars 3 forks source link

Switch to transient DynamicAssembly to support sandbox #421

Closed aarononeal closed 11 years ago

aarononeal commented 11 years ago

DefineDynamicAssembly relies on GetCurrentDirectory() which will fail in the Mac sandbox. NSHomeDirectory() must be used instead. Rather than persisting to disk, this patch makes DynamicAssembly transient when used by the runtime.