Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: NSTableView - Field Editor problem (From: "I. Savant" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.