Cocoa OO plumbing question
Cocoa OO plumbing question
- Subject: Cocoa OO plumbing question
- From: Rich Morin <email@hidden>
- Date: Mon, 10 Feb 2003 17:52:35 -0800
I'm trying to build a browser app and am more than a little confused
about how to hook the objects together. Here is a run-down of what
I'm trying to accomplish:
When the app is started up, the user may specify a pathname. If not,
the app uses the current working directory. In either case, the path
should be:
* written into PathName, an NSTextField
* displayed in PathBrws, an NSBrowser (all nodes in the pathname
should be both selected and visible)
If the user edits PathName or selects a new node in PathBrws, the
new pathname should be relayed to the other object.
Both initially and whenever the pathname changes, some related items
(e.g., AccessCkpath, an NSTableView) should update themselves. I'm
currently achieving this (sort of) by means of reloadData() calls
in my controlTextDidEndEditing method (tied to a notification).
I have set up the NSTextField and NSBrowser as outlets and have given
them delegates. I have also written methods for
browser:numberOfRowsInColumn:
browser:willDisplayCell:atRow:column:
These seem to be working OK (i.e., supplying the proper values).
I suspect that all I need is a few method calls, but there seem to be
lots of different approaches, none of which I can make work. Help?
-r
--
email: email@hidden; phone: +1 650-873-7841
http://www.cfcl.com/rdm - my home page, resume, etc.
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.