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: Data Browser text editing



On 2 Mar 2005, at 18:17, Mike Lazear wrote:
I do what Frederick suggested. Here's my code that exists in the setValue = TRUE switch statement (error checking removed)

if (setValue)
{
switch(property)
{
case kLevelName :
GetDataBrowserItemDataText(itemData,&cfString);
if (CFStringGetCString(cfString,&(levelName[0]),sizeof(levelName),kCFStrin gEncodingMacRoman))
set_LevelName(itemID,levelName);
}
}

Excellent, this has cleared up the problem.

I think the documentation is at fault here. It states "When the editing session is finished, your item-data callback is sent another kDataBrowserItemIsEditableProperty inquiry with the setValue parameter set to true.", so this is what I was looking for. But in fact you are sent the column property ID with setValue set to true - which is what your code responds to.

Thanks to both of you for your responses,

Graham

_______________________________________________
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.