Hey All,
so here is a breakdown of my app, it is a client server app used for auctions. The server holds an array of items that are up for auction, the clients (bidders) will get those items, view them and bid on them. I'm currently working on being able to add, delete and modify the auction items in the Auction House app. I should note I'm new to using MVC and am trying to implement it as much, and as correct as possible. Here is a breakdown of my files:
Model Classes
Item -> holds the information representing an auction item (name, description, pic, ect)
AuctionHouse -> holds information for the auction (connected bidders, if the auction is running and an array of items)
View Classes
MainMenu.xib -> is the main window, allows the user to start/ stop the auction and has a button which loads the other window for managing auction items
AuctionItems.xib -> has a table view for displaying all the auction items, loads a sheet for adding/ modifying auction items
Controller Classes
AuctionHouseViewController -> handles most of the functionality of the app in terms of starting/ stoping the auction and interacting with bidders
AuctionItemsController -> has the outlets for the view items, actions for adding, removing, modifying etc and I think it should also have the table view methods.
My AuctionHouseViewController creates an AuctionHouse item and uses it throughout the lifecycle of the application. I'm stuck now in how do I access the array of auction items stored in that object in the AuctionItemsController files?
Any suggestions?
so here is a breakdown of my app, it is a client server app used for auctions. The server holds an array of items that are up for auction, the clients (bidders) will get those items, view them and bid on them. I'm currently working on being able to add, delete and modify the auction items in the Auction House app. I should note I'm new to using MVC and am trying to implement it as much, and as correct as possible. Here is a breakdown of my files:
Model Classes
Item -> holds the information representing an auction item (name, description, pic, ect)
AuctionHouse -> holds information for the auction (connected bidders, if the auction is running and an array of items)
View Classes
MainMenu.xib -> is the main window, allows the user to start/ stop the auction and has a button which loads the other window for managing auction items
AuctionItems.xib -> has a table view for displaying all the auction items, loads a sheet for adding/ modifying auction items
Controller Classes
AuctionHouseViewController -> handles most of the functionality of the app in terms of starting/ stoping the auction and interacting with bidders
AuctionItemsController -> has the outlets for the view items, actions for adding, removing, modifying etc and I think it should also have the table view methods.
My AuctionHouseViewController creates an AuctionHouse item and uses it throughout the lifecycle of the application. I'm stuck now in how do I access the array of auction items stored in that object in the AuctionItemsController files?
Any suggestions?