• 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
A Drag that Never Starts...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A Drag that Never Starts...


  • Subject: A Drag that Never Starts...
  • From: Steve Cronin <email@hidden>
  • Date: Fri, 2 Feb 2007 23:17:23 -0600

Folks;


I know this one must be simple but I’m just not seeing it.

I have 2 tableViews on the same window. I want the user to drag rows from one to the other (all ’isLocal‘ activity).
The application is using CoreData and Bindings pretty heavily (e.g. no normal use of the old school ‘DataSource’...)


The Source TableView is a subclass of NSTableView and this subclass is in IB.
(I know this because the awakeFromNib for the subclass leaves a message in the log)


The SourceView’s single TableColum has it’s Value Bindings set to an ArrayController/ArrangedObects/Key. This loads and displays fine.
The ArrayController has a CoreData Entity declared (and prepared automatically) and it’s ManagedObejctContext is set by bindings.


The problem is that the subclassed TableView‘s draggingSourceOperationMaskForLocal is never called.
I can select lines in the subclassed TableView but they won’t budge and no call is made...
Whereas in mmalc’s ”Bookmark" as soon as you move any selected lines this method is called...


I’ve tried setting up Either/Or/and Both Delegates and DataSource connections (back to the ArrayController).
I don’t really understand why I should have to set these up but all the examples I have seen so far do so.


If i have subclassed a TableView and ArrayController correctly and have supplied all the drag protocol methods do I have to set up DataSource or Delegate or Both?
Can you point me to a clear explanation of why?


Does the fact that I am using CoreData entities in the ArrayController make any of this behave differently? If so where is this explained?

Whack me on the head! - what am I missing here?
Many Thanks!
Steve


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: A Drag that Never Starts...
      • From: "I. Savant" <email@hidden>
    • Re: A Drag that Never Starts...
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Close button vs. command-h
  • Next by Date: Re: A Drag that Never Starts...
  • Previous by thread: Re: Close button vs. command-h
  • Next by thread: Re: A Drag that Never Starts...
  • Index(es):
    • Date
    • Thread