Talk:API FrameScriptObject GetObjectType

From Warcraft Wiki
Jump to navigation Jump to search
 /script DEFAULT_CHAT_FRAME:AddMessage( DEFAULT_CHAT_FRAME:GetFrameType() );
 /script DEFAULT_CHAT_FRAME:AddMessage( type( DEFAULT_CHAT_FRAME:GetFrameType() ) );

This displays "ScrollingMessageFrame" and "string", respectively, so I'd say what he's written is fairly accurate. --BobClown (talk) 16:08, 17 July 2008 (UTC)

 /script DEFAULT_CHAT_FRAME:AddMessage( type( DEFAULT_CHAT_FRAME ) );

... and on further examination, the immediate above returns "table", so this function is more useful than just the type() function for examining UI elements. I'm removing the accuracy stub message and adding a note about the method not being completely inherited. --BobClown (talk) 16:18, 17 July 2008 (UTC)