Hello,
I have an array with various columns (First name, last name, gender, department, etc.) and I created a custom class that will merge the first and last name into one non-editable column, and it works fine until I bind the table’s array controller to a variable in the user defaults, it give this error:
*** -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value '(
{
},
"<NewDocStaffDBClass @0x200686b20: OSAID(205)>
If it is not bound to the user defaults, it behave fine, but the contents are obviously not saved. If I do not use this class, it works fine. Although the result is returned as a string, maybe something is wrong when it attemps to return it to the main script?
From what I have seen on the web with this error, it may be the case. Any ideas?
This is the class I am using to merge the first and last names:
script NewDocStaffDBClass
property parent : class "NSObject"
property firstName : "" as string
property lastName : "" as string
property gender : 0 as integer
property extensionNumber : "" as string
property department : 0 as integer
on completeName()
if my firstName = missing value then set my firstName to ""
if my lastName = missing value then set my lastName to ""
return (((my firstName as string) & " " & (my lastName as string)) as string)
end completeName
end script
Thanks!
Browser: Safari 531.22.7
Operating System: Mac OS X (10.6)