Search code examples
iosmacosnsuserdefaultsfoundation

Are there restrictions on NSUserDefault suite names?


Are there any restrictions (length, invalid characters, etc.) on NSUserDefault suite names?

I'm thinking about using a server URL path as a suite name


Solution

  • All the documentation suggests that a domain name is expected. It may be that characters outside of those allowed in a domain will work, but given the documentation explicitly specifies domain name I think it would be wise to adhere to that.