Mailing Lists: Apple Mailing Lists

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

kDataBrowserColumnView:How to draw the content?



I'm trying to make Column view style DataBrowser. I could make it in case of List view style, but I don't show the item name in a column.

1. Should I install custom callback to draw item name? This is, can't I use itemDataCallback instead of custom drawing callback?
2. If I can, which property is needed in itemDataCallback?

Background:
When I add 1st-level data to the browser, I pass kDataBrowserNoItem as container id. And when 2nd level of data being added, I pass one of the 1st level data as its container. With List view style, I could show the disclosure triangle on the left of 1st level data, and display its 2nd level data when you click the triangle.

I put the following DataBrowserPropertyID in my itemDataCallback in case of Column view style.
kDataBrowserItemParentContainerProperty
if itemID is 1st level of data, then SetDataBrowserItemDataItemID(outItemDataRef, kDataBrowserNoItem).
otherwise I put its parent(1st level of data) to the second parameter.

kDataBrowserItemIsContainerProperty
if itemID is 1st level and it has some 2nd level of data, then pass true to the second parameter of SetDataBrowserItemDataBooleanValue.

Is there any property ID else to need?

I'd appreciate your help.

Thank you,
Norio Ota
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
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.