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: Tips on how to display NSArray of NSDictionaries using NSTreeController?





What I'd like to do is have the top level of the NSOutlineView show the value for the 'description' key, and the next level of disclosure show the set of key/value pairs for the 'settings' dictionary

You can't really use dictionaries with bindings in this way. You essentially need to create an array of objects that have accessors like "propertyKey" and "propertyValue", and bind those to the outline view.

Thanks for the reply - this confirms that my current organization does not correspond to the functionality provided by bindings for NSOutlineView.  Will have to come up with a workaround.  

Does anyone know where this is documented in more detail?  It's still not clear to me what gets bound to the propertyKey and propertyValue accessors mentioned above.

Rick

    - Scott

 _______________________________________________
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

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

This email sent to email@hidden

References: 
 >Tips on how to display NSArray of NSDictionaries using NSTreeController? (From: Rick Hoge <email@hidden>)
 >Re: Tips on how to display NSArray of NSDictionaries using NSTreeController? (From: Scott Stevenson <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.