please help me this task asap.
In objective c.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bhuvanesh MohankumarPosted May 17, 2016, 7:23 AM
Please check this link,
https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/WindowSourceListDrawer.html
A source list in Cocoa is just an NSOutlineView configured in a particular way. You can drag one out in Interface Builder and set the highlight mode to Source List. You'll probably also want to turn off the header row, change it to a single column, and change the visible scrollbars on the enclosing NSScrollView.
- (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)item
Apple provided sample code http://developer.apple.com/samplecode/SourceView demonstrates how to build a fully featured source list.