Mailing Lists: Apple Mailing Lists

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

Re: kDataBrowserColumnView:How to draw the content?



On Sat, Aug 30, 2003 at 01:22:06AM +0900, Norio Ota wrote:
> 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?
>

If I understand you correctly, the columns and rows are showing up, but
with nothing in them? If so, then you need to check for the property

kDataBrowserItemSelfIdentityProperty

and use SetDataBrowserItemDataText() then.

--
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762
_______________________________________________
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.

References: 
 >kDataBrowserColumnView:How to draw the content? (From: Norio Ota <email@hidden>)



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.