Mailing Lists: Apple Mailing Lists

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

DataBrowser won't show selected rows



This is crazy.  I have a data browser up and running.  I can add items etc.  But
for some reason when I click on a row, it won't hilite it.  In the debugger I
see I am getting the appropriate calls to my callback routines.  ie, when i
click on a row, i get the kDataBrowserItemSelected message sent to my
ItemNotification callback.  Its as if the screen isn't refreshing or some crazy
thing.

I have the following code in my callback

case kDataBrowserItemSelected:	

status = SetDataBrowserSelectedItems (browser, 1,&itemID, kDataBrowserItemsAdd);

											status =
UpdateDataBrowserItems(browser,kDataBrowserNoItem,1,&itemID,kDataBrowserItemNoProperty,kDataBrowserNoItem);
											InvalidateControl(browser);
											break;

I have been going nuts with this.  Does anyone have any clues (or sample code)
that will clear this up for me?

btw - I have looked at the code sample called "basic databrowser".  I don't see
what I am doing differently.  Bummer.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/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.