Re: How to safely delete a WebView delegate object?

2015-04-15 Thread Juanjo Conti
Thanks you very much! That fixed it! On Tue, Apr 14, 2015 at 9:44 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 14, 2015, at 17:01 , Juanjo Conti jjco...@carouselapps.com wrote: If I click the button too many times, fast enough, my app crash with a EXEC_ error and

User interface unresponsive in window

2015-04-15 Thread Jonathan Taylor
I've started encountering intermittent problems in one specific window in my application, where text input boxes become unresponsive, steppers remain highlighted after clicking, etc. I'm rather short of ideas on how to debug this, particular since I haven't worked out how to reproduce it

Re: Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
While my iPhone can use the “DoSomethingAndGoBackToMasterView” button fine, the same button does nothing for iPad. Of course iPad does not need an unwinding segue - both master and detail view are always visible (at least in landscape orientation). But the “DoSomething” part is still needed.

Re: NSTableView content height

2015-04-15 Thread Ken Thomases
On Apr 15, 2015, at 12:41 AM, Alex Kac a...@webis.net wrote: I’m failing to find the proper way to do this. Given an NSTableView, I’d like to size its parent view to the height of all the rows/content/headers of that table view so that there is no scrolling. Someone suggested:

Re: How to remove iPad popover?

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 12:00 AM, Kyle Sluder wrote: Segues are transient objects that only exist Er, I meant that only exist long enough to perform their action. In other words, if you perform a popover segue, that UIStoryboardSegue object ceases to exist once the popover is onscreen. --Kyle

Scaling images for Insertion into UITextView .attributedText

2015-04-15 Thread Michal L. Wright
Hi, I have an iOS-based flat-file database app that shows records in a UIViewController, called RecordViewController. I’ve added an “Insert Photo” menu item to the editing menu. This brings up a photo picker view that sends the selected image back to RecordViewController. I’ve included code

Re: User interface unresponsive in window

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 07:04 , Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: From dimly-remembered past experience I have a feeling it could be related to something somewhere resulting in GUI code being executed on a non-main thread. You can at least start by trying the simple things,

