Re: NSTableView - Field Editor problem
Re: NSTableView - Field Editor problem
- Subject: Re: NSTableView - Field Editor problem
- From: Eric Long <email@hidden>
- Date: Thu, 15 Mar 2007 16:36:43 -0700
- Thread-topic: NSTableView - Field Editor problem
Mystery solved...
The array behind the table was a mutable copy from the prefs, but not a DEEP
mutable copy.
Strangely, I wasn't seeing any console messages about attempting to modify
an immutable object, until after I noticed that in my awakeFromNib method I
was programmatically setting up a column to use a checkbox for its data
cell. I commented out that code and set it up in IB instead. Then after
that change, suddenly the checkboxes would no longer toggle. I saw in the
console I was getting a message telling me I was trying to modify an
immutable object.
I fixed the code to use a deep mutable copy of the array from prefs, and
everything now works like it should. No more bizarre drawing.
Eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden