Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Sources/MSAESelect.h
// MSAESelect.h |
// |
// Original version by Jon Lansdell and Nigel Humphreys. |
// 4.0 and 3.1 updates by Greg Sutton. |
// ©Apple Computer Inc 1996, all rights reserved. |
#ifndef __MSAESELECT__ |
#define __MSAESELECT__ |
#include <AppleEvents.h> |
#include <AEObjects.h> |
#include <AERegistry.h> |
#include "MSToken.h" |
pascal OSErr DoSelect(const AppleEvent *theAppleEvent, AppleEvent *reply, long refcon); |
OSErr SelectWindowToken(WindowToken* theToken); |
OSErr SelectWindowDesc(AEDesc* windowDesc); |
OSErr SelectTextToken(TextToken* theToken); |
OSErr SelectTextDesc(AEDesc* textDesc); |
OSErr SelectMenuItemToken( MenuItemToken* theToken ); |
OSErr SelectMenuItemDesc( AEDesc* theDesc ); |
OSErr SelectDesc(const AEDesc* aDesc, AEDesc* result); |
OSErr GetWindowSelection(WindowPtr aWindow, TextToken* resultToken, |
short* resultLength); |
OSErr UpdateSelectionToken(TextToken* anInsertToken, TextToken* aSelectionToken, |
short oldLength, short* insertLength); |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14