Re: How to properly flip a UIView's coordinate system

2013-09-23 Thread Marcel Weiher
On Sep 21, 2013, at 22:38 , Markus Spoettl wrote: > I have a UIView on iOS that shares (a lot of) code with an NSView I have on > OSX. That code relies on a LLO (lower left origin) coordinate system and it's > not an option to change that. What’s the code? Mostly drawing? > So I transform

Re: How to properly flip a UIView's coordinate system

2013-09-23 Thread Dave
On 22 Sep 2013, at 16:18, David Rowland wrote: > > On Sep 22, 2013, at 4:20 AM, Dave wrote: > >> >> On 21 Sep 2013, at 21:38, Markus Spoettl wrote: >> >>> Hi, >>> >>> I have a UIView on iOS that shares (a lot of) code with an NSView I have on >>> OSX. That code relies on a LLO (lower lef

Re: How to properly flip a UIView's coordinate system

2013-09-23 Thread Dave
On 22 Sep 2013, at 21:36, Kyle Sluder wrote: > On Sep 22, 2013, at 4:20 AM, Dave wrote: >> >> >>> On 21 Sep 2013, at 21:38, Markus Spoettl wrote: >>> >>> Hi, >>> >>> I have a UIView on iOS that shares (a lot of) code with an NSView I have on >>> OSX. That code relies on a LLO (lower left

Re: Strange behaviour of iPhone

2013-09-23 Thread Dave
On 21 Sep 2013, at 19:25, "Mills, Steve" wrote: >> On Sep 21, 2013, at 13:22, "Dave" wrote: >> >> A similar gotcha is when you declare a local with the same name as an >> instance variable. > > That's why I prefer it when instance vars are named as such. I dislike the > Microsoftish m_var.

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

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

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: Deficiencies in UIKeyCommand

2013-09-23 Thread Kyle Sluder
On Mon, Sep 23, 2013, at 10:40 AM, Gordon Apple wrote: > > I don¹t know whether to file a bug report or an enhancement request for > these. They're pretty much the same thing. Don't let the distinction hold you back from filing anything at all. File early, file often. That's the only way you have

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

iOS 7 Extend Edges View Controller Property

2013-09-23 Thread Dave
Hi, I'm trying to get an app to look ok under iOS 7, the first problem was that it overrode wantsFullScreenLayout and always returned NO, I removed this and the next problem was that the views were messed up because the Status Bar isn't taken into account. I have 35+ View Controllers and they a

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 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

Deficiencies in UIKeyCommand

2013-09-23 Thread Gordon Apple
UIKeyCommand is a welcomed addition to iOS when using an external keyboard. However, there seems to be a few deficiencies in its functionality: 1. F-keys. Is there any way to snag an F-key command with UIKeyCommand? You have to specify a string. Is there a way to do this? 2. Repeat keys. Some

Re: Correct usage of NSTextView and NSFindBar

2013-09-23 Thread Kevin Perry
On Sep 20, 2013, at 10:15 PM, Martin Hewitson wrote: > Actually, I got this wrong. I swap out the textstorage in the textview by > calling setTextView on the textContainer which I get from the textStorage > that belongs to the file instance being edited. This is probably why I'm > bypassing

Alternate to scrollPoint?

2013-09-23 Thread Steve Mills
We have a situation where we want to call scrollPoint on our view that's in a scroll view. It appears that scrollPoint does not immediately cause the scroll to happen. Right after we call scrollPoint, we need to ask the view for its new scroll location to see if it actually changed. At this poin

outlets in objects loaded from nibs

2013-09-23 Thread Rainer Standke
Hello all, I am wondering if foregoing the standard way of loading nibs is the answer to problem I have. I need to create two different versions of my app's main window based on what OS version the app is running on. So far the app contains one single main nib file that gets loaded when the ap

Re: outlets in objects loaded from nibs

2013-09-23 Thread Jerry Krinock
On 2013 Sep 23, at 15:26, Rainer Standke wrote: > Ideally I'd have one main nib that contains the controllers etc, and then two > more nibs, each containing the main window in a version specific to an OS > version. Looks like a good plan. > But how would I manage the bindings between element

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 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 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 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