• 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 and the trash can, take 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView and the trash can, take 2


  • Subject: Re: NSOutlineView and the trash can, take 2
  • From: Guy English <email@hidden>
  • Date: Wed, 3 Aug 2005 01:59:25 -0400

Ah - maybe you overlooked ( the easilly overlooked ) NSDragPboard?
That's got everything you wrote to the dragging pasteboard originally.
Hopefully you've put something on there that'll uniquely identify your
records so you can delete them.

Guy

On 8/3/05, John Stiles <email@hidden> wrote:
> Thanks. Could you provide more detail than that? How does this interact with the rest of the file dragging/dropping code? I found a similar snippet on a wiki but couldn't adapt it to work in my app. :|
>
>
> -----Original Message-----
> From: Dominic Yu [mailto:email@hidden]
> Sent: Tue 8/2/2005 10:41 PM
> To: John Stiles
> Cc: CocoaDev list
> Subject: Re: NSOutlineView and the trash can, take 2
>
> 2005/8/2, John Stiles <email@hidden>:
> > - drag items from the outline view into the Trash to delete them
>
> You do use NSDragOperationDelete. Here's a snippet from one of my programs:
>
> - (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)isLocal {
>         return isLocal ? NSDragOperationNone :
>         NSDragOperationGeneric | NSDragOperationCopy | NSDragOperationDelete;
> }
>
> - (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint
> operation:(NSDragOperation)operation {
>         if (operation == NSDragOperationDelete) {
>                 // do deleting stuff here
>         }
> }
>
> -Dominic
>
>  _______________________________________________
> 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:

This email sent to email@hidden

References: 
 >RE: NSOutlineView and the trash can, take 2 (From: "John Stiles" <email@hidden>)

  • Prev by Date: Re: NSOutlineView and the trash can, take 2
  • Next by Date: Re: SVN revision number in CFBundleVersion
  • Previous by thread: RE: NSOutlineView and the trash can, take 2
  • Next by thread: NSStatusItem:setImage - Icon not displaying
  • Index(es):
    • Date
    • Thread