Implementing custom views and documents
Implementing custom views and documents
- Subject: Implementing custom views and documents
- From: Tommy Nordgren <email@hidden>
- Date: Tue, 4 Jan 2005 18:29:00 +0100
I am interested in writing a case tool for IF development. I need to
implement a custom document class, which will have multiple windows per
document. Are there any standard varieties of the Model-View-Controller
design pattern for multiple window documents.
I will have at least the following windows:
1) A map window - Shows rooms and connections, allows selecting a room
for editing, allows to select the objects available in a specific room.
2)Object list - a list window containing references to all the objects
in a room, and select an object for editing.
3) Room editor - Allows editing code and and properties for a room.
4)Object Editor - Allows editing of code and properties for an object
in the game.
Particularly for the main view in the Map Window I'm unsure wether to
subclass from NSMatrix, or directly from NSView.
A map consists of cells, which may be either empty or contain a room.
If the cell is empty, the user can choose to insert a room there.
Creating a new room will bring up a room editor window for the room.
If the cell is occupied by a room, the user can click and drag to
another room, to establish a connection between them.
I'm unsure wether this can be done with NSMatrix and a custom cell
class, or I need to directly subclass NSView
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden