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: Live content questions



On Nov 28, 2003, at 12:08 PM, Dario Accornero wrote:

On 28 Nov 2003, at 17:09, David Duncan wrote:

Actually that only has an effect on Panther, and tells the Window Server to drag the window itself, rather than calling into the application to do it. It will actually prevent you from doing life resizing (at least in real time) as it causes far fewer bounds changing events to be sent. Standard windows should use the kWindowLiveResizeAttribute attribute (which I forgot to mention before) to get live resizing.

I use both flags and am not entirely convinced that I'm getting fewer BoundsChanging during live resize -- AFAICT kWindowAsyncDragAttribute does not affect the behaviour of resizing, only of dragging. The downside is that you cannot control what happens during the drag: if you need to constrain your window to some area or snap it to the screen edges, the async attribute won't let you do that.

On 7C107 at least in my app the resize still happens in "real time" with both flags on...

I think you are right Dario, AsyncDrag should only affect drag events. I think my confusion was coming from the fact that you also get bounds changing events during drag - with async drag you will get fewer of these kinds of bounds changing (or at least are supposed to from what I understand).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Live content questions (From: Erik Dahlstrom <email@hidden>)
 >Re: Live content questions (From: Erik Dahlstrom <email@hidden>)
 >Re: Live content questions (From: David Duncan <email@hidden>)
 >Re: Live content questions (From: Dario Accornero <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.