UserDomainMask

I have downloaded some Code which had previously worked for the coder, who was able to run ok on his App.

However when I try to use the code to save data to iphone memory I get an Error Message stating ...Use of unresolved Identifier "UserDomainMask"..

I have tried using "NSUserDomiainMask" to replace it and that doesn't seem to solve the problem.

It seems that the coder may have been using a Beta version of Xcode 6 for his App.


Can anyone please tell me what should replace "UserDomainMask" in the code below?

/


func documentsDirectory() -> string {

let documentsFolderPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask, UserDomainMask, true)[0] as String

return documentsFolderPath

}



Kind Regards.

Del

UserDomainMask
 
 
Q