Is there a way to indent main headings in NSOutlineView as follows: -
Heading 1
Item
Item
Heading 2
Item
Heading 2.1
Item
Item
Heading 3
Item
I tried many ways to indent the headings but not succeeded. The
disclosure triangle doesn't indent with headings. I required heading
within heading and the heading should be independent of its parent
heading. The parent heading may contain any number of items within.
Hmmh - you don't tell us how you provide the data to the outline view:
are you using an NSTreeController + bindings or are you implementing an
NSOutlineView datasource?
Usually, all the indenting is automatically done by the outline view once
you return your items in the appropriate hierarchy.
If you can share a bit more information about your code / your setup,
people might able to help you...
</jum>
I am using datasource that contain two types of object.
The first object (Heading) contains a flag. If it is YES then it act as
child of other main heading.
The second object(item) contains value to show which is always child of main
heading.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]