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
NSOutlineView and the trash can, take 2
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
NSOutlineView and the trash can, take 2
Subject
:
NSOutlineView and the trash can, take 2
From: John Stiles <
email@hidden
>
Date: Tue, 2 Aug 2005 20:41:53 -0700
I asked about this earlier, but no responses, so I'm going to ask in a different way.
Does anyone have any sample code that demonstrates an NSOutlineView where you can do all of the following:
- drag files from the Finder into the outline view
- drag items from the outline view to the Finder
- drag items from the outline view into the Trash to delete them
- (optional) highlight items in the outline view and press del to delete them
I have code that handles the first two cases, but I have no idea how to improve the code to make it handle deletion.
One guy suggested that I just check the path I get back to see if it's the Trash or not. Honestly, I think that would probably work, but is that the "correct" way? I thought "NSDragOperationDelete" would be involved at some point.
I could also put a fake trash icon somewhere in the window itself and use that, but that's really corny. I don't want to do that unless I'm totally stumped.
_______________________________________________
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
Follow-Ups
:
Re: NSOutlineView and the trash can, take 2
From:
Corbin Dunn <email@hidden>
Re: NSOutlineView and the trash can, take 2
From:
Guy English <email@hidden>
Re: NSOutlineView and the trash can, take 2
From:
Dominic Yu <email@hidden>
Prev by Date:
NSTableView and variable row height with core data
Next by Date:
NSStatusItem:setImage - Icon not displaying
Previous by thread:
Re: NSTableView and variable row height with core data
Next by thread:
Re: NSOutlineView and the trash can, take 2
Index(es):
Date
Thread