>> I'm not sure how you get to Step #4. :-) Perhaps reading the output
>> of the Direct2Web stuff?
>
> Actually I've found except for the fact that they are written in the hated
> Java lanugage ;-) that reading the source files which DTW generates is very
> useful. There are some great examples of how to use peer and child editing
> contexts. Apple should really put those in the docs.
I think Apple is struggling with the whole documentation issue. When I took
Programming WO II, I suggested that a book for Direct To Web should be
included. I was told that documentation is something that Apple is trying
hard to do right but they're short on staff and trying to get WO 4 out and
have it work really well. I suspect that we'll see more and better docs in
future releases.
The guys at Apple are very busy and all the help and input we get on this
list is very much appreciated. Perhaps we non-Apple folks could all get
together and work with WOSource.com (or someone) to setup a page of
WebObjects tips and tricks. We could submit components and code examples. It
seems that the readers of this list range from long time Openstep/WO
developers to people completely new to Openstep and WO. The long time
developers might be able to make suggestions and changes to submitted
components and new users would definitely benefit. Lots of code is posted on
this list. It would be nice to have it neatly arranged on a web site.
Some things that could be up there could range from fetching objects to
reusable components. How to fetch all records in a table, how to setup a
qualifier and fetch from that, and how to use custom SQL. Seems easy, seems
like it's available in the docs, but it's really tricky and I don't remember
any really good code examples.
I wrote a couple of reusable components that I'd be happy to submit. One is
a hyperlink and one is an activeImage. Each returns a value that can be used
in the parent. I use my custom hyperlink for headers in a table and have a
single method that sorts using the value returned as the sort qualifier.
Maybe they way I built the components isn't the best though so I'd be happy
to hear what others think.
I'll be in the office all week next week so I'd be happy to get started if
others are interested :).
--Marc Respass
High Technology Logistics