Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

combo box in table view



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.