Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Ken Thomases
On Sep 24, 2013, at 8:33 PM, Peter Teeson wrote: > On 2013-09-24, at 9:05 PM, Peter Teeson wrote: >> It would be nice if the documentation for NSMatrix mentioned that in the >> Overview. >> For example "NSMatrix uses flipped coordinates" would have saved everyone >> from my noise. > > 15073135

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
On 2013-09-24, at 9:05 PM, Peter Teeson wrote: > It would be nice if the documentation for NSMatrix mentioned that in the > Overview. > For example "NSMatrix uses flipped coordinates" would have saved everyone > from my noise. 15073135 Documentation Enhancement request filed in bugreporter ___

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
As a final experiment, in my Matrix class I overrode initWithFrame…… and as the first and only line of the override had this: BOOL f = [super isFlipped]; Lo and behold it returned YES which is definitely not the default. I stopped the execution. So from this I conclude that NSMatrix IS flipping t

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
On 2013-09-24, at 1:26 PM, Gary L. Wade wrote: > The object you created has an inset of 40, and since NSMatrix organizes its > cells from the top left, > that is what you are seeing, regardless of whether or not NSMatrix returns > YES for -isFlipped. > If this is a matter of personal discovery, o

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Dave
On 24 Sep 2013, at 18:26, Gary L. Wade wrote: > The object you created has an inset of 40, and since NSMatrix organizes its > cells from the top left, that is what you are seeing, regardless of whether > or not NSMatrix returns YES for -isFlipped. If this is a matter of personal > discovery, o

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Gary L. Wade
The object you created has an inset of 40, and since NSMatrix organizes its cells from the top left, that is what you are seeing, regardless of whether or not NSMatrix returns YES for -isFlipped. If this is a matter of personal discovery, override -isFlipped in your class and have it return NO t

Re: View hierarchy, documentation, and origin location.

2013-09-24 Thread Peter Teeson
Let me try again to clarify my lack of understanding. (0) I created a new Document project. All I did in IB Inspector pane was to make the window size 500, 500 and Center Horizontally and Vertically (1) I added a sub-class of NSButtonCell with a class name of Class (it will be used as t

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Kyle Sluder
On Mon, Sep 23, 2013, at 06:20 PM, Peter Teeson wrote: > > On 2013-09-23, at 1:36 PM, Kyle Sluder wrote: > > What’s _theMatrix’s frame? > Here once again is the code I posted That's not what I asked. I asked for the frame. > It's values happen to be 40.0 40.0 500.0 500.0 Thank you for answering

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Ken Thomases
On Sep 23, 2013, at 8:07 PM, Peter Teeson wrote: > On 2013-09-23, at 1:08 PM, Gary L. Wade wrote: >> What I believe you're wanting to know is that cells in a matrix >> have their row-column coordinates start from the top left, >> so the cell at (0,0) is in the top left of its enclosure matrix and

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Peter Teeson
On 2013-09-23, at 1:36 PM, Kyle Sluder wrote: > What’s _theMatrix’s frame? Here once again is the code I posted NSWindow *theWindow = [aController window]; NSView *theContentView = theWindow.contentView; NSRect theContentFrame = theContentView.frame; NSRect theMatrixFrame =

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Peter Teeson
On 2013-09-23, at 1:08 PM, Gary L. Wade wrote: > What I believe you're wanting to know is that cells in a matrix > have their row-column coordinates start from the top left, > so the cell at (0,0) is in the top left of its enclosure matrix and the cell > at row 1 column 0 is below it. Thanks but n

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Kyle Sluder
> On Sep 23, 2013, at 9:09 AM, Peter Teeson wrote: > > My questions: > (0) Given the above documentation why is the matrix drawn at top left > (indented of course)? What’s _theMatrix’s frame? It could either have an origin that puts it at the top, or it could draw its content in its upper-left

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Gerd Knops
Probably more to do with the NeXTSTEP/OPENSTEP ancestry. Those used Display Postscript with the origin being the bottom left. Gerd On Sep 23, 2013, at 1:19 PM, Dave wrote: > > On 23 Sep 2013, at 17:09, Peter Teeson wrote: >> >> Peter >> >> PS: If my memory is correct, from the beginning of

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Dave
On 23 Sep 2013, at 19:50, Gerd Knops wrote: > Probably more to do with the NeXTSTEP/OPENSTEP ancestry. Those used Display > Postscript with the origin being the bottom left. > > Gerd Yes, you're right it was because of PostScript, although you'd chose to an upside down screen coordinate syst

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Dave
On 23 Sep 2013, at 17:09, Peter Teeson wrote: > > Peter > > PS: If my memory is correct, from the beginning of Mac OS up till OS X the > origin was top left. Yes, Quartz changed it to be bottom left for some crazy reason - maybe just to be different and upset off the Carbon developers of the

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Gary L. Wade
What I believe you're wanting to know is that cells in a matrix have their row-column coordinates start from the top left, so the cell at (0,0) is in the top left of its enclosure matrix and the cell at row 1 column 0 is below it. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On

View hierarchy, documentation, and origin location.

2013-09-23 Thread Peter Teeson
Xcode 4.6.3, OS X Lion 10.7.5, my Document app for OS X Here are quotes from the View Programming Guide 2013-08-08 "By default, the graphics environment origin (0.0,0.0) is located in the lower left,…." page 11 "The frame rectangle defines the view's location and size in the superview using th