• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DataBrowser won't show selected rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DataBrowser won't show selected rows


  • Subject: Re: DataBrowser won't show selected rows
  • From: Laurence Harris <email@hidden>
  • Date: Mon, 30 Apr 2007 17:59:25 -0400


On Apr 30, 2007, at 2:47 PM, email@hidden wrote:

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.

I haven't worked with my DB code in a long time, but as far as I can tell I don't do anything in response to this message and DB seems to handle everything for me. What happens if you comment out the above lines of code and do nothing in response?


BTW, the xcode-dev list is for questions related to the use of Xcode and other Apple development tools, not for Carbon coding questions. Questions like this should go to the carbon-dev list.

Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >DataBrowser won't show selected rows (From: email@hidden)

  • Prev by Date: Re: Prefix/precompiled header has no effect
  • Next by Date: User Defaults
  • Previous by thread: DataBrowser won't show selected rows
  • Index(es):
    • Date
    • Thread