• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView - Field Editor problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: Bonjour and multi-meg files
  • Next by Date: Re: Calling cocoa app from command line
  • Previous by thread: Re: NSTableView - Field Editor problem
  • Next by thread: URL Connection block?
  • Index(es):
    • Date
    • Thread