combo box in table view
combo box in table view
- Subject: combo box in table view
- From: James Whitwell <email@hidden>
- Date: Mon, 30 Dec 2002 20:31:13 +1100
Hi,
I'm new to cocoa, and still finding my way around. I'd like to let a user
edit one table column by using an NSComboBox (or cell, I guess it'd be). I
can set it with NSTableColumn's setDataCell:, but this sets it for the whole
column, not just the one that's being edited. I can sort of see that I
should enable it when the user selects that column, and set it back when
they've finished, but I'm really not sure what combination of delegate
methods I should respond to to enable and disable it. Can anyone offer some
advice on how I could do this?
Another thing I'm trying to do is dynamically construct a tab view, with an
NSScrollView+NSTableView inside it. Interface Builder does this
beautifully, but is there a way to copy what it does programatically e.g.
make a nib in IB, and use NSBundle loadNibNamed: to create instances of it,
that I'd insert into my tab view. Is this the right way to do it?
Thanks,
;) james.
http://movies.yahoo.com.au - Yahoo! Movies
- What's on at your local cinema?
_______________________________________________
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.