• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSResizableWindowMask and view update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSResizableWindowMask and view update


  • Subject: NSResizableWindowMask and view update
  • From: Tony Romano <email@hidden>
  • Date: Mon, 12 Jul 2010 16:41:56 -0700

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSResizableWindowMask and view update
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: NSViewController and key value coding
  • Next by Date: NSTextView becomes temporarily unresponsive
  • Previous by thread: Re: NSViewController and key value coding
  • Next by thread: Re: NSResizableWindowMask and view update
  • Index(es):
    • Date
    • Thread