• 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
when automatically prepares content doesn't
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

when automatically prepares content doesn't


  • Subject: when automatically prepares content doesn't
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 16 Jun 2006 11:47:20 -0700
  • Thread-topic: when automatically prepares content doesn't

Let's say I have an NSArrayController bound to MyObject's "thing", which is
an NSMutableArray ivar. And let's say I bind columns of an NSTableView to
that, in the usual way.

My experiments show that if I call the NSArrayController's "add" and edit
values in the table, the NSMutableArray is created (and it gets a dictionary
with the correct keys and values).

But if I implement the keyed accessors to "thing" in MyObject, this stops
working. I must initialize "thing" myself (e.g. in MyObject's awakeFromNib).
This is even though "automatically prepares content" is checked.

Is this known? Expected? Documented? Reasonable?

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: when automatically prepares content doesn't
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: NSTextView or NSTextField?
  • Next by Date: Detecting and preventing launch of arbitary process
  • Previous by thread: How to draw text with fixed spaced font using arbitrary cpi
  • Next by thread: Re: when automatically prepares content doesn't
  • Index(es):
    • Date
    • Thread