realbasic-nug
[Top] [All Lists]

Re: [OS X] detecting screen resolution changes

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: [OS X] detecting screen resolution changes
From: "Tomis E." <gostcoder at yahoo dot com>
Date: Tue, 28 Feb 2006 20:42:41 -0800 (PST)
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=20qTKI9FvkQRvtSQTnGsHuKWuVBhU7z8/UdLnWU83QO/mwLbMGUw+dpgOcC/fooVov3e2qV8aj6WsbjofHAlSbaNIBTbRrGImgAy4o4A5gq20Da4LCtvkqpVv6+vx6A7XDZfVIgZA2oNpryI2i54xvm6tp/ewZK1JuNYqNc58Qc= ;
My first guess would be to register for a Carbon Event:
http://developer.apple.com/documentation/Carbon/Reference/Carbon_Event_Manager_Ref/index.html

I did a few quick searches on apple's developer documentation page and I didn't 
find anything
about detecting screen changes via Carbon Events. But hopefully a more in-depth 
search would find
something.

I found this PDF on Apple's site:
http://developer.apple.com/documentation/Carbon/Conceptual/Optimizing_DisplayManager/Optimizing_DisplayManager.pdf

It talks about registering for the appropriate Display Manager AppleEvents for 
screen changes. I
haven't tested this. But I know that creating AppleScriptable apps with RB is a 
pain.

Hope that helps!

~ Tomis

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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>