Re: Master - Detail: How to get back?

2015-04-15 Thread Roland King
> > 5. Run > > iPhone- tapping on "Do & Back" prints: > 2015-04-16 12:16:52.799 Dummi[28069:20737983] -[MasterViewController > doSomethingAndBackToMaster:] did something with "2015-04-16 05:16:49 +", > will do: [ perform] > > iPad - tapping on "Do & Back" prints: > nothing. >

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 whe

Re: User interface unresponsive in window

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 14:54 , Jonathan Taylor 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 in the system log. With puz

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 idea

Re: layout method not getting called on Content View

2015-04-15 Thread David Duncan
> On Apr 15, 2015, at 2:06 PM, Dave 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 in it. Later

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: First responder (?) problem, and orphaned highlight boxes

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 13:30 , Aandi Inston 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 properly when you

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 Bu

Re: Help with Swift changes to optionals

2015-04-15 Thread Rick Mann
> On Apr 15, 2015, at 12:47 , Marco S Hyman wrote: > > >> On Apr 15, 2015, at 12:29 PM, Rick Mann 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 lookup, or subscript >

Re: layout method not getting called on Content View

2015-04-15 Thread Dave
> On 15 Apr 2015, at 21:02, Kyle Sluder 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 a coup

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

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 documen

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 ins

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 ch

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

Re: User interface unresponsive in window

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 07:04 , Jonathan Taylor 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, if you haven’t tried them a

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

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

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 to

Re: NSTableView content height

2015-04-15 Thread Ken Thomases
On Apr 15, 2015, at 12:41 AM, Alex Kac 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: > > [_scrollView.docum

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 reliabl

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 wrote: > > > > If I click the button too many times, fast enough, my app crash with a > > EXEC_ error and if I enable zomb

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

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

Re: Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
> On 15 Apr 2015, at 15:37, Quincey Morris > wrote: > > On Apr 15, 2015, at 01:18 , Gerriet M. Denkmann wrote: >> >> In DetailViewController I added: >> >> - (IBAction)unwindToMainMenu:(UIStoryboardSegue*)sender > > I dunno offhand, but you originally said you’re trying to go back to the >

Re: Master - Detail: How to get back?

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 01:18 , Gerriet M. Denkmann 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 the destination n

Re: Master - Detail: How to get back?

2015-04-15 Thread Gerriet M. Denkmann
> On 15 Apr 2015, at 14:51, Quincey Morris > wrote: > > On Apr 14, 2015, at 23:47 , Gerriet M. Denkmann 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 call

Re: Master - Detail: How to get back?

2015-04-15 Thread Quincey Morris
On Apr 14, 2015, at 23:47 , Gerriet M. Denkmann 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 some IBAction in D