Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Developer Release Notes: BeOS Release 4.5, The Application Kit

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Developer Release Notes: BeOS Release 4.5, The Application Kit

 index   headlines   <<previous   next>> 

The Application Kit
Developer Release Notes
BeOS Release 4.5

BApplication

  • New version of the constructor returns a status_t by reference:

    BApplication(const char *signature, status_t *error);

    If there's a problem constructing the BApplication object, the error argument tells you what went wrong, but your app continues to run.  Previously, the constructor would exit if there was a problem.  If the object is successfully created, error is set to B_OK.  A list of other error codes is forthcoming.

  • New InitCheck() returns the error code set by the constructor.

  • New CountLoopers() and LooperAt() let you step through an application's list of loopers.

    int32 CountLoopers() const;         
    BLooper *LooperAt(int32 index) const;

  • New "Loopers" scripting property lets you ask for an application's list of loopers specifiedby index or (thread) ID.  The loopers are returned (in "result") as an array of BMessenger objects.


BClipboard

  • The new StartWatching() function lets you ask to be notified whenever the data on the clipboard changes.  The StopWatching() function cancels the request for notifications.  The notification's command constant is B_CLIPBOARD_CHANGED; the message looks like this:

    FieldTypeMeaning
    "be:clipboard"B_STRING_TYPE The clipboard's name.
    "be:count"B_INT32_TYPE The number of times data has been committed to the clipboard.  (This is the same as the number returned by the new SystemCount() function, described below.)

  • The new SystemCount() function returns the current commit count for a BClipboard's underlying clipboard repository.  This is a count of the number of times data has been committed to the clipboard, system-wide.

  • The new LocalCount() function returns the system-wide commit count number that designates the last commit made from the calling BClipboard object -- in other words, LocalCount() is an index into the metric provided by SystemCount(). 


BMessage

  • New Rename() function makes it easy to rename a message field.

    status_t  Rename(const char *old_name, const char *new_name);



 index   headlines   <<previous   next>> 

BeOS Release 4.5


Copyright © 1999 Be, Inc.  All rights reserved.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026