DragNDropOutlineView Example Define Syntax
DragNDropOutlineView Example Define Syntax
- Subject: DragNDropOutlineView Example Define Syntax
- From: Ronnie O <email@hidden>
- Date: Thu, 23 Jun 2005 19:27:47 -0400
This is probably more of a C or Objective C syntax question than an
OutlineView question, but can anyone explain to me what is going on
with the following defintion statements in the DragNDropOutlineView
example (this is in the Developer Examples Folder):
// Conveniences for accessing nodes, or the data in the node.
#define NODE(n) ((SimpleTreeNode*)n)
#define NODE_DATA(n) ((SimpleNodeData*)[NODE((n)) nodeData])
#define SAFENODE(n) ((SimpleTreeNode*)((n)?(n):(treeData)))
The entire application is set up around this. I have been trying to
understand the outline view and ignore this but the app keeps
accessing nodes with this syntax. So can anyone refer me to an
explanation of these define statements or explain the way this tree is
being accessed in the example. I am using children arrays filled with
custom node classes. So the example seems to be a bit of an
overcomplication, esepcially for a learning tool. Any help is
appreciated. Thanks!
............
Ronnie
_______________________________________________
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