Drag and Drop NSTextView (again)
Drag and Drop NSTextView (again)
- Subject: Drag and Drop NSTextView (again)
- From: "Andrew O. Mellinger" <email@hidden>
- Date: Mon, 21 Jul 2003 08:38:35 -0700
Greetings!
I'm fairly new to the cocoa list and cocoa in general. I'm trying
to implement Drag and Drop to drop file contents on to an NSTextView
and I'm having trouble following posts I've found in the archive.
First off, the last post I saw was back in July 2002, maybe it has
gotten easier since then? Or maybe Apple has a tech note on this?
(That would be great!)
So what I've done:
1) Subclassed NSTextView for my view so that I'm supporting
draggingEntered: method.
2) Subclassed NSTextView again to make the window's field editor.
3) Updated my window delegate to alloc and return the thing from #2
in windowWillReturnFieldEditor.
Here's the problem. In subclass for #1, I'm supposed to enable
editing. Does this mean making it the first responder? How do I set
the focus to my text view from the draggingEntered: method to
activate the field editor?
And if anyone from apple is reading, this would be a great tutorial
or technote.
Thanks,
Andrew
--
_______________________________________________
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.