• 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
Re: NSOutlineView + selectionIndexPaths binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView + selectionIndexPaths binding


  • Subject: Re: NSOutlineView + selectionIndexPaths binding
  • From: Andrew Shamel <email@hidden>
  • Date: Wed, 20 Jan 2010 22:23:20 -0800

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 (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

References: 
 >NSOutlineView + selectionIndexPaths binding (From: Andrew Shamel <email@hidden>)
 >Re: NSOutlineView + selectionIndexPaths binding (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Unable to recieve mouse moved events on NSBorderless window
  • Next by Date: Core Data SQLite share hang on 10.6.2
  • Previous by thread: Re: NSOutlineView + selectionIndexPaths binding
  • Next by thread: Re: NSOutlineView + selectionIndexPaths binding
  • Index(es):
    • Date
    • Thread