Mailing Lists: Apple Mailing Lists

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

Any DataBrowser Experts?



I just sent this message a few days ago but didn't receive any responses.  If there are any DataBrowser experts out there - please, help shed some (any) light on the issue!  I'm about to give up on the bug and defer it - I pray my manager doesn't give me hell =)

Here's the original message...

Hi,
I have a DataBrowser with container items (like a tree view).
There are times I want to prevent a closed container item from opening and times when I want to prevent an open container item from closing.

To do so, I have an item-data callback function (see DataBrowserItemDataProcPtr).  I am correctly handling the first case: preventing a closed item from opening...
In the callback I check for the propertyID:
kDataBrowserContainerIsOpenableProperty
Then, to specify if the item can be opened, I call ::SetDataBrowserItemDataBoolean
Value (itemDataRef, canOpen);

The problem is with the other case.  There is the following analogous property
kDataBrowserContainerIsClosableProperty
But I never receive a callback requesting that property when the user hits the close arrow.  Has anyone else seen this behavior?  As an alternative, is there a way to explicitly set whether or not a particular item is closable without being in an item callback function (which provides 'itemDataRef' for me)?

Thanks in advance for the help!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to 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.