::SetDialogItemText(item, statusPStr); ::DrawDialog(mDialog);
::SetControlData(staticTextControl, 0, kControlStaticTextTextTag, maxLen, statusString.get()); ::DrawOneControl(staticTextControl);
nsSplashScreenMac::Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *someData){  // update a string in the dialog    nsCAutoString statusString;  statusString.AssignWithConversion(someData);  Handle    item = nsnull;  Rect      itemRect;  short     itemType;  ::GetDialogItem(mDialog, eSplashStatusTextItem, &itemType, &item, &itemRect);  if (!item) return NS_OK;    // convert string to Pascal string  Str255    statusPStr;  PRInt32   maxLen = statusString.Length();  if (maxLen > 254)    maxLen = 254;  strncpy((char *)&statusPStr[1], statusString.get(), maxLen);  statusPStr[0] = maxLen;    ::SetDialogItemText(item, statusPStr);  ::DrawDialog(mDialog);  return NS_OK;}