• 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
Re: View system usage with lower left origin (corrected)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View system usage with lower left origin (corrected)


  • Subject: Re: View system usage with lower left origin (corrected)
  • From: Quentin Mathé <email@hidden>
  • Date: Sat, 14 Jun 2003 10:42:45 +0200

Le samedi, 14 juin 2003, ` 10:20 Europe/Paris, Quentin Mathi a icrit :

The simplest solution is to flip the embedded views coordinates, it is possible to do it by using a subclassed NSView which implements the following method :

- (BOOL)isFlipped {
return YES;
}

Then the thing to do is to have the subclassed NSView to be the embedded views class.

With the flipped views, the coordinates are top left based for these views, no more bottom left based then it's easier, especially if you need to resize your embedded views on the fly.

you should read :

The simplest solution is to flip the container view coordinates, it is possible to do it by using a subclassed NSView which implements the following method :

- (BOOL)isFlipped {
return YES;
}

Then the thing to do is to have the subclassed NSView to be the containiner view class.

With the flipped view, the coordinates are top left based for the drawing inside it (which include in this case the embedded views positionning), no more bottom left based... then it's easier, especially if you need to resize your embedded views on the fly.

... sorry, I was still somnolent when I wrote the previous message.

--
Quentin Mathi
email@hidden
_______________________________________________
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.

References: 
 >Re: View system usage with lower left origin (From: Quentin Mathé <email@hidden>)

  • Prev by Date: Re: NSApplication delegate not released on quit?
  • Next by Date: Re: Cocoa's custom class delegate conventions
  • Previous by thread: Re: View system usage with lower left origin
  • Next by thread: Floating window
  • Index(es):
    • Date
    • Thread