Re: Master - Detail: How to get back?

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 07:18 AM, Gerriet M. Denkmann wrote: While my iPhone can use the “DoSomethingAndGoBackToMasterView” button fine, the same button does nothing for iPad. Of course iPad does not need an unwinding segue - both master and detail view are always visible (at least in

layout method not getting called on Content View

2015-04-15 Thread Dave
Hi, I have a WindowController/Window Combo contained in a NIB. Auto Layout is turned off and I want to alter to positions and/or sizes of views inside the ContentView. I thought the obvious place to do this was layout, but it never seems to get called? How can I manually lay out the Content

First responder (?) problem, and orphaned highlight boxes

2015-04-15 Thread Aandi Inston
I am trying to solve a problem which seems to involve the first responder for an NSWindow. The NSWindow contains a number of controls and views, including several NSTextField controls. It is necessary to show or hide groups of these. These are all created dynamically, rather than with Interface

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 01:47 PM, Dave wrote: Hi, I have a WindowController/Window Combo contained in a NIB. Window controllers usually don't live in nibs. Instead, they act as the nib's File's Owner. Auto Layout is turned off and I want to alter to positions and/or sizes of views inside

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 02:41 PM, Dave wrote: A bit more, I turned Auto Layout on and now the layout method gets called, but it doesn’t set the Frame Rect correctly. I’m looping through the subviews and setting the frames of a couple of NSViews, but the Frame doesn’t change? As documented,

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 03:02 PM, Kyle Sluder wrote: You might want to watch the introductory videos available at apple.com/wwdc. Whoops, the video archive is actually located at https://developer.apple.com/videos/wwdc. You might start with the Cocoa Autolayout video from WWDC 2011:

Re: layout method not getting called on Content View

2015-04-15 Thread Dave
On 15 Apr 2015, at 21:02, Kyle Sluder k...@ksluder.com wrote: On Wed, Apr 15, 2015, at 02:41 PM, Dave wrote: A bit more, I turned Auto Layout on and now the layout method gets called, but it doesn’t set the Frame Rect correctly. I’m looping through the subviews and setting the frames of

Re: Help with Swift changes to optionals

2015-04-15 Thread Rick Mann
On Apr 15, 2015, at 12:47 , Marco S Hyman m...@snafu.org wrote: On Apr 15, 2015, at 12:29 PM, Rick Mann rm...@latencyzero.com wrote: I used to have this code prior to 1.2, which compiled and ran fine, but now I get an error on the last line: '?' must be followed by a call, member

Help with Swift changes to optionals

2015-04-15 Thread Rick Mann
I used to have this code prior to 1.2, which compiled and ran fine, but now I get an error on the last line: '?' must be followed by a call, member lookup, or subscript func httpResponseForMethod(inMethod: String!, URI inPath: String!) - NSObject! { ... var query : String?;

layout method not getting called on Content View

2015-04-15 Thread Dave
A bit more, I turned Auto Layout on and now the layout method gets called, but it doesn’t set the Frame Rect correctly. I’m looping through the subviews and setting the frames of a couple of NSViews, but the Frame doesn’t change? The views are initially loaded from a NIB, but later I want to

Re: User interface unresponsive in window

2015-04-15 Thread Jonathan Taylor
Thanks for the suggestions. Am I right in thinking that when running under Xcode any drawing errors will be logged to the Xcode console? That's certainly what I've seen in the past (but not in relation to this problem - haven't seen anything in the Xcode console at all for this). Any other

Re: User interface unresponsive in window

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 14:54 , Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: Am I right in thinking that when running under Xcode any drawing errors will be logged to the Xcode console? No, not unless they’re actually exceptions. Messages from other processes are only going to appear

Re: Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
Can this be done? Or is there a better way to make my button work both for iPhone and iPad? Well, my first question is: can you just put your work in the implementation of the unwind selector? That is the way the work is done. The unwind itself will be a no-op if the split view

Re: Crash when move open document based app file to trash

2015-04-15 Thread Martin Wierschin
I’m not sure how careful that monitoring is, though, whether it happens continuously, or only at the moment the app or document regains focus. Even if it’s continuous, it can’t be continuous enough, since the OS is multithreaded. There’s always the possibility of a race condition where the

Re: First responder (?) problem, and orphaned highlight boxes

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 13:30 , Aandi Inston aa...@quite.com wrote: 2. As a quick fix, is there a way to make sure this highlight box disappears with the control that it is (to my mind) attached to? It’s probably being drawn around the field editor, and perhaps that’s not being dismissed

Re: layout method not getting called on Content View

2015-04-15 Thread Dave
I recommend you switch to Auto Layout. AFAICT, Auto-Layout won’t let me do what I want to do. This is so simple. The NIB file is owned by the window controller. The window is a large window and initially has two frames in it. Later on, I get Notifications telling me a new position and size

Re: layout method not getting called on Content View

2015-04-15 Thread David Duncan
On Apr 15, 2015, at 2:06 PM, Dave d...@looktowindward.com wrote: I recommend you switch to Auto Layout. AFAICT, Auto-Layout won’t let me do what I want to do. This is so simple. The NIB file is owned by the window controller. The window is a large window and initially has two frames

Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
Using the Xcode template: iOS - Master-Detail, the Detail view has (in the top left corner) a Back-Button, which works fine. Now I added another UIBarButtonItem called: “Do something and go back” connected to some IBAction in DetailViewController. But how to make it go back to the MasterView?

Re: Master - Detail: How to get back?

2015-04-15 Thread Quincey Morris
On Apr 14, 2015, at 23:47 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Using the Xcode template: iOS - Master-Detail, the Detail view has (in the top left corner) a Back-Button, which works fine. Now I added another UIBarButtonItem called: “Do something and go back” connected to

Re: Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
On 15 Apr 2015, at 14:51, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 14, 2015, at 23:47 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Using the Xcode template: iOS - Master-Detail, the Detail view has (in the top left corner) a Back-Button, which works fine.

Re: Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
On 15 Apr 2015, at 15:37, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Apr 15, 2015, at 01:18 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: In DetailViewController I added: - (IBAction)unwindToMainMenu:(UIStoryboardSegue*)sender I dunno offhand, but you

Re: Master - Detail: How to get back?

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 01:18 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote: In DetailViewController I added: - (IBAction)unwindToMainMenu:(UIStoryboardSegue*)sender I dunno offhand, but you originally said you’re trying to go back to the master view controller, and the tech note says that

Re: How to remove iPad popover?

2015-04-15 Thread Gerriet M. Denkmann
On Tue, Apr 14, 2015, at 11:49 PM, Gerriet M. Denkmann wrote: And if there is any way (easy or not) to get this (in a non-deprecated way), I would be very interested to hear about it. There is not. Please file a Radar. I filed two: 20549495 Unable to get popover controller. 20549450