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 not drawing in compositing window



Hi Larry, Kevin, Eric and all others who replied to my plea

I just found out what the problem was. The problem was that I adopted Apple's HIFramework as a starting point and I derived my db class from TView. I forgot that TView installs a draw handler by default and this handler does nothing unless you override it. All I had to do is to remove the installation of this handler and everything was drawn as expected. That's what you get when you are unfamiliar with the default behavior of a given framework. That's why I'm not jumping into the Cocoa bandwagon just yet. I want to port everything to Carbon Mach-O first and then move to Cocoa incrementally if need be.

Thanks for all the nice people who were amiable enough to answer, some of you in private. Your help is much appreciated.

JV


On 2007/11/03, at 04:31, Laurence Harris wrote:


On Nov 1, 2007, at 11:31 AM, João Varela wrote:

Hello List

I am debugging a project that I ported from CFM (which used PowerPlant as a framework) to Mach-O (which is based on Apple's HIFramework). I'm happy that I removed all the PP dependencies I had, but there's a lot of weird GUI stuff going on.

For instance, all views based on the data browser do not draw; I moved them to compositing windows; I can add columns and rows and the scroll bars grow accordingly but the contents are not drawn, and that includes the column headers (all I see is the gray background moving up and down as I scroll down and up); is there anything I must do in order for these now nib-based data browsers to draw; I am NOT using any custom content, just plain vanilla content with two checkbox columns, one date column and one icon- text column.

BTW, I called HIViewSetVisible( view, true ) and HIViewSetNeedsDisplay( view, true ) to no avail. The problem still persists. Other controls are drawn as expected in the very same windows.

Are your callbacks being to supply data? Do you have any clipping code that could be clipping the DB? Any handlers installed on the DB? I have several DataBrowsers defined in nib-based windows and they "just work."


Larry


_______________________________________________ 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 not drawing in compositing window (From: João Varela <email@hidden>)
 >Re: Data browser not drawing in compositing window (From: Laurence Harris <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.