realbasic-nug
[Top] [All Lists]

Re: dynamically binding a Timer (was Re: Swapping Magnify Cursors on a C

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: dynamically binding a Timer (was Re: Swapping Magnify Cursors on a Canvas)
From: Charles Yeomans <charles at declareSub dot com>
Date: Fri, 23 Feb 2007 18:20:25 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 998 dot 1172257244 dot 1046 dot realbasic-nug at lists dot realsoftware dot com> <8A57A2E6-E0F5-43DF-9DE9-8F0F2A1715E1 at xs4all dot nl>
------------------------
Charles Yeomans
http://www.declareSub.com/


On Feb 23, 2007, at 6:08 PM, Robert and Sigrid wrote:

>
> On Fri, 23 Feb 2007, at 11:58, Norman Palardy <npalardy at great-white-
> software.com> wrote:
>
>> On Feb 23, 2007, at 11:49 AM, joe at strout dot net wrote:
>>
>>> On Feb 23, 2007, at 18:38 UTC, Dennis Birch wrote:
>>>
>>>>> You're very welcome.  Let's see people get THAT sort of tidbit on
>>>>> the forums!  :)
>>>>
>>>> I agree that this is quite cool. Do you know of any other hidden
>>>> gems
>>>> like this?
>>>
>>> Oh yes, I'm full of them.  But I often need some stimulus (like the
>>> question posted this morning) in order to think of them.  Pizza also
>>> works well.
>>
>> This makes me wonder how the hell I ship a pizza to an unknown
>> location via the internet :)
>
>   Norman,
> let's try this:
>
> _______
> \ P P P P /  peperoni
>   \  S S S /    salami
>     \  O O/      Olives
>       \  A/        Anchovies
>        \  /
>         V
>
> Joe,
>
> I'm wondering how one can get to the "dirty" property of the mac OS X
> windows (the bullet in the red close button), without using plug-ins,
> and maybe even declares (but my guess is the declare-route would be
> the way to go?). Tickled the taste-buds a bit more?....


See <http://www.declaresub.com/ideclare/Windows/index.html>.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


From  Fri 23 Feb 2007 16:20:52 -0700
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 0452E1A6B964; Fri, 23 Feb 2007 15:21:03 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 
        www.realsoftware.com
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id 21F931A6B95A;
        Fri, 23 Feb 2007 15:21:02 -0800 (PST)
Received: from cust-66.116.103.65.switchcommgroup.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 2CBF7E6625;
        Fri, 23 Feb 2007 17:20:54 -0600 (CST)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 92841E6618
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 23 Feb 2007 17:20:52 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 6360F6FD1AB
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 23 Feb 2007 16:20:52 -0700 (MST)
Date: Fri, 23 Feb 2007 16:20:52 -0700
Subject: accessing the dirty flag (was Re: dynamically binding a Timer)
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <8A57A2E6-E0F5-43DF-9DE9-8F0F2A1715E1 at xs4all dot nl>
X-Mailer: VerEx Email Gateway
Message-Id: <20070223232052 dot 6360F6FD1AB at mail dot verex dot com>
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

On Feb 23, 2007, at 23:08 UTC, Robert and Sigrid wrote:

> I'm wondering how one can get to the "dirty" property of the mac OS X
> windows (the bullet in the red close button), without using plug-ins,
> and maybe even declares (but my guess is the declare-route would be  
> the way to go?). Tickled the taste-buds a bit more?....

Your guess is right: this is a job for declares.  In fact it's one of
the declares in the "Declare Examples.rb" project that's been on the CD
for a few years.  It might need a little dusting off... but if you only
care about OS X, then this should do it for a Mach-O app:

    Declare Function IsWindowModified Lib "Carbon" (window as
WindowPtr) as Boolean
    Declare Function SetWindowModified Lib "Carbon" (window as
WindowPtr, modified as Boolean) as Integer

Now just call IsWindowModified or SetWindowModified as needed, passing
the window of interest right on in.

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:
<http://support.realsoftware.com/listarchives/lists.html>


From  Fri 23 Feb 2007 16:24:38 -0700
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 5EEB71A6BA2A; Fri, 23 Feb 2007 15:24:45 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 
        www.realsoftware.com
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id 470211A6BA20;
        Fri, 23 Feb 2007 15:24:44 -0800 (PST)
Received: from cust-66.116.103.65.switchcommgroup.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 805EAE6652;
        Fri, 23 Feb 2007 17:24:40 -0600 (CST)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id A609EE6647
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 23 Feb 2007 17:24:38 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 772146FD1C2
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 23 Feb 2007 16:24:38 -0700 (MST)
Date: Fri, 23 Feb 2007 16:24:38 -0700
Subject: work-around found for broken AppleEvent.StringParam
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
X-Mailer: VerEx Email Gateway
Message-Id: <20070223232438 dot 772146FD1C2 at mail dot verex dot com>
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

Quite a number of people have signed onto this report, noting that
AppleEvent.StringParam is broken (and may crash your app) in 2007r1:

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

Nobody had admitted to a work-around, so I added mine.  And since there
were so many people interested in it, I thought it worth pointing out. 
It seems to work for me, but if you see any problems with it, please do
tell.

(One possible problem is whether Encodings.SystemDefault is the right
assumption to make -- I wasn't able to really test that before running
out of time today.)

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:
<http://support.realsoftware.com/listarchives/lists.html>


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