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 -- [EMAIL PROTECTED]
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>

Reply via email to