Hot Door CORE Forum
extending Registration class - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: extending Registration class (/showthread.php?tid=104)



extending Registration class - Rick Johnson - 10-26-2016

Would it be practical (for an intermediate-level coder) to either reference or sub-class Registration to add a few new members to store in a file along with the default items (i.e., be included with the private data)? It's not a high priority, especially if it's complicated, as I could always use the class as a model to write my own, but it's kinda like why bulldoze the house and rebuild it when I could just add a deck to the house I've got.

Thanks! -- Rick


RE: extending Registration class - garrett - 10-26-2016

At the moment it isn't possible to extend the Registration class, but we've already got a low-priority TODO item to add such a "user data" field to enable custom data storage within.


RE: extending Registration class - Rick Johnson - 11-12-2016

For the time being, I'm using one of the string members to store a dictionary with several settings that seem more appropriate for Registration than Preferences. So far it's working just fine.

I just thought I'd pass that along in case it's helpful to others.

-- Rick


RE: extending Registration class - garrett - 11-14-2016

Just thought I would let you know that CORE 0.6.3 is now available, with updates to the Registration class allowing for custom user data (in the right place Tongue )


RE: extending Registration class - Rick Johnson - 11-14-2016

Thank you, Garrett!