Open, New, and Drag in DBA
Open, New, and Drag in DBA
- Subject: Open, New, and Drag in DBA
- From: Michèle Garoche <email@hidden>
- Date: Mon, 19 Aug 2002 14:29:28 +0200
Hello,
I have a document based application which deals witth images.
The UI is a window with a customized NSImageView, with no image in it
(in IB).
I use:
windowDidLoad in a customized NSWindowController to open a tiff
in bundle at launch time,
application:openFile in an application controller to handle drop
on icon applicatiion or dock icon.
document:setFileName in a customized NSImageView to handle drag
and drop from Finder.
At the moment, all works fine, but:
1 -
If I drop an image onto the NSImageView just after launch time (i.e.
just after loading the tiff in bundle), next time I open a new document
the image used is the one I've dropped and not the one in bundle. Not a
big deal, but to be consistent, which function do I need to invoke to
use the image in the bundle and when?
2 -
What do I do to have the Open recent menu updated with the name of the
image dropped onto the view?
As the doc and the mailing lists archives have not enlighten me, hope
someone could help me.
Many thanks in advance,
Michhle
_______________________________________________
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.