realbasic-nug
[Top] [All Lists]

Re: FileType OS X RB2006r2

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: FileType OS X RB2006r2
From: Hans-Georg <pantarei at mac dot com>
Date: Tue, 25 Apr 2006 22:39:32 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <3CFF6704-76DF-4C95-8B4F-170B162E78BB at xhtmlsoft dot com> <76456BA0-FCB4-4343-AE77-3A54E1EE005C at mac dot com> <00D463D7-9A9C-4996-A63A-5F304A0E7FE9 at mac dot com> <a06200717c0742ca6b3b4 at [10 dot 0 dot 1 dot 2]> <676D915F-F1C6-4875-B2FF-FE261372D789 at mac dot com>
Am 25.04.2006 um 22:11 schrieb Hans-Georg:

There is only risk: that your dummy value is used as MacType by someone, like XXXX (that is in the Apple reserved space) could be used by Apple for the next great thing.

Which isn't a real risk, because you can check for this case in your file open routine like

If myFile.MacType = MyDummyType Then
        // stop reading then
End If

The only inconvenience is that in a rare case files could be displayed in your opendialog which you cannot not open. Which is a great improvement compared to the non-workaround solution.

Hans-Georg





_______________________________________________
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>


From  Tue 25 Apr 2006 14:41:30 -0600
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Tue, 25 Apr 2006 15:41:46 -0500
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 301B6121B572; Tue, 25 Apr 2006 15:41:38 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from hoggle.dreamhost.com (hoggle.dreamhost.com [66.33.197.5])
        by lists.realsoftware.com (Postfix) with ESMTP id 39AD9121B562
        for <realbasic-nug at lists dot realsoftware dot com>;
        Tue, 25 Apr 2006 15:41:31 -0500 (CDT)
Received: from [10.0.1.2] (c-67-174-105-26.hsd1.co.comcast.net [67.174.105.26])
        by hoggle.dreamhost.com (Postfix) with ESMTP id BEBF8731AE
        for <realbasic-nug at lists dot realsoftware dot com>;
        Tue, 25 Apr 2006 13:41:30 -0700 (PDT)
Date: Tue, 25 Apr 2006 14:41:30 -0600
From: joe at strout dot net
To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
In-Reply-To: <676D915F-F1C6-4875-B2FF-FE261372D789 at mac dot com>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060425204130 dot BEBF8731AE at hoggle dot dreamhost dot com>
Subject: Re: FileType OS X RB2006r2
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

Hans wrote:
May I guess that is a theoretical explanation which you didn't prove in code? A case of how it should be?

No, it certainly WAS that way when I wrote and tested the code.  :)  But you're 
right, it appears that it has since been broken, by either a change in RB or a 
change in OS X (I suspect the former, but it's hard to be sure).  I've reported 
the problem here:

<http://www.realsoftware.com/feedback/viewreport.php?reportid=gqqowvhv>

I certainly wouldn't recommend relying on this behavior, though, since it is 
not correct and may start working properly again one day.

If you want to display only files with a specific extension, which may have a MacType or may not, in an OpenDialog, you have possibilities: First, use the MBS plugin. Second, create a filetype with the correct extension but with a dummy MacType.

True, but that's not something a well-behaved Mac app should do anyway (and your second 
possibility is apparently relying on a bug in RB).  I can take a JPEG file and rename it 
to end in ".xml" far more easily than I can change the actual MacType, but that 
doesn't make it an XML file.

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Verified Express, LLC    "Making the Internet a Better Place"
http://www.verex.com
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>