Thanks for your help!

I am indeed working with Snow Leopard.

Here are my bindings & configuration:

— NSTreeController, IB Name "Collections"

Mode: Entity
Entity Name: Collection
Children Key Path: children [a relationship on the Collection managed object]
Prepares Content: YES
Editable: YES
Fetch Predicate: "parent == nil"

Selection Index Paths binding: 
- Bound to: Shared User Defaults Controller
- Controller Key: values
- ModelKeyPath: collectionSelectionIndexPaths
- Raises for Not Applicable Keys: YES

— CollectionOutlineController

Custom Class for handling drag and drop

— NSOutlineView

Connected to CollectionOutlineController at:
- dataSource
- delegate

Selection Index Paths binding: 
- Bound to: Collections (NSTreeController)
- Controller Key: selectionIndexPaths
- Raises for Not Applicable Keys: YES

— NSOutlineView (Table Column)

Value binding:
- Bound to: Collections
- Controller Key: arrangedObjects
- Model Key Path: name
- Allows Editing Multiple Values Selection: YES
- Conditionally Sets Enables: YES
- Creates Sort Descriptor: YES
- Raises for Not Applicable Keys: YES

These are the settings that raise the dataSource error.

Thanks again for your help!

Peace,

Andy



On Jan 20, 2010, at 9:49 PM, Scott Anguish wrote:

> I’m assuming Snow Leopard
> 
> It sounds like they’re marked as @required in the header, but 
> 
> @optional
> 
> /* Required methods
> */
> - (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index 
> ofItem:(id)item;
> - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item;
> - (NSInteger)outlineView:(NSOutlineView *)outlineView 
> numberOfChildrenOfItem:(id)item;
> - (id)outlineView:(NSOutlineView *)outlineView 
> objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item;
> 
> they aren’t.
> 
> Implementing stubs for them won’t help. It sounds like a bindings issue.
> 
> What specifically are your bindings?

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to