Hi Folks,
I'm just thinking through how to arrange the classes in my GUI for a programming I've been working on.
Key features are:
Reading printer data and server data from a plist.
Tab for editing printer info.
Tab for editing server info.
Writing updated printer info to Plist
Writing updated server info to Plist
The outline I had in mind was something like:
Plist class:
attribute plist with method to retrieve data from plist
Server class (inherits from Plist):
attributes serverName; MAC; IP
method to write server info to Plist.
Printer class (inherits from Plist):
Attributes printerName; printerURL; printerServer
method to write printer info to PLIST.
Does this sound a reasonable strategy or have I got the wrong end of the stick with the inheritance?
Thanks all.
I'm just thinking through how to arrange the classes in my GUI for a programming I've been working on.
Key features are:
Reading printer data and server data from a plist.
Tab for editing printer info.
Tab for editing server info.
Writing updated printer info to Plist
Writing updated server info to Plist
The outline I had in mind was something like:
Plist class:
attribute plist with method to retrieve data from plist
Server class (inherits from Plist):
attributes serverName; MAC; IP
method to write server info to Plist.
Printer class (inherits from Plist):
Attributes printerName; printerURL; printerServer
method to write printer info to PLIST.
Does this sound a reasonable strategy or have I got the wrong end of the stick with the inheritance?
Thanks all.