Re: [Q]How can I bring the information of the file that I select from desktop to a program that I intend to make?
Re: [Q]How can I bring the information of the file that I select from desktop to a program that I intend to make?
- Subject: Re: [Q]How can I bring the information of the file that I select from desktop to a program that I intend to make?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 4 Jan 2005 15:40:53 +0100
At 16:39 Uhr +0900 04.01.2005, hwang hee wrote:
I would like to know how to put the information about the file's
path in a text filed by clicking a file with the mouse-or, others
actions-on desktop. Of course, it should happen while I am executing
the program.
Don't do that. Use drag & drop instead. Users can drag a file from
the Finder (or a document's proxy icon, or whatever), and drop it on
your file path field. You will have to write the drop-accepting code
for your field yourself right now.
In my opinion, it is better to use the method of obtaining some
information by catching a particular event under Operating System.
Some programmers call this "Hooking."
Better than what? IMHO, drag and drop is better, because the
clicking technique requires that you enter a "file picking mode", and
modes are something that should be avoided where you can; modes
confuse most users because they click on the same object, but
something completely different happens this time than what happened
without the mode.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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