Squeak Class Documentation category index | class index  
 
EToySenderMorph
  category: Morphic-Collaborative
  superclass: EToyChatOrBadgeMorph
  subclasses:

EToySenderMorph
new
userName: 'Bob Arning'
userPicture: nil
userEmail: 'arning@charm.net'
userIPAddress: '1.2.3.4';
position: 200@200;
open
"
EToySenderMorph represents another person to whom you wish to send things. Drop a morph on an EToySenderMorph and a copy of that morph is sent to the person represented. Currently only peer-to-peer communications are supported, but other options are planned.
"

instance methods
  as yet unclassified
  aboutToBeGrabbedBy:
acceptDroppingMorph:event:
checkOnAFriend
currentBadgeVersion
establishDropZone:
fixOldVersion
initialize
initializeToStandAlone
installModelIn:
ipAddress
ipAddress:
killExistingChat
mouseEnteredDZ
mouseLeftDZ
sendStatusCheck
sendStatusReply
startAudioChat
startAudioChat:
startChat
startChat:
startNebraskaClient
startTelemorphic
step
tellAFriend
transmitStreamedObject:
transmittedObjectCategory
userName
userName:userPicture:userEmail:userIPAddress:
userPicture
wantsDroppedMorph:event:

  object fileIn
 

class methods
  as yet unclassified
  descriptionForPartsBin
instanceForIP:
instanceForIP:inWorld:
nameForIPAddress:
pictureForIPAddress:

instance methods
  as yet unclassified top  
 

aboutToBeGrabbedBy:

The receiver is being grabbed by a hand.
Perform necessary adjustments (if any) and return the actual morph
that should be added to the hand.


 

acceptDroppingMorph:event:

This message is sent when a morph is dropped onto a morph that has agreed to accept the dropped morph by responding 'true' to the wantsDroppedMorph:Event: message. This default implementation just adds the given morph to the receiver.


 

checkOnAFriend


 

currentBadgeVersion

enables on-the-fly updating of older morphs


 

establishDropZone:


 

fixOldVersion


 

initialize


 

initializeToStandAlone

Set up the receiver, created by a #basicNew and now ready to be initialized, as a fully-formed morph suitable for providing a graphic for a parts bin surrogate, and, when such a parts-bin surrogate is clicked on, for attaching to the hand as a viable stand-alone morph. Because of historical precedent, #initialize has been expected to handle this burden, though a great number of morphs actually cannot stand alone. In any case, by default we call the historical #initialize, though unhappily, so that all existing morphs will work no worse than before when using this protocol.


 

installModelIn:

if we get this far and nothing exists, make it up


 

ipAddress


 

ipAddress:


 

killExistingChat


 

mouseEnteredDZ


 

mouseLeftDZ


 

sendStatusCheck


 

sendStatusReply


 

startAudioChat


 

startAudioChat:


 

startChat


 

startChat:


 

startNebraskaClient


 

startTelemorphic


 

step

Do some periodic activity. Use startStepping/stopStepping to start and stop getting sent this message. The time between steps is specified by this morph's answer to the stepTime message. The generic version dispatches control to the player, if any. The nasty circumlocation about owner's transformation is necessitated by the flexing problem that the player remains in the properties dictionary both of the flex and the real morph. In the current architecture, only the top renderer's pointer to the player should actually be honored for the purpose of firing.


 

tellAFriend


 

transmitStreamedObject:


 

transmittedObjectCategory


 

userName


 

userName:userPicture:userEmail:userIPAddress:


 

userPicture


 

wantsDroppedMorph:event:

Return true if the receiver wishes to accept the given morph, which is being dropped by a hand in response to the given event. Note that for a successful drop operation both parties need to agree. The symmetric check is done automatically via aMorph wantsToBeDroppedInto: self.


  object fileIn top  

class methods
  as yet unclassified top  
 

descriptionForPartsBin

If the receiver is a member of a class that would like to be represented in a parts bin, answer the name by which it should be known, and a documentation string to be provided, for example, as balloon help. When the 'nativitySelector' is sent to the 'globalReceiver', it is expected that some kind of Morph will result. The parameters used in the implementation below are for documentation purposes only!


 

instanceForIP:


 

instanceForIP:inWorld:


 

nameForIPAddress:


 

pictureForIPAddress: