Re: View-based outline view problem

2014-07-10 Thread Quincey Morris
On Jul 10, 2014, at 23:34 , Ken Thomases wrote: > Have you connected the delegate outlet of your text view (field?)? This was my first thought, too, but: 1. The delegate method ‘control:textShouldBeginEditing:’ seems like it’s called too late. Presumably the selection change needs to be done w

Re: View-based outline view problem

2014-07-10 Thread Ken Thomases
On Jul 11, 2014, at 12:54 AM, Shane Stanley wrote: > I'm still not quite out of the woods. In my cell-based outline view, when the > user selects an item and hits return to edit it, I change the selection so > that only the file name before the extension was selected. I do that with > text vie

Re: View-based outline view problem

2014-07-10 Thread Shane Stanley
I'm still not quite out of the woods. In my cell-based outline view, when the user selects an item and hits return to edit it, I change the selection so that only the file name before the extension was selected. I do that with text view delegate methods in my outline view subclass, but that does

Re: View-based outline view problem

2014-07-10 Thread Shane Stanley
On 11 Jul 2014, at 1:56 am, Quincey Morris wrote: > You are doing something basic incorrectly. That NSOutlineView delegate method > is called ‘outlineView:viewForTableColumn:item:’. Sigh. Thank you for restoring my faith in my own stupidity... -- Shane Stanley ___

Re: Converting database to Core Data

2014-07-10 Thread Keary Suska
On Jul 10, 2014, at 2:00 PM, William Squires wrote: > I'm trying to convert the following. I have two tables in a database, > "TransactionEntry", and "ReasonCode". A "TransactionEntry" record is just a > posting from a POS (Point-of-Sale) terminal, and has these fields (of > interest): > > Ta

Re: Cocoa-dev Digest, Vol 11, Issue 374

2014-07-10 Thread João Varela
I am also moving all my cell-based NSOutlineView¹s and NSTableView¹s to the corresponding view-based versions. There is a good reason for it. It has been officially declared by Apple that cell-based NSOutlineView¹s and NSTableView's are deprecated. So start moving your code to the newest technologi

Re: Issue with -[NSOutlineView autosaveExpandedItems]

2014-07-10 Thread Ken Thomases
On Jul 10, 2014, at 3:20 PM, Bill Cheeseman wrote: > How can I make an outline view reinstate the expanded and collapsed state of > its rows across application launches? > > Building in Xcode 5.1.1 under OS X 10.9.4 Mavericks, I select the outline > view nib file's Autosave checkbox for Autosa

UISplitViewController - Wrong detail view sizing

2014-07-10 Thread Tino Rachui
I’m maintaining a universal iOS App whose development has started on iOS 6. I’m about the renew the UI for iOS 7. Now I’ve got a weird problem with the iPad part of the app. This part follows the „normal“ Master-Detail view pattern using a UISplitViewController. The UI is configured in a storybo

Issue with -[NSOutlineView autosaveExpandedItems]

2014-07-10 Thread Bill Cheeseman
This question has been asked several times over the last few years, but I haven't found a useful answer in all the discussions. How can I make an outline view reinstate the expanded and collapsed state of its rows across application launches? Building in Xcode 5.1.1 under OS X 10.9.4 Mavericks,

Re: Converting SenTesting framework tests to XCTests

2014-07-10 Thread Chris Hanson
On Jul 10, 2014, at 12:31 PM, William Squires wrote: > > I'm trying to convert some code that used the old(er) SenTesting framework. > Now I want to use the XCTest stuff. I have the following line: > > STAssertEquals(, , NULL); // is just a int-type variable or > constant > > I figure the cl

Converting database to Core Data

2014-07-10 Thread William Squires
I'm trying to convert the following. I have two tables in a database, "TransactionEntry", and "ReasonCode". A "TransactionEntry" record is just a posting from a POS (Point-of-Sale) terminal, and has these fields (of interest): Table (TransactionEntry) ID As Int32 PrimaryReasonCode As Int32

Converting SenTesting framework tests to XCTests

2014-07-10 Thread William Squires
I'm trying to convert some code that used the old(er) SenTesting framework. Now I want to use the XCTest stuff. I have the following line: STAssertEquals(, , NULL); // is just a int-type variable or constant I figure the closest is: XCTAssertEquals, but what does the NULL in the above line do

Problem getting events when adding Subviews

2014-07-10 Thread Dave
I forgot to say, this is for iOS7 iPad only. Hi, I have a View Controller that Build “Banner” Views in code and then adds them to a viewControllers View Hierarchy. There can be 0, 1 or 2 banners displayed at any time under program control. I decided to use a Parent View Controller to manage t

Problem getting events when adding Subviews

2014-07-10 Thread Dave
Hi, I have a View Controller that Build “Banner” Views in code and then adds them to a viewControllers View Hierarchy. There can be 0, 1 or 2 banners displayed at any time under program control. I decided to use a Parent View Controller to manage the Banners and add Child View Controllers to t

Re: View-based outline view problem

2014-07-10 Thread Quincey Morris
On Jul 10, 2014, at 00:25 , Shane Stanley wrote: > I fear I'm doing something basic incorrectly, but I can't see what. My > -outlineView:viewForTableColumn:row: is not even getting called, which seems > very odd. (And yes, I commented out > -outlineView:willDisplayCell:forTableColumn:item:). A

Re: Aligning baseline of NS controls

2014-07-10 Thread Ken Thomases
On Jul 10, 2014, at 9:03 AM, Keary Suska wrote: > On Jul 10, 2014, at 2:02 AM, Aandi Inston wrote: > >> Suppose a dialog is to contain a line with multiple controls like >> >> [ ] Add seconds [before/after] >> Each of these controls contains text, and the aim here is to align the text

Re: View-based outline view problem

2014-07-10 Thread Ken Thomases
On Jul 10, 2014, at 2:25 AM, Shane Stanley wrote: > I'm trying to convert a cell-based outline view to view-based. The model is a > file wrapper, I'm using a datasource, and it was working fine while > cell-based. I changed from a text cell to NSTableCellView, and when I set it > up to use bin

Re: Aligning baseline of NS controls

2014-07-10 Thread Keary Suska
On Jul 10, 2014, at 2:02 AM, Aandi Inston wrote: > I am porting a library for dynamic dialog creation to Cocoa. > The implementation is using various standard controls such as > NSTextField and NSButton. I have a question. > > Suppose a dialog is to contain a line with multiple controls like > >

Re: View-based outline view problem

2014-07-10 Thread Shane Stanley
On 10 Jul 2014, at 6:37 pm, Bill Cheeseman wrote: > All I can say from my experience is that it requires a lot of trial-and-error Thanks, Bill -- I was hoping someone would pipe up and say I forgot to do X. Oh well... On 10 Jul 2014, at 10:00 pm, Graham Cox wrote: > Is there some good reason

Re: View-based outline view problem

2014-07-10 Thread Bill Cheeseman
On Jul 10, 2014, at 8:00 AM, Graham Cox wrote: > Is there some good reason to change to view-based, or are you doing it just > because it seems to be the "modern" thing? I'd say, if it ain't broke... I know you addressed your question to Shane, but speaking for myself: I'm writing a new appl

Re: View-based outline view problem

2014-07-10 Thread Graham Cox
On 10 Jul 2014, at 5:25 pm, Shane Stanley wrote: > I'm trying to convert a cell-based outline view to view-based. Is there some good reason to change to view-based, or are you doing it just because it seems to be the "modern" thing? I'd say, if it ain't broke... I've recently gone through a

Master-Detail in iOS

2014-07-10 Thread Gerriet M. Denkmann
I got the default iOS Master-Detail project (using Swift) from Xocde 6 beta 3. Deployment target 7.1 There is a UISplitViewController which has an array of 2 UINavigationControllers, both have each one UIViewController: the first has MasterViewController, the second one has DetailViewController

Re: View-based outline view problem

2014-07-10 Thread Bill Cheeseman
On Jul 10, 2014, at 3:25 AM, Shane Stanley wrote: > I'm trying to convert a cell-based outline view to view-based. The model is a > file wrapper, I'm using a datasource, and it was working fine while > cell-based. I changed from a text cell to NSTableCellView, and when I set it > up to use bi

Aligning baseline of NS controls

2014-07-10 Thread Aandi Inston
I am porting a library for dynamic dialog creation to Cocoa. The implementation is using various standard controls such as NSTextField and NSButton. I have a question. Suppose a dialog is to contain a line with multiple controls like [ ] Add seconds [before/after] Here [ ] Add is a che

View-based outline view problem

2014-07-10 Thread Shane Stanley
I'm trying to convert a cell-based outline view to view-based. The model is a file wrapper, I'm using a datasource, and it was working fine while cell-based. I changed from a text cell to NSTableCellView, and when I set it up to use bindings for its image view and text field, it also worked OK.