New topic: Using the "dirty" close button?
<http://forums.realsoftware.com/viewtopic.php?t=27603> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message computerfreaker Post subject: Using the "dirty" close button?Posted: Fri Apr 17, 2009 3:26 pm Joined: Thu Mar 05, 2009 1:03 pm Posts: 328 Location: USA Hi! I've noticed that, on 99% of Mac apps (including the RB IDE, btw), making some change to a document puts a little black dot in the middle of the close button. Some Internet research reveals that that's a "dirty" flag that warns the user of unsaved changes - testing that research confirms it. However, I have no idea how to implement this in my own code - as has been heavily debated over the past few weeks, RB apps should look like "native" apps, so I'd really like to do this... any ideas? I have 2 ideas to start off with: 1. Use an AppleEvent 2. Use an API call or a series of API calls however, I have no clue which (maybe both?) idea is correct or how to implement it... any thoughts? Thanks! _________________ Learn something new every day, and the rest will take care of itself. Life is a journey, not a destination. Enjoy the trip! Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
