• 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
model key path and properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

model key path and properties


  • Subject: model key path and properties
  • From: Torsten Curdt <email@hidden>
  • Date: Fri, 15 Jul 2011 00:29:34 +0200

Xcode4.0.2 on 10.6.8:

I have a NSArrayController and I add items to that controller. In the
nib I have bound a NSPopUpButton's "Content" to that
NSArrayController's arrangedObjects. Now with an empty model key path
I see the object's description in the popup. All good and expected.
Now these items the NSArrayController manages have a "name" property.
Accessing the name like this works just fine:

    NSLog(@"name: %@", [[[self.myArrayController arrangedObjects]
objectAtIndex:0] name]);

Now I would think I just need to change the model key path of the
"Content" binding to be "name" but IB gives me the exclamation mark
and says "no completion found".

I am confused. Shouldn't this just work like that? ...or what did I miss?

cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: model key path and properties
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Exposing NSTableView's usesAlternatingRowBackgroundColors in the user preferences
  • Next by Date: Re: Core Data search optimizations
  • Previous by thread: Re: Core Data search optimizations
  • Next by thread: Re: model key path and properties
  • Index(es):
    • Date
    • Thread