Re: Spaces in NSUserDefaults keys not allowed in IB 3.1?
Re: Spaces in NSUserDefaults keys not allowed in IB 3.1?
- Subject: Re: Spaces in NSUserDefaults keys not allowed in IB 3.1?
- From: Jon Steinmetz <email@hidden>
- Date: Mon, 1 Sep 2008 08:15:03 -0500
On Aug 1, 2008, at 6:02 AM, patrick machielse wrote:
In IB 3.1 I'm trying to bind to a "Shared Defaults" key containing a
space, say "has registered", but IB 3.1 now gives me an error dialog
saying:
Key paths cannot contain: ' '
and simply won't accept the key. This used to work in previous
versions of IB (2.5?). IB excepts bindings I set up with previous
versions of the program.
I can see how this makes sense when you are binding to regular
object properties, but user defaults keys can and do contain spaces
(f.i. when storing the window frame keys). There is also no
restriction on user defaults keys mentioned in the class'
documentation.
I'm going to report this as a bug, is there a known workaround?
I just bumped into this as well. One thing that works is replacing the
' ' with an '_' and then opening the nib with a text editor and
changing the '_' back to a ' '. This may have some negative
consequence so beware.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden