home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-07 | 1.3 KB | 33 lines | [TEXT/CWIE] |
- Calc ControlRgn
- Last updated 5/07/96
-
- This snippet shows how to call a CDEF to get the control's Region.
- You can make other calls to the CDEF using the same method.
-
- This snippet works for both 68K and PowerPC. I included
- the both versions so you can see it works for both platforms.
-
- This is the first snippet to use my SimpleApp framework. SimpleApp was
- designed to hide the menial tasks of getting a Mac application
- running. Since SimpleApp handles the event loop and the gory details
- of a running application, this lets you see all the code that the
- snippet is trying to show without having to dig through thousands of
- lines of code. For example, this snippet is 255 lines of code. (126
- lines without comments) Hopefully this will let me get a lot more
- sample code out since I can now concentrate on the sample code and
- not waste my time reinventing the wheel.
-
- One of the benefits of SimpleApp is that it will shield you from
- the gory details of Copland. Since SimpleApp is based on the
- "Don't call us, we'll call you" model, it migrates well into Copland.
- I will be releasing the SimpleApp project when I get the source code
- cleaned up for general distribution.
-
-
- Enjoy,
-
- Matthew Xavier Mora
- Developer Technical Support
- Apple Computer, Inc. mxmora@apple.com
-
-