• 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
[NSPlaceholderDictionary initWithObjects:forKeys:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSPlaceholderDictionary initWithObjects:forKeys:]


  • Subject: [NSPlaceholderDictionary initWithObjects:forKeys:]
  • From: Joannou Ng <email@hidden>
  • Date: Fri, 2 Jan 2004 21:19:39 -0500

Hi all,

Need some input on an exception I'm getting from my code.

My interface consists of a master-detail interface as described in the controllers tutorials. I have a master table with only one column. The value for each row's column is bound to one of the keys of my arrayController's arrangedObject. My detail interface has six text fields bound to different keys of my arrayController's selection. All six text fields have placeholder texts when the value is nil.

An illustration:

MyClass with 7 instance variables: a, b, c, d, e, f, g
The master table's only column bound to MyClass' instance variable: a
The detail interface's text fields bound to MyClass' instance variables: a, b, c, d, e, f
MyClass' instance variable: g, is not shown anywhere on the interface.

Now, when I add an object to the arrayController through add:, I get the following exception:

-[NSPlaceholderDictionary initWithObjects:forKeys:]: number of objects (6) not equal to number of keys (7)

Looks like it sees that I have 7 instance variables, but only six placeholders configured.

How now?

Cheers, Joannou.

We have 17,000 applicants for 1,000 retail positions. It's harder to get a job at an Apple Store than it is to get admitted to Stanford University. - Ron Johnson, Senior Vice President of Retail, Apple Computer, Inc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Encryption
  • Next by Date: NSPro UI clone?
  • Previous by thread: Is Merge Malfunctioning?
  • Next by thread: Re: [NSPlaceholderDictionary initWithObjects:forKeys:]
  • Index(es):
    • Date
    • Thread