Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
hi,

can u please provide me any help to create a checkbox in first column of NSTableView,and how can i change its state when click over the checkbox.

if possible please provide me any sample.

thanks in advance.
 
Google UITableView checkbox for heaps of answers.

NSTableView and UITableView are really quite different animals (especially before Lion).

Adding a checkbox column to an NSTableView is pretty trivial. Assuming you're using Interface Builder in Xcode 4.x, Simply drag a "Check Box Cell" from the Object Library onto the desired column of the NSTableView in your .xib. See more here.

If you have more questions about how to do this, please describe (in detail!) what you've already tried, the results you expected to see, the results you actually saw, and exactly what you're having trouble understanding.
 
thanks,its done using checkbox cell.

is this possible to use checkbox in header of this column.
 
hi,

can u please provide me any help to create a checkbox in first column of NSTableView,and how can i change its state when click over the checkbox.

if possible please provide me any sample.

thanks in advance.

Hi mkristain,

remember that post about "Help Vampires"?


If you have more questions about how to do this, please describe (in detail!) what you've already tried, the results you expected to see, the results you actually saw, and exactly what you're having trouble understanding.

Not going to happen.
 
thanks,its done using checkbox cell.

is this possible to use checkbox in header of this column.

Short answer: no. Long answer: maybe, but it will be a lot of work, will be necessarily hacky (Apple doesn't intend for you to do anything like this) and will require a deep understanding of Cocoa, in particular NSScrollView and NSTableView's inner-workings.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.