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 10:35, Graham Westlake wrote:

SetDataBrowserPropertyFlags(browser,kLevelName,flags | kDataBrowserPropertyIsEditable);

I'm setting this property flag when I create my editable column as per the docs.


The SetDataBrowserItemDataBooleanValue call is how you tell the browser that it is okay to edit the data.

Yes, this is working for me too. To clarify, my edit session begins and I can edit the text perfectly; the problem is that I don't get the documented Item callback (aka GetSetData callback) when the editing session is ended by the user. This means I can't call CopyDataBrowserEditText in order to save the user's changes.


You don't need to call CopyDataBrowserEditText, you call GetDataBrowserItemDataText from your getsetcallback. But if your callback isn't getting called at the end of the session you can't do that either, i've no idea why that would happen. Have you tried running your app with the debug versions of the libraries? That could reveal some useful info.

Fred
Presumably you need to save the changes made; how are you accomplishing this?

_______________________________________________ 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
References: 
 >Data Browser text editing (From: Graham Westlake <email@hidden>)
 >Re: Data Browser text editing (From: Mike Lazear <email@hidden>)
 >Re: Data Browser text editing (From: Graham Westlake <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.