On Jun 05, 2006, at 6:04 AM, [EMAIL PROTECTED] wrote:
On Jun 03, 2006, at 09:26 UTC, Sven E Olsson wrote:
THIS CODE WORKS: (look at the MacType and Name)
dim JPEGtype as New FileType
JPEGtype.Name = "JPEG"
JPEGtype.MacType = "JPEGX"
..
me.AcceptFileDrop(JPEGtype + PNGtype + GIFtype)
If this works, it's only because you're getting lucky. First,
you've assigned an invalid MacType (a MacType can be only 4 bytes);
YES, that was to show how bad it works! And it is NOT depending on
the FileType!
and second, you've declared a local FileType, and then passed it to
AcceptFileDrop. By the time a file is actually being dropped, this
local file type will be long gone.
So the asigned 'value' to me.acceptFileDrop is lost ??
The only way I can imagine this working is if your project happens
to have matching types defined somewhere else (somewhere
persistent, like in a File Type Set).
Nope it is not depending on other declared filetypes, check the
example ...
----
YES, I am lucky ... to get things to work with REALbasic..
And about the FileTypes, you must have LUCK to get it to work...
PLEASE (to you all), download the example i have written and check if
you could see a logic in the RB Filetypes ?? The example include two
jpeg files one with FileType and one without. It also describe that
there is no affect to the file extensions ...
http://www.xhtmlsoft.com/rb/filetypebug.zip (24KB)
OS X 10.4.6 Intel RB2006r2
Sven E Olsson
[EMAIL PROTECTED]
http://www.xhtmlsoft.com/dev/realbasic.html
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>