• 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: Satoshi Matsumoto <email@hidden>
  • Date: Thu, 04 Mar 2004 23:21:30 +0900

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.


  • Follow-Ups:
    • Re: Dragging files to NSTextView ...
      • From: Jerry LeVan <email@hidden>
References: 
 >Dragging files to NSTextView ... (From: Jerry LeVan <email@hidden>)

  • Prev by Date: [BUG?] initialFirstResponder killed by Panther?
  • Next by Date: Re: ATSUHighlightText permanently sets the refresh rect
  • Previous by thread: Dragging files to NSTextView ...
  • Next by thread: Re: Dragging files to NSTextView ...
  • Index(es):
    • Date
    • Thread