• 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: Dragging files to NSTextView ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging files to NSTextView ...


  • Subject: Re: Dragging files to NSTextView ...
  • From: Jerry LeVan <email@hidden>
  • Date: Thu, 4 Mar 2004 11:56:05 -0500

Bless you my son :)

How was this wisdom imparted to you?

Thanks,

--Jerry

On Mar 4, 2004, at 9:21 AM, Satoshi Matsumoto wrote:

Hi, Jerry

on 04.3.4 10:43 PM, Jerry LeVan at email@hidden wrote:
Is it possible to "drag a text file" onto a NSTextView *and* have
the internal drag stuff still work?

Yes, you can realize "drag a text file" with overiding concludeDragOperation
in your NSTextView subclass.

- (void)concludeDragOperation:(id <NSDraggingInfo>)sender
{
NSPasteboard *pboard = [sender draggingPasteboard];


if ( [[pboard types] containsObject:NSFilenamesPboardType] )
{
// Perform text file operation you want
......
}
else [super concludeDragOperation:sender];
}


Satoshi

-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Dragging files to NSTextView ... (From: Satoshi Matsumoto <email@hidden>)

  • Prev by Date: What if one can not redo and undo?
  • Next by Date: Re: Correct implementation of undoManagerForTextView
  • Previous by thread: Re: Dragging files to NSTextView ...
  • Next by thread: [BUG?] initialFirstResponder killed by Panther?
  • Index(es):
    • Date
    • Thread