Re: NSUserDefaults not sticking

2014-09-09 Thread Graham Cox
On 10 Sep 2014, at 3:43 pm, Rick C. wrote: > Thanks for the help. So I have double-checked and the info in question that > is not sticking is NSString/NSData being written: > > [[NSUserDefaults standardUserDefaults] setObject:stringObject > forKey:@“MyStringKey”]; > [[NSUserDefaults standard

Re: NSUserDefaults not sticking

2014-09-09 Thread Diederik Meijer | Ten Horses
Are you calling synchronise too when you're writing? [[NSUserDefault standardUserDefaults] synchronise] Verstuurd vanaf mijn iPhone > Op 10 sep. 2014 om 07:43 heeft "Rick C." het volgende > geschreven: > > Thanks for the help. So I have double-checked and the info in question that > is no

Re: NSUserDefaults not sticking

2014-09-09 Thread Rick C.
Thanks for the help. So I have double-checked and the info in question that is not sticking is NSString/NSData being written: [[NSUserDefaults standardUserDefaults] setObject:stringObject forKey:@“MyStringKey”]; [[NSUserDefaults standardUserDefaults] setObject:dataObject forKey:@“MyDataKey”];

Re: Crash presenting modal built with Xcode 6 GM

2014-09-09 Thread Jens Alfke
> On Sep 9, 2014, at 6:09 PM, Rick Mann wrote: > > The debugger stops at the main entry point with this useless stack. Come on; it's not "useless", you just have to look carefully. Cocoa APIs are so verbose that backtraces often read pretty easily. > #20x023b2d5e in -[NSObject(NSKeyValueC

Re: NSOutlineView

2014-09-09 Thread Shane Stanley
On 10 Sep 2014, at 10:45 am, Charles Jenkins wrote: > Then I deleted the left side’s empty custom view object and replaced it with > a Source View. I deleted the right side’s empty custom view object and > replaced it with one of the text view objects. FWIW, and this is unrelated to your probl

Re: NSOutlineView

2014-09-09 Thread Quincey Morris
On Sep 9, 2014, at 17:45 , Charles Jenkins wrote: > My question is: assuming that my Document class is indeed acting as the > outline view’s delegate, which of these graphical objects is supposed to be > the one calling outlineView:objectForTableColumn:byItem:? That’s a data source method, not

Re: Crash presenting modal built with Xcode 6 GM

2014-09-09 Thread Greg Parker
> On Sep 9, 2014, at 6:09 PM, Rick Mann wrote: > > I downloaded Xcode 6 GM and rebuilt my app. Running in the 7.1 or 8.0 > simulator, it crashes when attempting to present a modal view controller that > worked fine when built with 5.1.1. The debugger stops at the main entry point > with this

Crash presenting modal built with Xcode 6 GM

2014-09-09 Thread Rick Mann
I downloaded Xcode 6 GM and rebuilt my app. Running in the 7.1 or 8.0 simulator, it crashes when attempting to present a modal view controller that worked fine when built with 5.1.1. The debugger stops at the main entry point with this useless stack. Attempting to continue results in a SIGABRT.

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
Also I have a fundamental question about the objects I get when I drag a Source View onto a window. I built my UI by dragging a vertical splitter onto the empty window. Then I deleted the left side’s empty custom view object and replaced it with a Source View. I deleted the right side’s empty cu

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
Quincey, Thanks for the reply. At the time of my original posting I had verified several times that all the protocol functions got called and were returning the values I expected them to return. The objectValueForTableColumn one was returning a String, the title I hoped would appear in the o

Re: How to copy Color Panel behaviour?

2014-09-09 Thread Kyle Sluder
On Tue, Sep 9, 2014, at 06:42 PM, Graham Cox wrote: > > On 10 Sep 2014, at 7:13 am, Luc Van Bogaert > wrote: > > > This opens the panel without making it key, which is OK, but it still makes > > the panel key when I click any of the responder objects in the panel, such > > as a collectionview.

Re: How to copy Color Panel behaviour?

2014-09-09 Thread Graham Cox
On 10 Sep 2014, at 7:13 am, Luc Van Bogaert wrote: > This opens the panel without making it key, which is OK, but it still makes > the panel key when I click any of the responder objects in the panel, such as > a collectionview... 'becomesKeyOnlyIfNeeded' does what it says, but how does it de

How to copy Color Panel behaviour?

2014-09-09 Thread Luc Van Bogaert
Hi, I am implementing some kind of Tools Panel for my document based application and I'm wondering how one could copy the standard Color Panel behaviour with respect to its key status. The Color Panel can be displayed without becoming the key window, it let's the user use the various controls

How to set UILabel height to even multiple of line height with auto-layout?

2014-09-09 Thread Steve Christensen
I have a UITableViewCell with several stacked UILabels: - label1: set to 1 line, height = single line height, fixed bottom spacing - label2: set to 2 lines, height ≥ single line height, fixed bottom spacing - label3: set to 0 lines, height ≥ single line height, bottom spacing ≥ min spacing The l

Re: NSOutlineView

2014-09-09 Thread Quincey Morris
On Sep 9, 2014, at 04:16 , Charles Jenkins wrote: > Actually, if there is a space between the underscore and the name, Xcode > presents a warning saying it’s extraneous. I cut and pasted the original > prototypes from the documentation in order to avoid typos, and Xcode > immediately displayed

Re: NSOutlineView

2014-09-09 Thread Roland King
> On 9 Sep 2014, at 7:16 pm, Charles Jenkins wrote: > > Quincey, > > > > Move my breakpoint up to the function declaration to see if it’s really being > called > Reinsert the space after the underscore and ignore Xcode’s warnings > Delete the underscore altogether > > You don’t want a spa

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
Quincey, Actually, if there is a space between the underscore and the name, Xcode presents a warning saying it’s extraneous. I cut and pasted the original prototypes from the documentation in order to avoid typos, and Xcode immediately displayed warning messages. Removing the space made Xcode h