View Single Post
08-02-16, 10:51 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
No, "framename" is a global variable, pointing to the object by that name, which (in the case of a frame) a table, which has a "unit" key. You can access it and set its keys/values just like any other table.

/dump PlayerFrame:GetObjectType() ==> "table"
/dump PlayerFrame.unit:GetObjectType() ==> "string"
/dump PlayerFrame.unit ==> "player"
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.