I have a document based cocoa app with each document window having it's own 
window controller and view(the view is flipped).  I have an option to turn 
on/off the resize grip and I set the mask using setStyleMask.  All this works 
fine.

During the setStyleMask, the view is sent a drawRect message which is expected. 
 But the values in the rect are not flipped and are not the view bounds.

Here is some debug output.

2010-07-12 16:33:52.509 MacDoodle[21253:903] {{399, 511}, {15, 15}}  -> This 
draw was due to the mask changing.
2010-07-12 16:33:52.512 MacDoodle[21253:903] Resize State: 0 -> my internal 
state
2010-07-12 16:33:52.525 MacDoodle[21253:903] {{0, 0}, {414, 526}} -> I added a 
setNeedsDisplay to get another output of the rect. 

By me adding a setNeedsDisplay as an experiment, you can see I get the correct 
values of my view rect.  The first output show the coordinates not flipped and 
not the same as my view bounds.  I don't want to leave the additional 
setNeedsDisplay because it flickers.  

Anyone know why this is? If more info is needed, please let me know.

TIA,
-Tony

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to