NSMutableArray/NSTableView/NSArrayController problems...
NSMutableArray/NSTableView/NSArrayController problems...
- Subject: NSMutableArray/NSTableView/NSArrayController problems...
- From: Kimberly Staton <email@hidden>
- Date: Mon, 3 Oct 2005 08:12:42 -0700 (PDT)
Dear list,
I am most definitely a Cocoa newbie, and I've run into
a problem...
I'm trying to add and remove entries to a NSTableView.
When an item is inserted (when the user pressed the
"Add File Input" button), an open panel needs to be
created to point to the file that the program needs to
open, and an alert dialog (or some kind of panel)
needs to be generated to ask the user to enter a name
for the NSTableView entry...
Only, I'm having trouble figuring out how to relate
all of these functions... I've created a model class
for the entries, and I've gotten it insert and remove
items when I press the buttons (I created a
NSArrayController in IB and bound it/connected it to
the various components), but the items being
inserted/removed are only NSStrings I hardcoded into
the init method...
I need to figure out a way to overload the
insertObject and removeObject methods, I suppose, but
I'm not sure how. I probably need to install
observers, but again, I don't really know how...
Could some please help me?
Thanks,
Kimberly
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
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