Re: cocoa-dev digest, Vol 2 #1211 - 14 msgs
Re: cocoa-dev digest, Vol 2 #1211 - 14 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #1211 - 14 msgs
- From: Brock Brandenberg <email@hidden>
- Date: Sat, 07 Sep 2002 01:05:28 -0500
John,
>
1. I would like to turn off live window resizing. I can then drag to
>
new size and wait once for redisplay.
Here's a suggestion for this. Check out the sample code by Bradley Scott
called "SmartResizeDemo" at
http://homepage.mac.com/monkiineko/SmartResizeWindow.html. You might extract
a useful bit of code from it.
>
2. Similarly, I would like to turn of live scrolling. I can then drag
>
thumb to new location and let go for one redisplay.
While I agree with John Randolph about optimizing your drawing, you can use
setScrollsDynamically: to turn on and off dynamic scrolling of a
NSScrollView.
>
3. Finally, I have a slider that selects from a set of results (each of
>
which is a large calculation). Currently the slider is continuous. It
>
is easy to make it not continuous, but I need it half and half. I need
>
it continuous to give text feedback on which result is about to be
>
selected, but when it is done I need one last message to actually draw
>
that plot.
You could consider using StillDown() in your action method to determine the
state of the mouse button and branch one of two ways. If the button is down,
give the text feedback. If it's up (which you should get on the last call to
the action from your slider), you can draw the plot.
Brock Brandenberg
----- industrial design @ www.bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.